1修改/etc/php.ini中添加513行
2安装
安装lynx
下载:lynx -source http://pear.php.net/go-pear | php
安装php go-pear.php
将/usr/local/php/lib/bin写入PATH: export PATH=/usr/local/php/lib/bin:$PATH
安装pear install channel://pear.php.net/OLE-1.0.0RC1
安装pear install Spreadsheet_Excel_Writer-0.9.2
3安装成功后编辑
vi /usr/local/lib/php.ini
最后加入一行
;***** Added by go-pear
include_path=".:/tmp/PEAR:/usr/local/php/lib/PEAR"
;*****
http://pear.php.net/package/Spreadsheet_Excel_Writer/docs