Monday, October 10, 2022

[SOLVED] Install libssh2-php on PHP 5.4.9 (x64)

Issue

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


Solution

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



Answered By - CodeBrauer
Answer Checked By - Gilberto Lyons (WPSolving Admin)