What's new

[Solved] Unable to load dynamic library '/opt/lib/php/gd.so

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

amplatfus

Senior Member
Hi,

After entware-ng update (src/gz packages pkg.entware.net/binaries/armv7) to entware (src/gz packages bin.entware.net/armv7sf-k2.6) using opkg update; opkg upgrade 2 times I am facing below PHP error:
Code:
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lib/php/gd.so' - libpng12.so.0: cannot open shared object file: No such file or directory in Unknown on line 0
Could you please give me some hint to fix it?
Thank you!
 
Hi,

After entware-ng update (src/gz packages pkg.entware.net/binaries/armv7) to entware (src/gz packages bin.entware.net/armv7sf-k2.6) using opkg update; opkg upgrade 2 times I am facing below PHP error:
Code:
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lib/php/gd.so' - libpng12.so.0: cannot open shared object file: No such file or directory in Unknown on line 0
Could you please give me some hint to fix it?
Thank you!
I solve it in the meantime #happy :)

Below are the steps in my case that worked.
1. I list packages installed on my Entware:
Code:
user@router:/tmp/mnt/# opkg list-installed
php5 - 5.6.26-1
php5-cgi - 5.6.26-1
php5-cli - 5.6.26-1
php5-fastcgi - 5.6.26-1
php5-mod-curl - 5.6.26-1
php5-mod-gd - 5.6.26-1
php5-mod-hash - 5.6.26-1
php5-mod-json - 5.6.26-1
php5-mod-mbstring - 5.6.26-1
php5-mod-mcrypt - 5.6.26-1
php5-mod-mysql - 5.6.26-1
php5-mod-mysqli - 5.6.26-1
php5-mod-openssl - 5.6.26-1
php5-mod-pdo - 5.6.26-1
php5-mod-pdo-mysql - 5.6.26-1
php5-mod-pdo-pgsql - 5.6.26-1
php5-mod-pdo-sqlite - 5.6.26-1
php5-mod-session - 5.6.26-1
php5-mod-simplexml - 5.6.26-1
php5-mod-xml - 5.6.26-1
php5-mod-zip - 5.6.26-1
php7 - 7.2.9-1
2. Then I uninstalled php5-mod-gd and installed php7-mod-gd.
Code:
user@router:/tmp/mnt/# opkg remove php5-mod-gd
Removing package php5-mod-gd from root...
user@router:/tmp/mnt/# opkg install php7-mod-gd
Installing php7-mod-gd (7.2.9-1) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/php7-mod-gd_7.2.9-1_armv7-2.6.ipk
Configuring php7-mod-gd.
And the error gone away.
Hope this helps!
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top