note 81093 deleted from ref.ssh2 by langemeijer
| From: | langemeijer@php.net | Date: | Sat, 10 Nov 2012 14:41:26 +0000 |
| Subject: | note 81093 deleted from ref.ssh2 by langemeijer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191849@lists.php.net to get a copy of this message | ||
Note Submitter: aby at thomasoft dot com
----
This is an update for those who are having difficulty compiling
on newer systems when following the manual procedure above.
The following finally worked on OpenSuSE 10.3.
I assume this will probably work on most newer distributions.
Download the latest source for php-ssh2 from
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/php-ssh2/
Save it in a temp folder
Extract the file (eg: tar -xzvf ssh2-0.11-20071019.tar.gz)
Change to the newly extracted folder and execute following
phpize && ./configure --with-ssh2 --with-php-config=/usr/bin/php-config5 && make
(make sure to change the path to the correct php-config5 on your system.)
Once the complie is completed successfully, copy the .libs/ssh2.so
to the php extension folder specified in php.ini
add "extension=ssh2.so" in php.ini
restart apache
This worked. Good luck.