PHP and LIBSSH2

welch

Verified User
Joined
Aug 2, 2004
Messages
95
I am trying to install libssh2 or the ssh2 libraries for PHP. When i try the different options given to install it. I keep coming up with these errors:

/usr/local/bin/pear install ssh2-0.5
downloading ssh2-0.5.tgz ...
Starting to download ssh2-0.5.tgz (17,756 bytes)
......done: 17,756 bytes
5 source files, building
running: phpize
/usr/local/bin/phpize: line 57: aclocal: command not found
`phpize' failed

in configure.php i have this:

# PECL extension setup #######################################
# IN the php-x.x.x dir; change to ext dir
cd ext
pear download ssh2-0.5
gzip -d < ssh2-0.5.tgz | tar -xvf -
mv ssh2-0.5 ssh2
rm package.xml
cd ..
./buildconf --force


./configure \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--with-openssl \
--with-ssh2-dir=/usr/local/lib \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars
Ive run out of options and am lost on what to do. if someone could please help me out, i would be most gratefull. here are some of the links i have been using:

http://us4.php.net/manual/en/install.pecl.static.php
http://pecl.php.net/package/ssh2
http://us2.php.net/manual/en/ref.ssh2.php
 
Do you have all the tools necassary?
I think libtool has the aclocal command.

If it is on your system and you can find and run it, you might just want to manually specify the location of it during configuration.
 
well...

its not so much that, but... i guess what i need to ask, how do i setup a PHP function so that i can use the -with-dir=/usr/local/bin on directadmin. Becuase so far, im having zero luck.
 
Back
Top