Install libssh2-php on PHP 5.4.9 (x64)

CodeBrauer picture CodeBrauer · Jan 18, 2013 · Viewed 11.7k times · Source

I have a problem with the update on php 5.4.9 (i install it with the ppa "ppa:ondrej/php5")

Now i have the problem that i can't install libssh2-php (which is required on my project)

I found some .deb files, but it's only for 32-bit systems.

So when i'm trying to install libssh2-php i have a collision with "libssh2-php:i386" and i have the following dependiesmessage:

ucf:i386 libc6:i386 (>= 2.4) libssh2-1:i386 (>= 1.0) and phpapi-20090626+lfs:i386

System: Ubuntu Server 12.04 LTS x64 | PHP 5.4.9

I also got a warning on running "php -v"

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/ssh2.so' - /usr/lib/php5/20100525/ssh2.so: cannot open shared object file: No such file or directory in Unknown on line 0

Answer

CodeBrauer picture CodeBrauer · Feb 24, 2013

The problem is/was that the libssh2 is not aviable for PHP5.4.x AND a x64 system.