Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to be able to run PHP functions like ssh2_connect. But, those functions are not available on my machine. What do I need to do to install them?

I am using Ubuntu 8.04 Hardy Heron.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

The Ubuntu package index lists libssh2-php packages for several tastes (lucid to oneiric). You can look if your system has all the required software, download the libssh2-php.deb from Lucid and install it

sudo dpkg -i libssh2-php*.deb

or use gdebi.

If this don't work you can download the source code from libssh2.org and compile it for yourself.

share|improve this answer
1  
This probably won't work because of the version differences. –  Marco Ceppi Sep 6 '11 at 20:59
    
ACK, thatswhy I recommended to look if Adam has all the necessary software installed. –  qbi Sep 6 '11 at 21:11
    
You can try to grab it with php-pear :) –  Marco Ceppi Sep 6 '11 at 21:34
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.