LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2012, 04:51 AM   #1
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL, CentOS, Ubuntu
Posts: 333

Rep: Reputation: 17
Cool 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

Last edited by dazdaz; 05-12-2012 at 05:03 AM.
 
Old 05-14-2012, 01:40 PM   #2
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL, CentOS, Ubuntu
Posts: 333

Original Poster
Rep: Reputation: 17
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

Last edited by dazdaz; 05-18-2012 at 07:57 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect with other server using SSH2 in php phpdev Linux - Server 15 12-10-2013 08:39 PM
PHP (XAMPP) install ssh2 module CentOS 5 Actionscript3 Linux - Server 2 04-13-2010 01:31 PM
LXer: Installing The PHP-MSSQL Module On CentOS 5.0 LXer Syndicated Linux News 0 06-11-2007 10:46 AM
Installing a php module Koven Linux - Software 2 02-23-2005 09:05 AM
Installing PHP as an apache module? birv Linux - Software 2 04-05-2004 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration