通过yum安装的程序找不到编译安装的httpd
系统:CentOS 6.4 32bit
编译了一个apache 2.4.6, 位置在/usr/local/apache, 能正常运行。
但当通过yum安装mod_security时,提示需要安装httpd,
我不想再安装多一个httpd, 就根据系统默认安装httpd的路径,新建了链接:
ln -s /usr/local/apache /etc/httpd
ln -s /usr/local/apache/modules /usr/lib/httpd/modules
ln -s /usr/local/apache/bin/httpd /usr/sbin/httpd
但别的程序还无法识别已安装的httpd,
而在putty中输入命令“httpd -version”能查看到httpd的版本。
请问应该怎么设置啊?
-------------------------
又尝试编译安装,却又有如果错误提示:
# ./autogen.sh
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build'.
libtoolize: copying file `build/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `build'.
libtoolize: copying file `build/libtool.m4'
libtoolize: copying file `build/ltoptions.m4'
libtoolize: copying file `build/ltsugar.m4'
libtoolize: copying file `build/ltversion.m4'
libtoolize: copying file `build/lt~obsolete.m4'
This Perl not built to support threads
Compilation failed in require at /usr/share/automake-1.11/Automake/ChannelDefs.pm line 23.
BEGIN failed--compilation aborted at /usr/share/automake-1.11/Automake/ChannelDefs.pm line 26.
Compilation failed in require at /usr/share/automake-1.11/Automake/Configure_ac.pm line 26.
BEGIN failed--compilation aborted at /usr/share/automake-1.11/Automake/Configure_ac.pm line 26.
Compilation failed in require at /usr/bin/aclocal line 39.
BEGIN failed--compilation aborted at /usr/bin/aclocal line 39.
autoreconf: aclocal failed with exit status: 255
This Perl not built to support threads
Compilation failed in require at /usr/bin/automake line 139.
BEGIN failed--compilation aborted at /usr/bin/automake line 144.
configure.ac:17: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:140: error: possibly undefined macro: AM_CONDITIONAL
有时候在linux里安装个东西真麻烦。。。
------解决方案--------------------会链接原有的httpd感觉已经很厉害了