当前位置: 技术问答>linux和unix
centos安装apache引发的问题,linux菜鸟求大神搭救
来源: 互联网 发布时间:2017-05-29
本文导语: 背景是我想安装apache, ./configure 的时候他说找不到 pcre-configure configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/ 可是我用 rpm -ql pcre 的时候,有pcre的信息,我 yum install...
背景是我想安装apache, ./configure 的时候他说找不到 pcre-configure
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
可是我用 rpm -ql pcre 的时候,有pcre的信息,我 yum install pcre,它说我已经安装了pcre.
我的问题是:
1.既然RPM说我已经安装了PCRE,为什么安装apache的时候又说找不到呢
2.如果我从网上下载了 pcre, 然后 ./configure , make, make install后,这个pcre安装后会主动记录进rpm里面吗。
然后我 再安装apache ./configure --with-pcre=/我安装pcre的路径, 这样子为什么就可以安装成功呢
rpm -ql pcre 结果如下
[root@localhost dep]# rpm -ql pcre
/lib64/libpcre.so.0
/lib64/libpcre.so.0.0.1
/usr/bin/pcregrep
/usr/bin/pcretest
/usr/lib64/libpcrecpp.so.0
/usr/lib64/libpcrecpp.so.0.0.0
/usr/lib64/libpcreposix.so.0
/usr/lib64/libpcreposix.so.0.0.0
/usr/share/doc/pcre-7.8
/usr/share/doc/pcre-7.8/AUTHORS
/usr/share/doc/pcre-7.8/COPYING
/usr/share/doc/pcre-7.8/ChangeLog
/usr/share/doc/pcre-7.8/LICENCE
/usr/share/doc/pcre-7.8/NEWS
/usr/share/doc/pcre-7.8/README
/usr/share/man/man1/pcre-config.1.gz
/usr/share/man/man1/pcregrep.1.gz
/usr/share/man/man1/pcretest.1.gz
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
可是我用 rpm -ql pcre 的时候,有pcre的信息,我 yum install pcre,它说我已经安装了pcre.
我的问题是:
1.既然RPM说我已经安装了PCRE,为什么安装apache的时候又说找不到呢
2.如果我从网上下载了 pcre, 然后 ./configure , make, make install后,这个pcre安装后会主动记录进rpm里面吗。
然后我 再安装apache ./configure --with-pcre=/我安装pcre的路径, 这样子为什么就可以安装成功呢
rpm -ql pcre 结果如下
[root@localhost dep]# rpm -ql pcre
/lib64/libpcre.so.0
/lib64/libpcre.so.0.0.1
/usr/bin/pcregrep
/usr/bin/pcretest
/usr/lib64/libpcrecpp.so.0
/usr/lib64/libpcrecpp.so.0.0.0
/usr/lib64/libpcreposix.so.0
/usr/lib64/libpcreposix.so.0.0.0
/usr/share/doc/pcre-7.8
/usr/share/doc/pcre-7.8/AUTHORS
/usr/share/doc/pcre-7.8/COPYING
/usr/share/doc/pcre-7.8/ChangeLog
/usr/share/doc/pcre-7.8/LICENCE
/usr/share/doc/pcre-7.8/NEWS
/usr/share/doc/pcre-7.8/README
/usr/share/man/man1/pcre-config.1.gz
/usr/share/man/man1/pcregrep.1.gz
/usr/share/man/man1/pcretest.1.gz
|
yum install pcre-devel
|
u are the geek style, aren't u?
make sure pcre is installed properly, then during the configure of httpd, add "--with-pcre=your_pcre_path" to ./configure
if u prefer to compile everything for yourself, please get familiar with autoconf tool first.
you should always do ./configure --help to check all options...
P.S., I think yum is a pretty good package management tool. you will appreciate it if you are a real admin...
make sure pcre is installed properly, then during the configure of httpd, add "--with-pcre=your_pcre_path" to ./configure
if u prefer to compile everything for yourself, please get familiar with autoconf tool first.
you should always do ./configure --help to check all options...
P.S., I think yum is a pretty good package management tool. you will appreciate it if you are a real admin...