我应该为'pcre-devel'安装什么包?

时间:2010-02-15 00:10:21

标签: ubuntu

我需要在Ubuntu上安装pcre-devel包来编译lighttpd

  

configure:error:找不到pcre-config,安装pcre-devel软件包或使用--without-pcre构建

你能告诉我怎么做吗?

2 个答案:

答案 0 :(得分:32)

尝试使用apt-cache search,例如,

sudo apt-cache search pcre

对我来说,这很多,所以我要寻找关键字dev

这会出现libpcre3-devlibpcre++-dev

lighttpd毫无疑问会使用其中一种。

因此,如果您的搜索显示libpcre3-dev,则可以使用以下方式安装:
sudo apt-get install libpcre3-dev

但是,你有没有理由自己编译lighttpd? 为什么不使用apt-get进行安装? 包括lighttpd-devlighttpd-doc和一些相关模块。

答案 1 :(得分:5)

在Ubuntu 9.10上:

$ apt-cache search pcre | grep -- -dev
libpcre3-dev - Perl 5 Compatible Regular Expression Library - development files
libghc6-pcre-light-dev - Haskell library for Perl 5-compatible regular expressions
libghc6-regex-base-dev - GHC 6 library providing an API for regular expressions
libpcre++-dev - C++ wrapper class for pcre (development)
libpcre-ocaml-dev - OCaml bindings for PCRE (Perl Compatible Regular Expression)
$ 

C表示libpcre3-dev,C ++表示libpcre++-dev

出于同样的原因,lighthttpd已经存在:

$ apt-cache search lighttpd
collectd - statistics collection and monitoring daemon
lighttpd - A fast webserver with minimal memory footprint
lighttpd-dev - Development files for lighttpd
lighttpd-doc - Documentation for lighttpd
lighttpd-mod-cml - Cache meta language module for lighttpd
lighttpd-mod-magnet - Control the request handling module for lighttpd
lighttpd-mod-mysql-vhost - MySQL-based virtual host configuration for lighttpd
lighttpd-mod-trigger-b4-dl - Anti-deep-linking module for lighttpd
lighttpd-mod-webdav - WebDAV module for lighttpd
mongrel-cluster - Mongrel plugin to manage a cluster of Mongrel servers
mono-fastcgi-server - ASP.NET backend for FastCGI webservers - default version
mono-fastcgi-server1 - ASP.NET 1.1 backend for FastCGI webservers
mono-fastcgi-server2 - ASP.NET 2.0 backend for FastCGI webservers
$