Цитата:
Сообщение от snysmumrik
Приветствую. Установил libssh2, при установке ssh2 получаю ошибку на стадии make
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c: In function 'zif_ssh2_auth_pubkey_file':
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c:646: error: 'struct _php_core_globals' has no member named 'safe_mode'
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c:646: error: 'CHECKUID_CHECK_FILE_AND_DIR' undeclared (first use in this function)
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c:646: error: (Each undeclared identifier is reported only once
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c:646: error: for each function it appears in.)
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c:649: error: 'struct _php_core_globals' has no member named 'safe_mode'
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c: In function 'zif_ssh2_auth_hostbased_file':
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c:692: error: 'struct _php_core_globals' has no member named 'safe_mode'
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c:692: error: 'CHECKUID_CHECK_FILE_AND_DIR' undeclared (first use in this function)
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c:695: error: 'struct _php_core_globals' has no member named 'safe_mode'
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c: In function 'zif_ssh2_publickey_add':
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c:1040: warning: passing argument 1 of '_efree' discards qualifiers from pointer target type
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c: In function 'zif_ssh2_publickey_list':
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c:1099: warning: passing argument 4 of 'add_assoc_stringl_ex' discards qualifiers from pointer target type
/home/snysmumrik2/data/ssh2-0.11.2/ssh2.c:1100: warning: passing argument 4 of 'add_assoc_stringl_ex' discards qualifiers from pointer target type
*** [ssh2.lo] Error code 1
Stop in /home/snysmumrik2/data/ssh2-0.11.2.
Буду благодарен за помощь с решением.
|
Ок, эту проблему можно решить установкой ssh2-0.11.3 - более новой версии, но на последнем этапе все-равно возникает ошибка
% make install
/bin/sh /home/snysmumrik2/data/ssh2-0.11.3/libtool --mode=install cp ./ssh2.la /home/snysmumrik2/data/ssh2-0.11.3/modules
cp ./.libs/ssh2.so /home/snysmumrik2/data/ssh2-0.11.3/modules/ssh2.so
cp ./.libs/ssh2.lai /home/snysmumrik2/data/ssh2-0.11.3/modules/ssh2.la
----------------------------------------------------------------------
Libraries have been installed in:
/home/snysmumrik2/data/ssh2-0.11.3/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing shared extensions: /usr/local/lib/php/20100525/
cp: /usr/local/lib/php/20100525/#INST@56203#: Permission denied
*** [install-modules] Error code 1
Stop in /home/snysmumrik2/data/ssh2-0.11.3.