Libssl.so.7 not found after upgrading to 2.4.0



  • So I upgraded my PCEngines APU2 from 2.3.4-p1 to 2.4.0. It was on NanoBSD before, so I followed the instructions to convert to a regular install: https://doc.pfsense.org/index.php/Upgrading_64-bit_NanoBSD_2.3_to_2.4#Script-Assisted_Conversion

    Apparently this didn't work as it broke my "pkg" completely (probably because I was using RAM disks) and I had to fix several things. In the process, however, it seems that I was unable to fix the following:

    Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/ssh2.so' - Shared object "libssl.so.7" not found, required by "libssh2.so.1" in Unknown on line 0
    

    I get this error all the time, over and over. All the Google-fu didn't help in finding a fix, except this: https://redmine.pfsense.org/issues/7500

    I tried the suggestions in there which helped fixing my broken pkg manager:

    pkg-static update –f
    pkg-static upgrade –f
    

    But the libssl.so.7 error remains.

    Any suggestions short of reinstalling everything? Thanks :)


  • Rebel Alliance Developer Netgate

    Did you reboot after running "pkg-status upgrade -f"?

    That file would have come from pecl-ssh2-0-0.13 which is installed by the ACME package, try removing that package from the GUI and then installing it again.



  • @jimp:

    Did you reboot after running "pkg-status upgrade -f"?

    That file would have come from pecl-ssh2-0-0.13 which is installed by the ACME package, try removing that package from the GUI and then installing it again.

    Yes, I did reboot but it still brought up the error.

    However I didn't even have the ACME package installed. I installed it from the GUI and now it's fine.

    Thanks a lot for your help!



  • I'm having the same issue here.

    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/ssh2.so' - Shared object "libssl.so.7" not found, required by "libssh2.so.1" in Unknown on line 0

    I don't have ACME installed either. Mine was a normal upgrade from 2.3.4_1 on amd64 hardware.


  • Rebel Alliance Developer Netgate

    Then that ssh2.so file is left over, install ACME and then remove it and it will go away. That file isn't in base anymore, only in the ACME package dependencies.



  • I had same issue and installed from USB stick.  I'm sure there is a less brute force way to accomplish the same thing, but it worked.

    https://forum.pfsense.org/index.php?topic=137993.0