LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing ssh2 PHP module (https://www.linuxquestions.org/questions/linux-software-2/installing-ssh2-php-module-944548/)

dazdaz 05-12-2012 04:51 AM

Installing ssh2 PHP module
 
I am trying to install the ssh2 PHP module, on my PHP 5.3.3 system / CentOS 6.2 but not having any luck.

I installed php-devel which includes the phpize program, however that did not fix the problem.

I then tried copying /usr/lib/php/build/shtool into /var/tmp/ssh2/build/ (after making the directory) which also did'nt work.

Code:

# pecl install ssh2
Failed to download pecl/ssh2 within preferred state "stable", latest
release is version 0.11.3, stability "beta", use
"channel://pecl.php.net/ssh2-0.11.3" to install
install failed

Code:

# pecl install "channel://pecl.php.net/ssh2-0.11.3"
downloading ssh2-0.11.3.tgz ...
Starting to download ssh2-0.11.3.tgz (23,062 bytes)
........done: 23,062 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version:        20090626
Zend Module Api No:      20090626
Zend Extension Api No:  220090626
shtool at '/var/tmp/ssh2/build/shtool' does not exist or is not executable.
Make sure that the file exists and is executable and then rerun this script.

Code:

ERROR: `phpize' failed
# ls -l /usr/bin/phpize
-rwxr-xr-x 1 root root 4458 May  7 23:01 /usr/bin/phpize


dazdaz 05-14-2012 01:40 PM

I fixed the issue above. /var/tmp had the noexec option enabled.

I created the following 3 symbolic links after downloading a kernel and it all worked, the module compiled and installed.

# Btw has the link location changed with the 2.6 kernels.

Code:

ln -s /usr/src/linux/include/linux /usr/include/linux
ln -s /usr/src/linux/arch/x86/include/asm /usr/include/asm
ln -s /usr/src/linux/include/asm-generic /usr/include



All times are GMT -5. The time now is 06:02 AM.