linux pcre-devel,ubuntu - 我应该为'pcre-devel'安装什么软件包? - Ubuntu问答
問題描述
我需要安裝pcre-devel軟件包才能在Ubuntu上編譯lighttpd:
configure: error: pcre-config not found, install the pcre-devel package or build with –without-pcre
你能告訴我怎么做嗎?
最佳方法
嘗試使用apt-cache search,例如
sudo apt-cache search pcre
對(duì)我來說,這出現(xiàn)了很多,所以我為關(guān)鍵字dev做了grep。
這將打開libpcre3-dev和libpcre++-dev。
lighttpd無疑會(huì)使用其中之一。
因此,如果您的搜索顯示libpcre3-dev,則可以使用:sudo apt-get install libpcre3-dev進(jìn)行安裝
但是,您是否有任何理由自己編譯lighttpd?為什么不使用apt-get安裝?包括lighttpd-dev,lighttpd-doc和一些相關(guān)模塊。
次佳方法
在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)
$
對(duì)于C,則為libpcre3-dev;對(duì)于C++,則為libpcre++-dev。
同樣,lighthttpd也已經(jīng)存在:
$ 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
$
參考資料
總結(jié)
以上是生活随笔為你收集整理的linux pcre-devel,ubuntu - 我应该为'pcre-devel'安装什么软件包? - Ubuntu问答的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 暖气费多少钱一平啊?
- 下一篇: android ffmpeg 编码h26