I tried to get ssh2 installed but could not succeed with the standard
- Code: Select all
pear install -f ssh2
or
- Code: Select all
./pecl install -f ssh2
I googled but could not find any answer so I thought I'd share my way to get it done.
I suppose libssh2 is already installed. It did install flawlessly for me.
1/ Suggestion: upgrade to latest version (mine is 6.3)
2/ Download dev pak and install it
3/ Go to /Applications/xampp/xamppfiles, and do:
- Code: Select all
ln -s ../include include
4/ Go back to the xampp directory
- Code: Select all
cd ..
cp include/unix.h include/php/php5/php/Zend/
5/ Point your browser to http://pecl.php.net/package/ssh2 and download the lastest package (ssh2-0.10.tgz for me)
6/ untar it
7/ cd to the ssh2-0.10 directory and do
- Code: Select all
/Applications/xampp/xamppfiles/bin/phpize
./configure --with-ssh2 --with-php-config=/Applications/xampp/xamppfiles/bin/php-config
make
sudo cp /Users/robby/Desktop/ssh2-0.10/ssh2-0.10/modules/ssh2.so /Applications/xampp/xamppfiles/lib/php/php5/extensions/no-debug-non-zts-20060613/
(the copy command might be different for you as it depends on the place you choosed to untar your package and the version of xampp aswell as the version of php you're using: adapt to your needs)
8/ Edit /Applications/xampp/etc/php.ini and add the ssh2 extension
- Code: Select all
extension=ssh2.so
Done.
Worked for me under OSX 10.4.10