记录apache的安装过程当中的一些错误解决方式

安装过屡次APACHE,每次安装都会发生一些错误,按着错误一搜,跟着解决方案一步一步就解决了。固然有一些解决方案是坑人的 =。=c++

此次想一想仍是把过程记录一下,以防下次使用时有过往成功的记录可查,省的再去找了。apache


APR  not foundspa

#  cd /opt.net

#  wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz orm

#  tar -zxf apr-1.4.5.tar.gz  ip

#  cd  apr-1.4.5get

#  ./configure --prefix=/usr/local/aprit

#  make && make install编译


APR-util not foundgcc

wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz

#  cd /opt

#  tar -zxf apr-util-1.3.12.tar.gz

#  cd apr-util-1.3.12

#  ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config

#  make && make install


pcre 

#  wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip

#  cd /opt

#  unzip -o pcre-8.10.zip

#  cd pcre-8.10

#  ./configure --prefix=/usr/local/pcre


g++: command not found 

#  yum -y install gcc+ gcc-c++



最后编译时,加上如下

--with-apr=/usr/local/apr  --with-apr-util=/usr/local/apr-util  --with-pcre=/usr/local/pcre

相关文章
相关标签/搜索