Linux学习:背景是我想安装apache, ./configure 的时候他说找不到 pcre-configure

configure: error: pcre-config for libpcre not found. PCRE is required and available from
可是我用 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的路径, 这样子为什么就可以安装成功呢
yum install httpd can’t satisfy u? why compile ur own?

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…
yum install pcre-devel
就是缺了开发包,后来查明白了
带有devel是开发包,需要编译环境才需要安装。而我查到的 .so 是动态库,所以我装apache的时候需要的是开发包,而不是已经装好的库。
我也遇到此问题此文为百度得出:此处为连接

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值