我有一台运行 PHP7.2 的 PC 和一台运行 PHP7.4 的笔记本电脑,我在两台电脑上都安装了和,php7.x-mysql
但php7.x-gd
都出现了这些错误。以前它可以正常工作,但在将笔记本电脑升级到 7.2 后,它不起作用了,我在台式机上尝试了同样的操作,现在出现了这些错误。有人有解决方案吗?
PHP Warning: PHP Startup: Unable to load dynamic library 'gd2' (tried: /usr/lib/
php/20170718/gd2 (/usr/lib/php/20170718/gd2: cannot open shared object file: No such file or directory),
/usr/lib/php/20170718/gd2.so (/usr/lib/php/20170718/gd2.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 'pdo_mysql' (tried: /usr/lib/php/20170718/pdo_mysql (/usr/lib
/php/20170718/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20170718
/pdo_mysql.so (/usr/lib/php/20170718/pdo_mysql.so: undefined symbol: mysqlnd_allocator)) in Unknown on
line 0
/usr/lib/php/20170718$ ls
calendar.so fileinfo.so json.so pdo_pgsql.so readline.so sysvsem.so xml.so
ctype.so ftp.so mysqli.so pdo.so shmop.so sysvshm.so xmlwriter.so
curl.so gd.so mysqlnd.so pgsql.so simplexml.so tokenizer.so xsl.so
dom.so gettext.so opcache.so phar.so sockets.so wddx.so
exif.so iconv.so pdo_mysql.so posix.so sysvmsg.so xmlreader.so