Garey's Blog–FreeBSD/PHP/GoLang

八月 23rd, 2010

FreeBSD安装HTTP_Upload库

4,834 views, FreeBSD, PHP, by garey.

FreeBSD ports安装php默认是没有安装pear库集的,需要另外安装:

cd /usr/ports/devel/pear
make install clean
rehash

然后通过pear安装HTTP_Upload库:

pear install HTTP_Upload

# pear install HTTP_Upload
downloading HTTP_Upload-0.9.1.tgz …
Starting to download HTTP_Upload-0.9.1.tgz (9,460 bytes)
…..done: 9,460 bytes
install ok: channel://pear.php.net/HTTP_Upload-0.9.1

安装完成之后,可以通过pear list查看已经安装了的pear库:

# pear list
Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.3   stable
Console_Getopt   1.2.3   stable
HTTP_Upload      0.9.1   stable
PEAR             1.9.0   stable
Structures_Graph 1.0.2   stable

Back Top

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*