免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1297 | 回复: 1
打印 上一主题 下一主题

RedHat9源码安装PHP-5.1.2出现错误!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-02-25 15:25 |只看该作者 |倒序浏览
在网上看了N篇帖子,都没能解决问题。特来向各位大侠请教一二!!!
环境:RedHat9+Apache2+zlib+jpeg6+libpng+gd+mysql5+php5
现在就差PHP5装不上了。搞了三、四天时间了,都还没搞定~~~:em12:




[root@server7 php-5.1.2]#./configure --prefix=/usr/local/php --with-apxs2=/usr/local/www/bin/apxs --with-jpeg-dir=/usr/local/jpeg6c --with-png-dir=/usr/local/libpng --with-gd --enable-trace-vars --with-zlib-dir=/usr/local/zlib -with-mysql=/usr/local/mysql --enable-so
.
.
.
.
[root@server7 php-5.1.2]#make
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

[root@server7 php-5.1.2]# make install
Installing PHP SAPI module:       apache2handler
/usr/local/www/build/instdso.sh SH_LIBTOOL='/usr/local/www/build/libtool' libphp5.la /usr/local/www/modules
/usr/local/www/build/libtool --mode=install cp libphp5.la /usr/local/www/modules/
cp .libs/libphp5.lai /usr/local/www/modules/libphp5.la
cp .libs/libphp5.a /usr/local/www/modules/libphp5.a
ranlib /usr/local/www/modules/libphp5.a
chmod 644 /usr/local/www/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /home/welldrong/php-5.1.2/libs'
Warning!  dlname not found in /usr/local/www/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/www/modules/libphp5.so
chmod: 无法取得 ‘/usr/local/www/modules/libphp5.so’ 的属性: 没有那个文件或目录
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1
[root@server7 php-5.1.2]# libtool --finish /home/welldrong/php-5.1.2/libs
PATH="$PATH:/sbin" ldconfig -n /home/welldrong/php-5.1.2/libs
----------------------------------------------------------------------
Libraries have been installed in:
   /home/welldrong/php-5.1.2/libs

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so( manual pages.
----------------------------------------------------------------------
[root@server7 php-5.1.2]# make install
Installing PHP SAPI module:       apache2handler
/usr/local/www/build/instdso.sh SH_LIBTOOL='/usr/local/www/build/libtool' libphp5.la /usr/local/www/modules
/usr/local/www/build/libtool --mode=install cp libphp5.la /usr/local/www/modules/
cp .libs/libphp5.lai /usr/local/www/modules/libphp5.la
cp .libs/libphp5.a /usr/local/www/modules/libphp5.a
ranlib /usr/local/www/modules/libphp5.a
chmod 644 /usr/local/www/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /home/welldrong/php-5.1.2/libs'
Warning!  dlname not found in /usr/local/www/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/www/modules/libphp5.so
chmod: 无法取得 ‘/usr/local/www/modules/libphp5.so’ 的属性: 没有那个文件或目录
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1
[root@server7 php-5.1.2]#

老是说Warning!  dlname not found in /usr/local/www/modules/libphp5.la
但我看过这个目录下面明明有libphp5.la这个文件的,但确实没有/usr/local/www/modules/libphp5.so这个文件。
郁闷了,以前从来没有这个问题。现在就算我装回PHP4也不行了,又会提示没有libphp4.so -.-!!

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
2 [报告]
发表于 2006-02-26 12:20 |只看该作者
make distclean

重新解压包.(确认包是tar.gz并且md5值是一致的)

然后再来一次./configure

try.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP