Перейти к содержанию

Перенос сервера


Рекомендуемые сообщения

Доброго дня!

 

Планирую перенос сервера с эмулятором eathena, перенос осуществляю путем импорт пользователя с файлами с одного сервера на другой в панели ispmanager 5 Lite.

 

Файлы, базы я перенес, правки по ип сделал, но у меня проблема с make sql и ./configure

при попытке выполнить ./configure получаю следующее:
 

Цитата

checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking whether byte ordering is bigendian... no
checking whether pointers can be stored in ints (old code)... yes (with -m32)
checking whether gcc supports -Wno-unused-parameter... yes
checking whether gcc supports -Wno-pointer-sign... yes
checking whether gcc can actually use -Wno-pointer-sign... yes
checking whether gcc supports -Wno-switch... yes
checking whether gcc supports -fPIC... yes
checking how to make shared objects...
checking whether gcc needs -fPIC for shared objects... no, but fails for another reason
configure: error: compiler is unable to compile shared objects for an unhandled reason, please report this with attached config.log... stopping
 

если я правильно понимаю, то gcc (копилятор сИ?) пытается работать с shared objects но не находит их в "привычном месте". На сервере крутится хостинг сайтов, поэтому mysql и php работают как надо. 

Куда копать? Кто может подсказать?

 

при попытке выполнить make sql выводит:

Цитата

make[1]: Entering directory `/..../3rdparty/mt19937ar'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/..../3rdparty/mt19937ar'
make[1]: Entering directory `/var/....../src/common'
gcc -DHAVE_CONFIG_H -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -fno-strict-aliasing -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK -I../../3rdparty/mt19937ar  -L/usr/lib  -I../common -I/usr/include -c -o obj_all/core.o core.c
gcc -DHAVE_CONFIG_H -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -fno-strict-aliasing -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK -I../../3rdparty/mt19937ar  -L/usr/lib  -I../common -I/usr/include -c -o obj_all/socket.o socket.c
gcc -DHAVE_CONFIG_H -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -fno-strict-aliasing -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK -I../../3rdparty/mt19937ar  -L/usr/lib  -I../common -I/usr/include -c -o obj_all/timer.o timer.c
gcc -DHAVE_CONFIG_H -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -fno-strict-aliasing -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK -I../../3rdparty/mt19937ar  -L/usr/lib  -I../common -I/usr/include -c -o obj_all/db.o db.c
gcc -DHAVE_CONFIG_H -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -fno-strict-aliasing -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK -I../../3rdparty/mt19937ar  -L/usr/lib  -I../common -I/usr/include -c -o obj_all/plugins.o plugins.c
gcc -DHAVE_CONFIG_H -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -fno-strict-aliasing -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK -I../../3rdparty/mt19937ar  -L/usr/lib  -I../common -I/usr/include -c -o obj_all/lock.o lock.c
gcc -DHAVE_CONFIG_H -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -fno-strict-aliasing -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK -I../../3rdparty/mt19937ar  -L/usr/lib  -I../common -I/usr/include -c -o obj_all/nullpo.o nullpo.c
gcc -DHAVE_CONFIG_H -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -fno-strict-aliasing -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK -I../../3rdparty/mt19937ar  -L/usr/lib  -I../common -I/usr/include -c -o obj_all/malloc.o malloc.c
gcc -DHAVE_CONFIG_H -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -fno-strict-aliasing -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK -I../../3rdparty/mt19937ar  -L/usr/lib  -I../common -I/usr/include -c -o obj_all/showmsg.o showmsg.c
gcc -DHAVE_CONFIG_H -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -fno-strict-aliasing -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK -I../../3rdparty/mt19937ar  -L/usr/lib  -I../common -I/usr/include -c -o obj_all/strlib.o strlib.c
gcc -DHAVE_CONFIG_H -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -fno-strict-aliasing -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK -I../../3rdparty/mt19937ar  -L/usr/lib  -I../common -I/usr/include -c -o obj_all/utils.o utils.c
gcc -DHAVE_CONFIG_H -g -O2 -pipe -ffast-math -Wall -Wno-sign-compare -Wno-unused-parameter -Wno-pointer-sign -Wno-switch -fPIC -fno-strict-aliasing -Wno-unused -Wno-parentheses -DHAVE_MONOTONIC_CLOCK -I../../3rdparty/mt19937ar  -L/usr/lib  -I../common -I/usr/include -c -o obj_all/grfio.o grfio.c
grfio.c:16:18: error: zlib.h: No such file or directory
grfio.c: In function 'grfio_crc32':
grfio.c:242: warning: implicit declaration of function 'crc32'
grfio.c:242: error: 'Z_NULL' undeclared (first use in this function)
grfio.c:242: error: (Each undeclared identifier is reported only once
grfio.c:242: error: for each function it appears in.)
grfio.c: In function 'decode_zip':
grfio.c:249: warning: implicit declaration of function 'uncompress'
grfio.c:249: error: 'Bytef' undeclared (first use in this function)
grfio.c:249: error: expected expression before ')' token
grfio.c: In function 'encode_zip':
grfio.c:256: warning: implicit declaration of function 'compress'
grfio.c:256: error: 'Bytef' undeclared (first use in this function)
grfio.c:256: error: expected expression before ')' token
grfio.c: In function 'grfio_reads':
grfio.c:441: error: 'uLongf' undeclared (first use in this function)
grfio.c:441: error: expected ';' before 'len'
grfio.c:443: error: 'len' undeclared (first use in this function)
grfio.c:445: error: 'uLong' undeclared (first use in this function)
grfio.c:445: error: expected ')' before 'entry'
grfio.c: In function 'grfio_entryread':
grfio.c:590: error: 'uLongf' undeclared (first use in this function)
grfio.c:590: error: expected ';' before 'rSize'
grfio.c:593: error: 'rSize' undeclared (first use in this function)
grfio.c:594: error: 'eSize' undeclared (first use in this function)
make[1]: *** [obj_all/grfio.o] Error 1
make[1]: Leaving directory `/var/...../src/common'
make: *** [common_sql] Error 2
 

 

Ссылка на комментарий
Поделиться на другие сайты

похоже что у вашего хостера древняя система, обновите  нужные библиотеки  zlib 1.2.8 или 1.2.9 readline 6.3 or latter new gcc 4.5 or latter GMP6.0 или выше m4 

 

из логов уже всё понятно что проблемма

grfio.c
grfio.c:16:18: error: zlib.h: No such file or directory
grfio.c: In function 'grfio_crc32':

Изменено пользователем ucell-uz
Ссылка на комментарий
Поделиться на другие сайты

1 час назад, Functor сказал:

Попробуйте:

 

попробовал:

Цитата

checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking whether byte ordering is bigendian... no
checking whether gcc supports -Wno-unused-parameter... yes
checking whether gcc supports -Wno-pointer-sign... yes
checking whether gcc can actually use -Wno-pointer-sign... yes
checking whether gcc supports -Wno-switch... yes
checking whether gcc supports -fPIC... yes
checking how to make shared objects... -shared
checking whether gcc needs -fPIC for shared objects... yes
checking whether gcc supports -fno-strict-aliasing... yes
checking for inline... inline
checking for all available inline directives... done
checking for egrep... 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 sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking net/socket.h usability... no
checking net/socket.h presence... no
checking for net/socket.h... no
checking for setrlimit... yes
checking for strnlen... yes
checking for getpid... yes
checking for gettid... no
checking for inflateEnd in -lz... no
configure: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping
 

 

Ссылка на комментарий
Поделиться на другие сайты

1 час назад, ucell-uz сказал:

похоже что у вашего хостера древняя система, обновите  нужные библиотеки  zlib 1.2.8 или 1.2.9 readline 6.3 or latter new gcc 4.5 or latter GMP6.0 или выше m4 

 

из логов уже всё понятно что проблемма

grfio.c
grfio.c:16:18: error: zlib.h: No such file or directory
grfio.c: In function 'grfio_crc32':

zlib-1.2.3-29.el6.x86_64

readline-6.0-4.el6.x86_64

gcc-4.4.7-17.el6.x86_64

gmp-4.3.1-10.el6.x86_64

неужто все такое старое? gcc я установил только что, zlib уже шел на хостинге с исп панелью

Изменено пользователем Lovrentiy
Ссылка на комментарий
Поделиться на другие сайты

2 минуты назад, Functor сказал:

 

Благодарствую! Действительно видимо было, да было не то. ./configure --enable-64bit выполнилось, итог ниже:

Цитата

checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking whether byte ordering is bigendian... no
checking whether gcc supports -Wno-unused-parameter... yes
checking whether gcc supports -Wno-pointer-sign... yes
checking whether gcc can actually use -Wno-pointer-sign... yes
checking whether gcc supports -Wno-switch... yes
checking whether gcc supports -fPIC... yes
checking how to make shared objects... -shared
checking whether gcc needs -fPIC for shared objects... yes
checking whether gcc supports -fno-strict-aliasing... yes
checking for inline... inline
checking for all available inline directives... done
checking for egrep... 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 sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking net/socket.h usability... no
checking net/socket.h presence... no
checking for net/socket.h... no
checking for setrlimit... yes
checking for strnlen... yes
checking for getpid... yes
checking for gettid... no
checking for inflateEnd in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for library containing sqrt... -lm
checking for library containing clock_gettime... -lrt
checking whether CLOCK_MONOTONIC is supported and works... yes
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_init in -lmysqlclient... no
checking mysql.h usability... no
checking mysql.h presence... no
checking for mysql.h... no
checking MySQL library (optional)... no
configure: disabling MySQL (optional)
checking for pcre_study in -lpcre... no
checking PCRE library (optional)... no
configure: disabling PCRE (optional)
checking host OS... Linux
checking for MinGW... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/common/Makefile
config.status: creating 3rdparty/mt19937ar/Makefile
config.status: creating src/char/Makefile
config.status: creating src/login/Makefile
config.status: creating src/char_sql/Makefile
config.status: creating src/txt-converter/Makefile
config.status: creating src/map/Makefile
config.status: creating src/plugins/Makefile
config.status: creating src/tool/Makefile
config.status: creating src/common/config.h
config.status: src/common/config.h is unchanged
 

но при попытке выполнить make sql получаю следующее:

Цитата

MySQL not found or disabled by the configure script
make: *** [needs_mysql] Error 1
 

хотя мускуль есть, на нем сайты крутятся. Возможно какой то дополнительной библиотеки не хватает?

Ссылка на комментарий
Поделиться на другие сайты

1 минуту назад, ucell-uz сказал:

вот почему я ненавижу 64 версии линухи и винды)) слишком много танцев с бубном=))

просто все должно быть уже в одной разрядности... =)

Ссылка на комментарий
Поделиться на другие сайты

×
×
  • Создать...
Яндекс.Метрика