php excel 安装出现错误

php excel 安装出现错误

我需要php excel writer (PHPExcel)在运行 Ubuntu 12.04 的机器上安装。但我不知道需要遵循哪些步骤。

我该如何安装它?

我努力了

sudo pear channel-discover pear.pearplex.net
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/gd.so' - /usr/lib/php5/20090626/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0

Discovering channel pear.pearplex.net over http:// failed with message: channel-add: Cannot open "http://pear.pearplex.net/channel.xml" (File http://pear.pearplex.net:80/channel.xml not valid (redirected but no location))
Trying to discover channel pear.pearplex.net over https:// instead
Discovery of channel "pear.pearplex.net" failed (channel-add: Cannot open "https://pear.pearplex.net/channel.xml" (Connection to `pear.pearplex.net:443' failed: ))

答案1

使用CTRL++打开终端并粘贴这些命令ALTT

sudo pear channel-discover pear.pearplex.net
sudo pear install pearplex/PHPExcel

相关内容