Topic: urgent - php72-gd: PHP Startup: Unable to load dynamic library 'gd.so'

I have been trying to solve this problem for days. Here is my problem.

 # php -m
PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/local/lib/php/20170718/gd.so (Shared object "libgd.so.6" not found, required by "gd.so"), /usr/local/lib/php/20170718/gd.so.so (Cannot open "/usr/local/lib/php/20170718/gd.so.so")) in Unknown on line 0
[PHP Modules]
Core

I am currently running freenas 11.1 which runs on freebsd. I have a jail that runs apache24.

I have installed php72, which runs well.

The problem is when i install php72-gd. I get the error above. How can i solve this?

I have tried this http://freebsd.pro/topic/11/ , but didn't solve my issue.

Last edited by denis (2019-05-16 02:01:11 pm)

Share

Re: urgent - php72-gd: PHP Startup: Unable to load dynamic library 'gd.so'

You just have recreate the libraries symlinks in /lib where I am not sure why these are looking in this folder if everything is in /usr/local/lib smile

execute just :

cd /lib; ln -s /usr/local/lib/lib* . 

Share