centOS 源码安装apache2遇到的错误

来源:互联网 发布:淘宝客推广论坛 编辑:程序博客网 时间:2024/05/22 07:44

查看apache是否启动:netstat -nltup |grep httpd 查看本机上是否启动成功apache

一,说明没有gcc安装环境

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/zm/pcre-8.33':
configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details

1.安装C++

yum  install gcc-c++  //安装C++编译环境

二,ibpcre.so.0

checking how to run the C preprocessor... grep: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
gcc -E
grep: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
checking for grep that handles long lines and -e... configure: error: no acceptable grep could be found in /usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/zm/bin:/usr/xpg4/bin





0 0