- 论坛徽章:
- 0
|
原帖由 有点白 于 2008-12-7 17:57 发表 ![]()
偶以前也遇到过类似问题,,,
可以试下更新ports看看行不行。
1.重新更新ports
2.pkg_delete -all (在安装php5扩展时已安装好了apache22,Mysql5.0)
3.make rmconfig 移除apache22,mysql的配置文件重新编译安装
4.cd /usr/ports/lang/php5 make install clean 编译安装完成
5.cd /usr/ports/lang/php5-extansions ; make rmconfig ; make install clean 选择所需的扩展
6.运行出错提示:
- checking for ranlib... ranlib
- checking for strip... strip
- checking if cc static flag works... yes
- checking if cc supports -fno-rtti -fno-exceptions... no
- checking for cc option to produce PIC... -fPIC
- checking if cc PIC flag -fPIC works... yes
- checking if cc supports -c -o file.o... yes
- checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
- checking whether -lc should be explicitly linked in... no
- checking dynamic linker characteristics... freebsd7.0 ld.so
- checking how to hardcode library paths into programs... immediate
- checking whether stripping libraries is possible... yes
- checking if libtool supports shared libraries... yes
- checking whether to build shared libraries... yes
- checking whether to build static libraries... no
- creating libtool
- appending configuration tag "CXX" to libtool
- checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
- checking for c++ option to produce PIC...
- checking if c++ supports -c -o file.o... yes
- checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
- checking dynamic linker characteristics... freebsd7.0 ld.so
- checking how to hardcode library paths into programs... unsupported
- checking whether stripping libraries is possible... yes
- configure: creating ./config.status
- config.status: creating config.h
- ===> Building for php5-curl-5.2.7
- /bin/sh /usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl/libtool --mode=compile cc -I. -I/usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl -DPHP_ATOM_INC -I/usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl/include -I/usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl/main -I/usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -I/usr/local/include/php -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl/interface.c -o interface.lo
- mkdir .libs
- cc -I. -I/usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl -DPHP_ATOM_INC -I/usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl/include -I/usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl/main -I/usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include -I/usr/local/include/php -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl/interface.c -fPIC -DPIC -o .libs/interface.o
- In file included from /usr/local/include/php/main/../main/php_config.h:2824,
- from /usr/local/include/php/Zend/zend_config.h:1,
- from /usr/local/include/php/Zend/zend.h:53,
- from /usr/local/include/php/main/php.h:34,
- from /usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl/interface.c:27:
- /usr/local/include/php/ext/php_config.h:1:29: error: ext/pcre/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:2:34: error: ext/simplexml/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:3:28: error: ext/spl/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:4:28: error: ext/dom/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:5:29: error: ext/exif/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:6:31: error: ext/filter/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:7:28: error: ext/ftp/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:8:27: error: ext/gd/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:9:32: error: ext/gettext/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:10:29: error: ext/hash/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:11:30: error: ext/iconv/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:12:29: error: ext/json/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:13:33: error: ext/mbstring/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:14:31: error: ext/mcrypt/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:15:30: error: ext/mhash/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:16:30: error: ext/mysql/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:17:31: error: ext/mysqli/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:18:28: error: ext/pdo/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:19:35: error: ext/pdo_sqlite/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:20:30: error: ext/posix/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:21:32: error: ext/session/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:22:31: error: ext/sqlite/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:23:34: error: ext/tokenizer/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:24:28: error: ext/xml/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:25:34: error: ext/xmlreader/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:26:34: error: ext/xmlwriter/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:27:28: error: ext/zip/config.h: No such file or directory
- /usr/local/include/php/ext/php_config.h:28:29: error: ext/zlib/config.h: No such file or directory
- *** Error code 1
- Stop in /usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl.
- *** Error code 1
- Stop in /usr/ports/ftp/php5-curl.
- *** Error code 1
- Stop in /usr/ports/lang/php5-extensions.
- *** Error code 1
- Stop in /usr/ports/lang/php5-extensions.
- xpengzp@www[/usr/ports/lang/php5-extensions]#
复制代码
这些错误搞得郁闷得要死. |
|