Board logo

标题: [求助] 历时12小时,安装了6次……绝望了…………!!!!!! [打印本页]

作者: guzuomuse    时间: 2012-5-16 06:01     标题: 历时12小时,安装了6次……绝望了…………!!!!!!

本帖最后由 guzuomuse 于 2012-5-16 06:03 编辑

系统:CentOs5.8
32位Vps

………………………………………………………………………………………………………………………………

历时12个多小时,安装了6次,原因尝试了各种原因,结果:已然安装不上:错误如下,绝望,绝望,绝望!!!!!

求老大等各位大神现身……给你们烧高香了…………!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -pthread    -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE    -I/root/lanmp/httpd-2.2.22/srclib/pcre -I. -I/root/lanmp/httpd-2.2.22/os/unix -I/root/lanmp/httpd-2.2.22/server/mpm/prefork -I/root/lanmp/httpd-2.2.22/modules/http -I/root/lanmp/httpd-2.2.22/modules/filters -I/root/lanmp/httpd-2.2.22/modules/proxy -I/root/lanmp/httpd-2.2.22/include -I/root/lanmp/httpd-2.2.22/modules/generators -I/root/lanmp/httpd-2.2.22/modules/mappers -I/root/lanmp/httpd-2.2.22/modules/database -I/usr/include/apr-1 -I/usr/local/include -I/root/lanmp/httpd-2.2.22/modules/proxy/../generators -I/root/lanmp/httpd-2.2.22/modules/ssl -I/root/lanmp/httpd-2.2.22/modules/dav/main  -prefer-non-pic -static -c modules.c && touch modules.lo
gcc -pthread    -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE    -I/root/lanmp/httpd-2.2.22/srclib/pcre -I. -I/root/lanmp/httpd-2.2.22/os/unix -I/root/lanmp/httpd-2.2.22/server/mpm/prefork -I/root/lanmp/httpd-2.2.22/modules/http -I/root/lanmp/httpd-2.2.22/modules/filters -I/root/lanmp/httpd-2.2.22/modules/proxy -I/root/lanmp/httpd-2.2.22/include -I/root/lanmp/httpd-2.2.22/modules/generators -I/root/lanmp/httpd-2.2.22/modules/mappers -I/root/lanmp/httpd-2.2.22/modules/database -I/usr/include/apr-1 -I/usr/local/include -I/root/lanmp/httpd-2.2.22/modules/proxy/../generators -I/root/lanmp/httpd-2.2.22/modules/ssl -I/root/lanmp/httpd-2.2.22/modules/dav/main  -c /root/lanmp/httpd-2.2.22/server/buildmark.c
/usr/lib/apr-1/build/libtool --silent --mode=link gcc -pthread     -L/usr/local/lib   -o httpd  modules.lo buildmark.o -export-dynamic server/libmain.la modules/aaa/libmod_authn_file.la modules/aaa/libmod_authn_default.la modules/aaa/libmod_authz_host.la modules/aaa/libmod_authz_groupfile.la modules/aaa/libmod_authz_user.la modules/aaa/libmod_authz_default.la modules/aaa/libmod_auth_basic.la modules/filters/libmod_include.la modules/filters/libmod_filter.la modules/filters/libmod_deflate.la modules/loggers/libmod_log_config.la modules/metadata/libmod_env.la modules/metadata/libmod_expires.la modules/metadata/libmod_headers.la modules/metadata/libmod_setenvif.la modules/metadata/libmod_version.la modules/http/libmod_http.la modules/http/libmod_mime.la modules/generators/libmod_status.la modules/generators/libmod_autoindex.la modules/generators/libmod_asis.la modules/generators/libmod_cgi.la modules/mappers/libmod_negotiation.la modules/mappers/libmod_dir.la modules/mappers/libmod_actions.la modules/mappers/libmod_alias.la modules/mappers/libmod_rewrite.la modules/mappers/libmod_so.la server/mpm/prefork/libprefork.la os/unix/libos.la -lm /root/lanmp/httpd-2.2.22/srclib/pcre/libpcre.la /usr/lib/libaprutil-1.la -lldap -llber -ldb-4.3 -lexpat /usr/lib/libapr-1.la -lpthread -ldl
modules/http/.libs/libmod_http.a(byterange_filter.o): In function `ap_set_byterange':
byterange_filter.c.text+0x1201): undefined reference to `apr_array_clear'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/root/lanmp/httpd-2.2.22'
make: *** [all-recursive] Error 1




----Install Error: apache make err -----------
作者: guzuomuse    时间: 2012-5-16 06:04

apr什么的都已经安装了的…………现在真想说三个字:曰曰曰!!!再加两个:狂曰!
作者: guzuomuse    时间: 2012-5-16 06:07

网站看到的解决方案:


错误3:
modules/http/.libs/libmod_http.a(byterange_filter.o): In function `ap_set_byterange':
byterange_filter.c.text+0x12c1): undefined reference to `apr_array_clear'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/root/httpd-2.2.22'
make: *** [all-recursive] Error 1

编译时加入--with-included-apr

………………………………………………………………………………

可是安装的时候,都是自动的,我们干瞪眼木有办法啊……!!!!!!!!!
作者: guzuomuse    时间: 2012-5-16 09:29

又重新安装了一次,这次的修改是直接修改lanmp.sh里面加上“--with-included-apr”-结果:

仍然同样的错误!!!!!!!!!!

我真的受不了,折腾了一下午加一个通宵…………!!!!!我打算安装一下2.1的包,如果再不行,……换…………
作者: guzuomuse    时间: 2012-5-16 11:28

老子怒了,终于解决了…………解决办法就是我发的楼上的办法,修改lanmp.sh在编译httpd的地方加上加上“--with-included-apr”,我楼上之所以刚才没成功是因为,我修改了文件之后,没有保存成功……!蛋疼的白白的等了1个半小时……

也请老大确认一下吧,这个应该是个Bug…………!
作者: admin    时间: 2012-5-16 12:09

我找时间测试下5.8的,还没在这个版本上测试过
作者: zhutou5    时间: 2012-5-18 04:16

楼主,你的linux  系统里是不是之前已经自带了apache 之类的web组件?
建议
1.先重装系统
2.清理环境(卸载系统自带的web组件)
3.安装
作者: guzuomuse    时间: 2012-5-19 04:43

回复 7# zhutou5

木有的,我确定没有其他组件影响的……加上那个参数就OK了……




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2