PHP警告:PHP启动:无法加载动态库' /usr/lib/php/20151012/gd.so'

时间:2017-10-03 11:24:26

标签: php composer-php mpdf

这是我尝试安装MPDF/MPDF时出现的错误消息。

$ composer create-project mpdf/mpdf --prefer-dist
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open
shared object file: No such file or directory in Unknown on line 0
You are running composer with xdebug enabled. This has a major impact on 
runtime performance. See https://getcomposer.org/xdebug
  

[作曲\下载\ TransportException]
      " https://packagist.org/packages.json"无法下载文件:SSL
      代码1操作失败.OpenSSL错误消息:
      错误:140770FC:SSL例程:SSL23_GET_SERVER_HELLO:未知协议
      无法启用加密
      无法打开流:操作失败

我不知道该怎么做才能帮到我?

1 个答案:

答案 0 :(得分:0)

我认为这可以帮到你。 似乎你不是第一个遇到这个问题的人。^^ PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: