User Tools

Site Tools


Sidebar


guides:install:libssh

This is an old revision of the document!


libssh

mac install

install by ports

port install libssh2

manual install

had to manually install on mac os x running snow lepoard

Download the latest from sf http://sourceforge.net/projects/libssh2/

wget http://sourceforge.net/projects/libssh2/files/libssh2-1.2.1.tar.gz/download
tar xzf libssh2-1.2.1.tar.gz
cd tar xzf libssh2-1.2.1
./configure
make
make install

php libssh install

pecl install

pecl install -f ssh2

manual install with patching

had to manually install and patch on mac os x running snow lepoard

wget http://pecl.php.net/get/ssh2-0.11.0.tgz
tar zxvf ssh2-0.11.0.tgz
cd ssh2-0.11.0
phpize
make

if you get error message “ssh2-0.11.0/ssh2.c:52: error: duplicate ‘static’” u need to patch

wget http://remi.fedorapeople.org/ssh2-php53.patch
patch <  ssh2-php53.patch
./configure && make && make install

add the module extension php.ini

vi /etc/php.ini
extension=ssh2.so 

restart apache server

/etc/rc.d/init.d/httpd restart
guides/install/libssh.1256190748.txt.gz · Last modified: 2009/10/22 16:52 by michaelc