Error In PHP5 ..Unable to load dynamic library gd.so - php

litingjun#litingjun-All-Series:/etc/php5/cli/conf.d$ php -a
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/gd.so' - /usr/lib/php5/20121212/gd.so: undefined symbol: gdImageCreateFromGd2Part in Unknown on line 0
litingjun#litingjun-All-Series:/etc/php5/cli/conf.d$ ls /usr/lib/php5/20121212/gd.so
/usr/lib/php5/20121212/gd.so
I've tried reinstalling gd using sudo apt-get install php5-gd but still not work.
My PHP version: 5.5.9-1ubuntu4.11
I need gd.
Thanks

I've reinstalled my OS and problem's gone.

Related

PHP Startup: Unable to load dynamic library 'phalcon.so'

I am trying to run phalcon in php but it seems from the errors that it cannot load it.
PHP Warning: PHP Startup: Unable to load dynamic library 'phalcon.so' (tried: /usr/lib64/php/modules/phalcon.so (/usr/lib64/php/modules/phalcon.so: undefined symbol: __builtin_saddl_overflow), /usr/lib64/php/modules/phalcon.so.so (/usr/lib64/php/modules/phalcon.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
I've tried all the solutions that are on the web but I cant solve it.
I already add the extension=phalcon.so in php.ini and also made a file zzzzz.ini which contains the same extension but it does not work.
Those are the solutions that I found on the web.
Can someone else help me to solve my problem ?
Thanks in advance
Edit 1
GCC Version: gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
I had the same problem, i resolved by upgrading GCC to >= 5.0 then recompiled Phalcon. For centOS 7
sudo yum install -y yum-utils centos-release-scl;
sudo yum -y --enablerepo=centos-sclo-rh-testing install devtoolset-7-gcc;
echo "source /opt/rh/devtoolset-7/enable" | sudo tee -a /etc/profile;
source /opt/rh/devtoolset-7/enable;
gcc --version;

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/mysql.so'

I recently installed EHCP with all the necessary packages and now everytime I try to run my laravel project by typing php artisan serve, I get the following error:
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/20151012/mysql.so' - /usr/lib/php/20151012/mysql.so:
cannot open shared object file: No such file or directory in Unknown
on line 0
Please help, thank you.
Do you have the mysql extension installed? If not, you may need to install it.
apt-get install php-mysql
In ubuntu 16.04 and above (as I can remember), this will install the module for PHP7 by default. So you need to check your php version and install the relevant one.
Ex: apt-get install php5.6-mysql
Then check you have the module installed by running:
php -m | grep mysql
Hope it helps!

Unable to load dynamic library php_ldap.dll on linux

Hi I'm running a Linux server and I keep getting this error thrown as a notice.
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/20151012/php_ldap.dll' -
/usr/lib/php/20151012/php_ldap.dll: No such file or directory in Unknown on line 0
Is a .dll still needed? I have the .so since it's on linux.
sudo apt-get install php-ldap solved it for me

Why i am getting on Server

PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20121212/raphf.so' - /usr/lib/php5/20121212/raphf.so:
cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20121212/propro.so' - /usr/lib/php5/20121212/propro.so:
cannot open shared object file: No such file or directory in Unknown on line 0
It's exactly saying what the error is. It can't open the libraries. Those libraries either dont exist in that folder or apache doesnt have the right to read them.
You need to install the propro and raph php extensions.
On Centos you'd do something like this
yum install php-raphf
yum install php-propro
For Ubuntu use apt-get
apt-get install php-raphf
apt-get install php-propro

imagick install problerm:undefined symbol: MagickGetImageBluePrimary in Unknown on line 0

Recently i want to add webp support for my imagemagick.
I install libwebp-0.3.1 and imagemagick-6.8 correctly,but after i install imagick-3.0.1 successfully , I run cmd:
$:php -m | grep "imagick"
it shows:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/imagick.so' - /usr/lib64/php/modules/imagick.so: undefined symbol: MagickGetImageBluePrimary in Unknown on line 0
so i change to imagick-2.3.0,surely it works.But anyone find solution to work with imagick-3.0.1????
any help will be appreciated
Solution is to help the future commands to find MagickWand with the command
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
then config and install imagick-3.0.0 or imagick-3.0.1:
./configure
make
make install
The answer link is here:
http://semigr.livejournal.com/97622.html

Categories