我需要安装pcre-devel包lighttpd在Ubuntu 上编译:
configure:error:找不到pcre-config,安装pcre-devel包或使用--without-pcre构建
你能告诉我怎么做吗?
Mat*_*att 34
尝试使用apt-cache search,例如,
sudo apt-cache search pcre
Run Code Online (Sandbox Code Playgroud)
对我来说,这很多,所以我grep关键字dev.
这变成了libpcre3-dev和libpcre++-dev.
lighttpd 毫无疑问会使用其中一个.
因此,如果您的搜索显示libpcre3-dev,您可以安装使用:
sudo apt-get install libpcre3-dev
但是,你有没有理由自己编译lighttpd?
为什么不安装使用apt-get?
其中包括lighttpd-dev,lighttpd-doc和一些相关模块.
在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)
$
Run Code Online (Sandbox Code Playgroud)
那将是libpcre3-devC或libpcre++-devC++.
出于同样的原因,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
$
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
51585 次 |
| 最近记录: |