免费注册 查看新帖 |

Chinaunix

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

编译php make: *** [install-sapi] 错误 1 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-06-26 17:14 |只看该作者 |倒序浏览
libtool: install: warning: remember to run `libtool --finish /lamp/php-5.3.8/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: 无法访问"/usr/local/apache/modules/libphp5.so": 没有那个文件或目录
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] 错误 1

貌似 apache里面就没有生成libphp5.so这个模块
apache编译
./configure --prefix=/usr/local/apache --enable-modules=so --enable-rewrite --enable-mods-shared=all --enable-ssl --with-ssl
php编译
./configure -–prefix=/usr/local/php '--with-gettext' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-mysql=/usr/include/mysql/mysql.h' '--enable-safe-mode' '--with-gd' '--enable-ftp' '--disable-debug' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-zlib-dir=/usr/lib'  '--with-freetype-dir=/usr/local/include/freetype2' '--enable-calendar' '--with-openssl' '--enable-exif' '--enable-gd-native-ttf' '--enable-mbstring' '--enable-exif' '--with-libxml-dir=/usr/include/libxml2/libxml' '--with-iconv' '--enable-sockets' '--with-mcrypt=/usr/local/libmcrypt’
--with-curl=/usr/include/curl
–with-config-file-path=/usr/local/php

论坛徽章:
0
2 [报告]
发表于 2012-06-26 17:28 |只看该作者
都说是 libtool 这个的版本不一样我复制到php里面还是不好用

论坛徽章:
0
3 [报告]
发表于 2012-06-27 10:19 |只看该作者
find / -iname libphp5.so 找找。

论坛徽章:
0
4 [报告]
发表于 2012-06-27 10:53 |只看该作者
嗯嗯 谢谢 问题解决了,就是libtool的vresion问题 可以看看/php-5/libtool  --vresion看看版本区别 使用高版本的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP