如果你的apache已经安装好了,现在只想编译出mod_rewrite.so模块,网上有很多方法,但如果编译结果提示下边的错误,可以尝试用后边的方法来解决。

Warning! dlname not found in /usr/local/apache2/modules/mod_rewrite.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/mod_rewrite.so
chmod: cannot access `/usr/local/apache2/modules/mod_rewrite.so': No such file or directory
apxs:Error: Command failed with rc=65536


vi /usr/local/apache2/build/libtool

build_libtool_libs=no
build_libtool_libs=yes

fast_install=neel***
fast_install=yes

dlopen_support=unknown
dlopen_support=yes

dlopen_self=unknown
dlopen_self=yes

dlopen_self_static=unknown
dlopen_self_static=yes

host_alias=
host_alias=i686-pc-linux-gnu

保存后重新编译

cd /usr/local/src/httpd-2.2.9/modules/mappers
/usr/local/apache2/bin/apxs -c mod_rewrite.c
/usr/local/apache2/bin/apxs -i -a -n rewrite mod_rewrite.la


posted on 2011-06-20 14:46  墨尘  阅读(580)  评论(0编辑  收藏  举报