免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3025 | 回复: 5

[FreeBSD] ports安装php5扩展中电脑重启再安装出错,求助!!! [复制链接]

论坛徽章:
0
发表于 2008-12-05 16:18 |显示全部楼层
xpengzp@www[/usr/ports/lang/php5-extensions]#make install clean  选择好扩展在make install过程中因突然停电,再次运行 make install clean
错误提示如下:
xpengzp@www[/usr/ports/lang/php5-extensions]# make install clean
===>   php5-extensions-1.1 depends on file: /usr/local/include/php/main/php.h - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/20060613/ctype.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/20060613/curl.so - found
===>   php5-extensions-1.1 depends on file: /usr/local/lib/php/20060613/dom.so - not found
===>    Verifying install for /usr/local/lib/php/20060613/dom.so in /usr/ports/textproc/php5-dom
===>   php5-dom-5.2.6_2 depends on file: /usr/local/include/php/main/php.h - found
===>   php5-dom-5.2.6_2 depends on file: /usr/local/bin/phpize - found
===>   php5-dom-5.2.6_2 depends on file: /usr/local/lib/php/20060613/spl.so - not found
===>    Verifying install for /usr/local/lib/php/20060613/spl.so in /usr/ports/devel/php5-spl
===>   php5-spl-5.2.6_2 depends on file: /usr/local/include/php/main/php.h - found
===>   php5-spl-5.2.6_2 depends on file: /usr/local/bin/phpize - found
===>   php5-spl-5.2.6_2 depends on file: /usr/local/lib/php/20060613/pcre.so - not found
===>    Verifying install for /usr/local/lib/php/20060613/pcre.so in /usr/ports/devel/php5-pcre
===>  Building for php5-pcre-5.2.6_2
/bin/sh /usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/libtool --mode=compile cc -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/pcrelib -I. -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre -DPHP_ATOM_INC -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/include -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/main -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre -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  -DHAVE_CONFIG_H  -O2 -fno-strict-aliasing -pipe   -c /usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/pcrelib/pcre_chartables.c -o pcrelib/pcre_chartables.lo
cc -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/pcrelib -I. -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre -DPHP_ATOM_INC -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/include -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/main -I/usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre -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 -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/pcrelib/pcre_chartables.c  -fPIC -DPIC -o pcrelib/.libs/pcre_chartables.o
In file included from /usr/local/include/php/main/php_compat.h:27,
                 from /usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/pcrelib/config.h:2,
                 from /usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre/pcrelib/pcre_chartables.c:23:
/usr/local/include/php/main/php_config.h:2815:28: error: ext/php_config.h: No such file or directory
*** Error code 1

Stop in /usr/ports/devel/php5-pcre/work/php-5.2.6/ext/pcre.
*** Error code 1

Stop in /usr/ports/devel/php5-pcre.
*** Error code 1

Stop in /usr/ports/devel/php5-spl.
*** Error code 1

Stop in /usr/ports/textproc/php5-dom.
*** 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]#


1.删除/usr/local/include/php/main/php_config.h文件,/usr/ports/lang/php5-extensions/work目录

2.make deinstall

3.make uninstall

问题还是如此,请问这问题怎么解决???

[ 本帖最后由 xpengzp 于 2008-12-6 09:35 编辑 ]

论坛徽章:
0
发表于 2008-12-06 12:16 |显示全部楼层
去掉pcre继续装看看?
make rmconfig
make config

论坛徽章:
0
发表于 2008-12-06 16:48 |显示全部楼层
我去掉了pcre,还是出现一样的错误.

论坛徽章:
0
发表于 2008-12-07 17:57 |显示全部楼层
偶以前也遇到过类似问题,,,
可以试下更新ports看看行不行。

论坛徽章:
0
发表于 2008-12-09 16:34 |显示全部楼层
原帖由 有点白 于 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.运行出错提示:

  1. checking for ranlib... ranlib
  2. checking for strip... strip
  3. checking if cc static flag  works... yes
  4. checking if cc supports -fno-rtti -fno-exceptions... no
  5. checking for cc option to produce PIC... -fPIC
  6. checking if cc PIC flag -fPIC works... yes
  7. checking if cc supports -c -o file.o... yes
  8. checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
  9. checking whether -lc should be explicitly linked in... no
  10. checking dynamic linker characteristics... freebsd7.0 ld.so
  11. checking how to hardcode library paths into programs... immediate
  12. checking whether stripping libraries is possible... yes
  13. checking if libtool supports shared libraries... yes
  14. checking whether to build shared libraries... yes
  15. checking whether to build static libraries... no

  16. creating libtool
  17. appending configuration tag "CXX" to libtool
  18. checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
  19. checking for c++ option to produce PIC...
  20. checking if c++ supports -c -o file.o... yes
  21. checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
  22. checking dynamic linker characteristics... freebsd7.0 ld.so
  23. checking how to hardcode library paths into programs... unsupported
  24. checking whether stripping libraries is possible... yes
  25. configure: creating ./config.status
  26. config.status: creating config.h
  27. ===>  Building for php5-curl-5.2.7
  28. /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
  29. mkdir .libs
  30. 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
  31. In file included from /usr/local/include/php/main/../main/php_config.h:2824,
  32.                  from /usr/local/include/php/Zend/zend_config.h:1,
  33.                  from /usr/local/include/php/Zend/zend.h:53,
  34.                  from /usr/local/include/php/main/php.h:34,
  35.                  from /usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl/interface.c:27:
  36. /usr/local/include/php/ext/php_config.h:1:29: error: ext/pcre/config.h: No such file or directory
  37. /usr/local/include/php/ext/php_config.h:2:34: error: ext/simplexml/config.h: No such file or directory
  38. /usr/local/include/php/ext/php_config.h:3:28: error: ext/spl/config.h: No such file or directory
  39. /usr/local/include/php/ext/php_config.h:4:28: error: ext/dom/config.h: No such file or directory
  40. /usr/local/include/php/ext/php_config.h:5:29: error: ext/exif/config.h: No such file or directory
  41. /usr/local/include/php/ext/php_config.h:6:31: error: ext/filter/config.h: No such file or directory
  42. /usr/local/include/php/ext/php_config.h:7:28: error: ext/ftp/config.h: No such file or directory
  43. /usr/local/include/php/ext/php_config.h:8:27: error: ext/gd/config.h: No such file or directory
  44. /usr/local/include/php/ext/php_config.h:9:32: error: ext/gettext/config.h: No such file or directory
  45. /usr/local/include/php/ext/php_config.h:10:29: error: ext/hash/config.h: No such file or directory
  46. /usr/local/include/php/ext/php_config.h:11:30: error: ext/iconv/config.h: No such file or directory
  47. /usr/local/include/php/ext/php_config.h:12:29: error: ext/json/config.h: No such file or directory
  48. /usr/local/include/php/ext/php_config.h:13:33: error: ext/mbstring/config.h: No such file or directory
  49. /usr/local/include/php/ext/php_config.h:14:31: error: ext/mcrypt/config.h: No such file or directory
  50. /usr/local/include/php/ext/php_config.h:15:30: error: ext/mhash/config.h: No such file or directory
  51. /usr/local/include/php/ext/php_config.h:16:30: error: ext/mysql/config.h: No such file or directory
  52. /usr/local/include/php/ext/php_config.h:17:31: error: ext/mysqli/config.h: No such file or directory
  53. /usr/local/include/php/ext/php_config.h:18:28: error: ext/pdo/config.h: No such file or directory
  54. /usr/local/include/php/ext/php_config.h:19:35: error: ext/pdo_sqlite/config.h: No such file or directory
  55. /usr/local/include/php/ext/php_config.h:20:30: error: ext/posix/config.h: No such file or directory
  56. /usr/local/include/php/ext/php_config.h:21:32: error: ext/session/config.h: No such file or directory
  57. /usr/local/include/php/ext/php_config.h:22:31: error: ext/sqlite/config.h: No such file or directory
  58. /usr/local/include/php/ext/php_config.h:23:34: error: ext/tokenizer/config.h: No such file or directory
  59. /usr/local/include/php/ext/php_config.h:24:28: error: ext/xml/config.h: No such file or directory
  60. /usr/local/include/php/ext/php_config.h:25:34: error: ext/xmlreader/config.h: No such file or directory
  61. /usr/local/include/php/ext/php_config.h:26:34: error: ext/xmlwriter/config.h: No such file or directory
  62. /usr/local/include/php/ext/php_config.h:27:28: error: ext/zip/config.h: No such file or directory
  63. /usr/local/include/php/ext/php_config.h:28:29: error: ext/zlib/config.h: No such file or directory
  64. *** Error code 1

  65. Stop in /usr/ports/ftp/php5-curl/work/php-5.2.7/ext/curl.
  66. *** Error code 1

  67. Stop in /usr/ports/ftp/php5-curl.
  68. *** Error code 1

  69. Stop in /usr/ports/lang/php5-extensions.
  70. *** Error code 1

  71. Stop in /usr/ports/lang/php5-extensions.
  72. xpengzp@www[/usr/ports/lang/php5-extensions]#
复制代码



这些错误搞得郁闷得要死.
daaa 该用户已被删除
发表于 2008-12-09 20:20 |显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP