pear-1.9.1_1 install on freebsd 8.2

上次好不容易折腾完了pear-1.9.0 install on freebsd 8.1,这次在freebsd 8.2上通过ports安装又出现问题了,提示以下错误信息:
[[email protected] ~]#cd /usr/ports/devel/pear
[[email protected] /usr/ports/devel/pear]#make install clean
===> Vulnerability check disabled, database not found
===> License check disabled, port has not defined LICENSE
===> Extracting for pear-1.9.1_1
=> SHA256 Checksum OK for pear-1.9.1.tar.bz2.
===> Patching for pear-1.9.1_1
===> Applying FreeBSD patches for pear-1.9.1_1
===> Configuring for pear-1.9.1_1
===> Installing for pear-1.9.1_1
===> pear-1.9.1_1 depends on file: /usr/local/include/php/main/php.h – found
===> pear-1.9.1_1 depends on file: /usr/local/lib/php/20090626/xml.so – found
===> Generating temporary packing list
===> Checking if devel/pear already installed
*** Signal 11
Stop in /usr/ports/devel/pear.
[[email protected] /usr/ports/devel/pear]#
找回上次的安装笔记pear-1.9.0 install on freebsd 8.1决定还是用pkg_add安装试试吧:
[[email protected] ~]#ftp ftp.freebsd.org
Trying 204.152.184.73…
Connected to ftp.freebsd.org.
220 Welcome to freebsd.isc.org.
Name (ftp.freebsd.org:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>cd /pub/FreeBSD/ports/i386/packages-8.2-release/devel
ftp>mget pear-1.9*
ftp>mget pear-1.9.1_1.tbz [anpqy?]? y
ftp>quit
[root@www.service-labs.com ~]#pkg_add pear-1.9.0.tbz
[[email protected] ~]#vi /usr/local/etc/php.ini
add:
include_path = “.:/usr/local/share/pear”
:wq!
OK!用pkg_add方式可以安装,但不是用ports安装的,感觉很不爽,回想之前有在想同的环境下安装都没问题啊,这次是怎么了?想到前一步骤安装php5-extensions时有比以前多选择了以下选项后安装pear就出错了,
[X] EXIF EXIF support
[X] FILEINFO fileinfo support
[X] GMP GNU MP support
[X] ODBC unixODBC support
[X] OPENSSL OpenSSL support
[X] PDO_SQLITE PDO sqlite driver
[X] RECODE recode support
[X] SHMOP shmop support
[X] SIMPLEXML simplexml support
[X] SOAP SOAP support
[X] XMLRPC XMLRPC-EPI support
莫非是以上选项有影响?还是决定重新安装php5-extensions,不选择以上选项,漫长的编译过后之后,终于安装完php5-extensions了,接下来安装pear;
[root@www.service-labs.com ~]#cd /usr/ports/devel/pear
[[email protected] /usr/ports/devel/pear]#make install clean
OK,顺利安装成功!至于上面那个选项有问题?由于时间关系,暂时没时间一一测试排除,等以后有时间看还记不记提再测试吧!

原文链接:,转发请注明来源!

发表评论

  • 2 Responses to “pear-1.9.1_1 install on freebsd 8.2”