我装的是2.2.20,在make时出现以下错误,换了2.0.64和2.0.19都不行,请各位仁兄帮忙解决下,在下不胜感激。
ence to `ap_cache_cacheable_hdrs_out'
collect2: ld returned 1 exit status
make[1]: *** [httpd] 错误 1
make[1]: Leaving directory `/backup/software/httpd-2.2.20'
make: *** [all-recursive] 错误 1
alick 于 2011-09-09 20:19:13发表:
和这里描述的一样:http://2015.iteye.com/blog/733982
configure 时需加上 --enable-cache 选项。
stonelive 于 2011-09-07 08:33:53发表:
[i=s] 本帖最后由 stonelive 于 2011-9-7 08:54 编辑 [/i]
2# alick
configure语句
./configure --prefix=/usr/local/apache2 --with-ssl=/usr/local/openssl --enable-ssl --enable-so --enable-rewrite --enable-mime-magic --enable-mem-cache
make时出错
/backup/software/httpd-2.2.20/srclib/apr/libtool --silent --mode=link gcc -g -O2 -pthread -L/usr/local/openssl/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/cache/libmod_mem_cache.la modules/filters/libmod_include.la modules/filters/libmod_filter.la modules/loggers/libmod_log_config.la modules/metadata/libmod_env.la modules/metadata/libmod_mime_magic.la modules/metadata/libmod_setenvif.la modules/metadata/libmod_version.la modules/ssl/libmod_ssl.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_userdir.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 /backup/software/httpd-2.2.20/srclib/pcre/libpcre.la /backup/software/httpd-2.2.20/srclib/apr-util/libaprutil-1.la -lexpat /backup/software/httpd-2.2.20/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
modules/cache/.libs/libmod_mem_cache.a(mod_mem_cache.o): In function `store_headers':
/backup/software/httpd-2.2.20/modules/cache/mod_mem_cache.c:621: undefined reference to `ap_cache_cacheable_hdrs_out'
collect2: ld returned 1 exit status
make[1]: *** [httpd] 错误 1
make[1]: Leaving directory
这是在开启记忆缓存的时候出错了,有什么办法开启记忆缓存呢?要修改什么呢?
alick 于 2011-09-06 22:52:28发表:
呃,错误信息应该在更前面的几行~