开发者

Can't install PHPExcel

开发者 https://www.devze.com 2023-03-03 19:43 出处:网络
I\'m trying to install the PHPExcel library on an Ubuntu server. I executed the following commands in the command line:

I'm trying to install the PHPExcel library on an Ubuntu server. I executed the following commands in the command line:

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

The channel was ins开发者_开发问答tall but the instakll generates an error:

pearplex/PHPExcel requires PHP extension "zip" (version >= 1.8.0), installed version is 1.4.0
No valid packages found
install failed

Then I did a safe-upgrade:

aptitude safe-upgrade

and when I check PHP, I see this (Zip version 2.0.0):

Can't install PHPExcel

Any ideas?


Use

$ php -m

to see if the zip extension is there on command line. Then use

$ php --ini

to find the location of your php.ini file and fix it.

0

精彩评论

暂无评论...
验证码 换一张
取 消