Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
For Centos users the commands are yum install libssh2-devel then pecl install ssh2-0.12 – Eric Kigathi Nov 8 '15 at 16:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .