Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

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
share|improve this answer
    
Tried libssh2-php and I think it worked! Thanks! –  Andrew Dec 14 '09 at 5:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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