因为购买的VPS系统是freebsd 8.1版本,沟通折腾了很多次最终还是freebsd 8.1系统,算了,就用freebsd 8.1吧,而且还是AMD64的,终于,大部份软件都安装成功了,但是pear-1.9.0安装不了,因为下载不到pear-1.9.0.tar.bz,找遍了互联网也没有下载的,真是奇怪,上pear官网下载吧,按照它的安装文档安装不成功,最后还是用pkg_add安装成功了:
#http://pear.php.net/package/PEAR/download
#http://download.pear.php.net/package/PEAR-1.9.0.tgz
#fetch http://download.pear.php.net/package/PEAR-1.9.0.tgz
#tar -zxvpf PEAR-1.9.0.tgz
#cd PEAR-1.9.0
#fetch http://pear.php.net/go-pear.phar
#php go-pear.phar
#curl http://pear.php.net/go-pear.phar > go-pear.php
#php go-pear.php
#reboot
#
#cd /usr/ports/devel/pear
#make install clean
以上打#号的都不成功!
ftp ftp.freebsd.org
cd /pub/FreeBSD/ports/amd64/packages-8.1-release/devel
mget pear-1.9.0.tbz
pkg_add pear-1.9.0.tbz
vi /usr/local/etc/php.ini
add:
include_path = “.:/usr/local/share/pear”
:wq!