Postado Novembro 25, 2014 10 anos Olá, eu usava uma VPS de ume empresa, e devido a alguns problemas resolvi troca-la, porém quando fui compilar a source na nova VPS, está dando alguns erros, já procurei em vários lugares e não consegui a solução, por isso estou recorrendo ao TibiaKing, pois sei que aqui há várias pessoas que tem PHD em linux rsrs, se puderem me ajudar agradeço muitoo. root@vps:/var/distro/SOURCE1.0.6# ./configure --enable-mysql checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... no checking for an ANSI C-conforming const... yes checking for inline... inline checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for ptrdiff_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for ceil... yes checking for floor... yes checking for ftime... yes checking for gethostbyname... yes checking for gethostname... yes checking for memset... yes checking for pow... yes checking for sqrt... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strstr... yes checking for strtol... yes checking for xml2-config... /usr/bin/xml2-config checking for libxml - version >= 2.6.5... yes (version 2.9.1) checking gmp.h usability... yes checking gmp.h presence... yes checking for gmp.h... yes checking for __gmpz_init2 in -lgmp... yes checking zlib.h usability... no checking zlib.h presence... yes configure: WARNING: zlib.h: present but cannot be compiled configure: WARNING: zlib.h: check for missing prerequisite headers? configure: WARNING: zlib.h: see the Autoconf documentation configure: WARNING: zlib.h: section "Present But Cannot Be Compiled" configure: WARNING: zlib.h: proceeding with the compiler's result checking for zlib.h... no configure: error: "zlib header not found." root@vps:/var/distro/SOURCE1.0.6# apt-cache search lib32z1 You have new mail in /var/mail/root root@vps:/var/distro/SOURCE1.0.6# ./configure --enable-mysql checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... no checking for an ANSI C-conforming const... yes checking for inline... inline checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for ptrdiff_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for ceil... yes checking for floor... yes checking for ftime... yes checking for gethostbyname... yes checking for gethostname... yes checking for memset... yes checking for pow... yes checking for sqrt... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strstr... yes checking for strtol... yes checking for xml2-config... /usr/bin/xml2-config checking for libxml - version >= 2.6.5... yes (version 2.9.1) checking gmp.h usability... yes checking gmp.h presence... yes checking for gmp.h... yes checking for __gmpz_init2 in -lgmp... yes checking zlib.h usability... no checking zlib.h presence... yes configure: WARNING: zlib.h: present but cannot be compiled configure: WARNING: zlib.h: check for missing prerequisite headers? configure: WARNING: zlib.h: see the Autoconf documentation configure: WARNING: zlib.h: section "Present But Cannot Be Compiled" configure: WARNING: zlib.h: proceeding with the compiler's result checking for zlib.h... no configure: error: "zlib header not found." Minha nova VPS é: root@vps:~# cat /etc/*-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS" NAME="Ubuntu" VERSION="14.04.1 LTS, Trusty Tahr" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 14.04.1 LTS" VERSION_ID="14.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" Desde já agradeço a atenção de todos, Tenham uma boa noite. Att.
Postado Novembro 25, 2014 10 anos apt-get install libncurses5-dev cd /usr/local/src wget http://www.lua.org/ftp/lua-5.1.4.tar.gztar -xzvf lua*cd lua*make linux make install
Postado Novembro 25, 2014 10 anos apt-get install zlib1g-dev zlib1g qual versão e seu ot? Editado Novembro 25, 2014 10 anos por Mitsuig (veja o histórico de edições)
Postado Novembro 25, 2014 10 anos Autor @Smart Maxx root@vps:/usr/local/src/lua-5.1.4# make linux cd src && make linux make[1]: Entering directory `/usr/local/src/lua-5.1.4/src' make all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" make[2]: Entering directory `/usr/local/src/lua-5.1.4/src' gcc -O2 -Wall -DLUA_USE_LINUX -c -o lapi.o lapi.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lcode.o lcode.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o ldebug.o ldebug.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o ldo.o ldo.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o ldump.o ldump.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lfunc.o lfunc.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lgc.o lgc.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o llex.o llex.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lmem.o lmem.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lobject.o lobject.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lopcodes.o lopcodes.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lparser.o lparser.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lstate.o lstate.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lstring.o lstring.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o ltable.o ltable.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o ltm.o ltm.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lundump.o lundump.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lvm.o lvm.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lzio.o lzio.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lauxlib.o lauxlib.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lbaselib.o lbaselib.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o ldblib.o ldblib.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o liolib.o liolib.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lmathlib.o lmathlib.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o loslib.o loslib.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o ltablib.o ltablib.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o lstrlib.o lstrlib.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o loadlib.o loadlib.c gcc -O2 -Wall -DLUA_USE_LINUX -c -o linit.o linit.c ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o ranlib liblua.a gcc -O2 -Wall -DLUA_USE_LINUX -c -o lua.o lua.c gcc -o lua lua.o liblua.a -lm -Wl,-E -ldl -lreadline -lhistory -lncurses /usr/bin/ld: cannot find -lncurses collect2: error: ld returned 1 exit status make[2]: *** [lua] Error 1 make[2]: Leaving directory `/usr/local/src/lua-5.1.4/src' make[1]: *** [linux] Error 2 make[1]: Leaving directory `/usr/local/src/lua-5.1.4/src' make: *** [linux] Error 2 root@vps:/usr/local/src/lua-5.1.4# make install cd src && mkdir -p /usr/local/bin /usr/local/include /usr/local/lib /usr/local/man/man1 /usr/local/share/lua/5.1 /usr/local/lib/lua/5.1 cd src && install -p -m 0755 lua luac /usr/local/bin install: cannot stat 'lua': No such file or directory install: cannot stat 'luac': No such file or directory make: *** [install] Error 1 Mesmo com os erros tentei compilar, e deu o mesmo erro. @Mitsuig TFS 0.4 REV 3777 Tentei também a 3884 disponibilizada aqui no fórum. root@vps:/usr/local/src# apt-get install zlib1g-dev zlib1g Reading package lists... Done Building dependency tree Reading state information... Done zlib1g is already the newest version. zlib1g-dev is already the newest version. You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: libboost-atomic1.54-dev : Depends: libboost1.54-dev (= 1.54.0-4ubuntu3.1) but it is not going to be installed libboost-chrono1.54-dev : Depends: libboost1.54-dev (= 1.54.0-4ubuntu3.1) but it is not going to be installed libboost-dev : Depends: libboost1.46-dev but it is not installable libboost-filesystem1.54-dev : Depends: libboost1.54-dev (= 1.54.0-4ubuntu3.1) but it is not going to be installed libboost-regex1.46-dev : Depends: libboost1.46-dev (= 1.46.1-7ubuntu3) but it is not installable libboost-serialization1.46-dev : Depends: libboost1.46-dev (= 1.46.1-7ubuntu3) but it is not installable libboost-system-dev : Depends: libboost-system1.46-dev but it is not installable libboost-system1.54-dev : Depends: libboost1.54-dev (= 1.54.0-4ubuntu3.1) but it is not going to be installed libboost-thread-dev : Depends: libboost-thread1.54-dev but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). Obrigado pela atenção. Editado Novembro 25, 2014 10 anos por sjilos (veja o histórico de edições)
Postado Dezembro 16, 2014 10 anos You might want to run 'apt-get -f install' to correct these: Está escrita a solução no próprio erro... Facebook ServerCore
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.