So I decided to install the libssh2 library using PECL.

I'm at the point where it is asking me to specify a libssh2 prefix:

5 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
libssh2 prefix? [/usr] :

What am I supposed to put here?

link|improve this question

65% accept rate
feedback

1 Answer

up vote 0 down vote accepted

Ensure you have the libssh2 development package installed, via:

sudo aptitude install libssh2-1-dev

The PECL installer should then find the necessary files fine.

Alternatively, you could install libssh2-php, the PHP bindings for libssh2. Installing this package will install all the necessary dependencies (including libssh2-1):

sudo aptitude install libssh2-php
link|improve this answer
Tried libssh2-php and I think it worked! Thanks! – Andrew Dec 14 '09 at 5:18
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.