免费注册 查看新帖 |

Chinaunix

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

编译安装php5出错:cannot access `/usr/local/apache/modules/libphp5.so [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-27 10:43 |只看该作者 |倒序浏览
ehel4  apache 2.2.10
,php 5.2.6

[root@localhost php-5.2.6]# make install
Installing PHP SAPI module:       apache2handler
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp libphp5.la /usr/local/apache/modules/
cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la
cp .libs/libphp5.a /usr/local/apache/modules/libphp5.a
chmod 644 /usr/local/apache/modules/libphp5.a
ranlib /usr/local/apache/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /home/oracle/mysql/php5/php-5.2.6/libs'
Warning!  dlname not found in /usr/local/apache/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache/modules/libphp5.so
chmod: cannot access `/usr/local/apache/modules/libphp5.so': No such file or directory
apxs:Error: Command failed with rc=65536

怎么解决呢?用的是.bz2包。

论坛徽章:
0
2 [报告]
发表于 2008-10-27 18:21 |只看该作者
How did you use ./configure?

论坛徽章:
0
3 [报告]
发表于 2008-10-27 19:01 |只看该作者
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-gd --with-jpeg-dir --with-zlib-dir --with-png-dir --with-ttf --with-mysql --enable-track-vars --enable-ftp

make test
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #42082 (NodeList length zero should be empty) [ext/dom/tests/bug42082.phpt]
Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt]
iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
Test closedir() function : usage variations - close a file pointer [ext/standard/tests/dir/closedir_variation3.phpt]
Test readdir() function : usage variations - empty directories [ext/standard/tests/dir/readdir_variation2.phpt]
Test readdir() function : usage variations - use file pointers [ext/standard/tests/dir/readdir_variation7.phpt]
Test rewinddir() function : basic functionality [ext/standard/tests/dir/rewinddir_basic.phpt]
Test rewinddir() function : usage variations - operate on a closed directory [ext/standard/tests/dir/rewinddir_variation2.phpt]
Test rewinddir() function : usage variations - file pointers [ext/standard/tests/dir/rewinddir_variation3.phpt]
Test gethostbynamel() function : error conditions [ext/standard/tests/network/gethostbynamel_error.phpt]
microtime() function [ext/standard/tests/time/001.phpt] (warn: system dependent)

论坛徽章:
0
4 [报告]
发表于 2008-10-28 18:43 |只看该作者
First make clean in php directory.

If you machine is X86_64. maybe the infomation as follow can help you.

For x86_64 users, many linux distributions are using a lib64 directory
as well as the standard lib directory so both 32 and 64 bit versions are
available to your system. If your libtool doesn't know about this, which
the one shipped with php doesn't, you will get this error. A lot.

The solution is *in this order*:
-run ./configure with your favorite options
-edit ./libtool: add /usr/lib64 (or wherever yours is) to
sys_lib_search_path_spec AND sys_lib_dlsearch_path_spec

then make and make install will run. (although I'm still having issues
with mysql's prebuilt binary dist. of libmysqlclient for the x86_64)

论坛徽章:
0
5 [报告]
发表于 2008-10-28 19:26 |只看该作者
sudo

论坛徽章:
0
6 [报告]
发表于 2008-10-31 23:05 |只看该作者
查一下SElinux
hqlong 该用户已被删除
7 [报告]
发表于 2008-11-06 18:23 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP