• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Centos 7 compile error

7804364

Member
Joined
Mar 6, 2010
Messages
457
Reaction score
10
Ok so when i use ./autogen.sh on my 0.4 8.6 source, i get this error

Code:
[root@vps35372 sources]# ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force --warnings=none
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force --warnings=none
configure.ac:143: error: possibly undefined macro: AM_PATH_XML2
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
[root@vps35372 sources]#
 
apt-get install subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen libssl-dev libcrypto++-dev

./autogen.sh
./configure --enable-mysql --enable-root-permission && ./build.sh
 
apt-get install subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen libssl-dev libcrypto++-dev

./autogen.sh
./configure --enable-mysql --enable-root-permission && ./build.sh

He is using CentOS, not a Debian based OS so "apt-get" will not work. You must use "yum" to download the packages and ofc you will need to find the names of the required packages
 
He is using CentOS, not a Debian based OS so "apt-get" will not work. You must use "yum" to download the packages and ofc you will need to find the names of the required packages
apt-get install subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen libssl-dev libcrypto++-dev

./autogen.sh
./configure --enable-mysql --enable-root-permission && ./build.sh


When i used yum install.... all those libs i get

Code:
Package subversion-1.7.14-7.el7_0.x86_64 already installed and latest version
Package autoconf-2.69-11.el7.noarch already installed and latest version
No package build-essential available.
No package pkg-config available.
No package libboost-dev available.
No package libgmp3-dev available.
No package libxml2-dev available.
No package liblua5.1-0-dev available.
No package libmysqlclient-dev available.
Package ccache-3.1.9-3.el7.x86_64 already installed and latest version
No package libboost-filesystem-dev available.
No package libboost-regex-dev available.
No package libboost-system-dev available.
No package libboost-thread-dev available.
Package screen-4.1.0-0.19.20120314git3c2946.el7.x86_64 already installed and latest version
No package libssl-dev available.
No package libcrypto++-dev available.
Nothing to do
 
When i used yum install.... all those libs i get

Code:
Package subversion-1.7.14-7.el7_0.x86_64 already installed and latest version
Package autoconf-2.69-11.el7.noarch already installed and latest version
No package build-essential available.
No package pkg-config available.
No package libboost-dev available.
No package libgmp3-dev available.
No package libxml2-dev available.
No package liblua5.1-0-dev available.
No package libmysqlclient-dev available.
Package ccache-3.1.9-3.el7.x86_64 already installed and latest version
No package libboost-filesystem-dev available.
No package libboost-regex-dev available.
No package libboost-system-dev available.
No package libboost-thread-dev available.
Package screen-4.1.0-0.19.20120314git3c2946.el7.x86_64 already installed and latest version
No package libssl-dev available.
No package libcrypto++-dev available.
Nothing to do

Like I already said, the names narko provided are wrong for centos. Its up to you to find the right ones.
 
apt-get install subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen libssl-dev libcrypto++-dev

./autogen.sh
./configure --enable-mysql --enable-root-permission && ./build.sh
Like I already said, the names narko provided are wrong for centos. Its up to you to find the right ones.


OK so after i use ./autogen and i use configure

this is the error i get when i use ./build.sh

Code:
make[1]: Entering directory `/root/sources'
  CXX    actions.o
  CXX    allocator.o
  CXX    baseevents.o
  CXX    beds.o
  CXX    chat.o
  CXX    combat.o
  CXX    condition.o
chat.cpp: In member function ‘ChatChannel* Chat::getChannel(Player*, uint16_t)’:
chat.cpp:1145:10: error: converting ‘false’ to pointer type ‘ChatChannel*’ [-Werror=conversion-null]
cc1plus: all warnings being treated as errors
make[1]: *** [chat.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/root/sources'
make: *** [all] Error 2
 
Back
Top