我的Drupal安装抱怨缺少GD库:
GD library rotate and desaturate effects
The GD library for PHP is missing or outdated. Check the PHP image documentation for information on how to correct this.
但是我已经用
安装了gd包sudo apt-get install php5-gd
并多次重启Apache。
它显示已安装的软件包列表: 包:
dpkg -l|grep php
ii libapache2-mod-php5 5.5.9+dfsg-1ubuntu4.14 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii php-pear 5.5.9+dfsg-1ubuntu4.14 all PEAR - PHP Extension and Application Repository
ii php5 5.5.9+dfsg-1ubuntu4.14 all server-side, HTML-embedded scripting language (metapackage)
ii php5-cgi 5.5.9+dfsg-1ubuntu4.14 amd64 server-side, HTML-embedded scripting language (CGI binary)
ii php5-cli 5.5.9+dfsg-1ubuntu4.14 amd64 command-line interpreter for the php5 scripting language
ii php5-common 5.5.9+dfsg-1ubuntu4.14 amd64 Common files for packages built from the php5 source
ii php5-gd 5.5.9+dfsg-1ubuntu4.14 amd64 GD module for php5
ii php5-json 1.3.2-2build1 amd64 JSON module for php5
ii php5-mysql 5.5.9+dfsg-1ubuntu4.14 amd64 MySQL module for php5
ii php5-readline 5.5.9+dfsg-1ubuntu4.14 amd64 Readline module for php5
尝试使用
手动将库添加到php.ini文件时extension=ge.so;
我收到了这个警告:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/ge.so' - /usr/lib/php5/20121212/ge.so: cannot open shared object file: No such file or directory in Unknown on line 0
服务器已安装Virtualmin GPL
Ubuntu 14.04.3 LTS
PHP版本:
PHP 5.5.9-1ubuntu4.14
非常感谢任何建议!