已經安裝了
tb250@tb:/etc/dpkg/dpkg.cfg.d$ sudo dpkg -l |grep libpcre3
ii libpcre3:amd64 1:8.35-3ubuntu1 amd64 Perl 5 Compatible Regular Expression Library - runtime files
tb250@tb:/etc/dpkg/dpkg.cfg.d$ sudo apt-get install libpcre3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libpcre3-dev : Depends: libpcre3 (= 1:8.31-2ubuntu2.1) but 1:8.35-3ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
tb250@tb:/etc/dpkg/dpkg.cfg.d$
google了半天 -f 之類的參數都用了,哪位大神給個思路?
==================2016-6-16==錯誤重現
root@tb:/home/tb/swoole-src-swoole-1.8.5-stable# apt-get install libpcre3 libpcre3-dev
正在讀取軟件包列表... 完成
正在分析軟件包的依賴關係樹
正在讀取狀態信息... 完成
libpcre3 已經是最新的版本了。
有一些軟件包無法被安裝。如果您用的是 unstable 發行版,這也許是
因為係統無法達到您要求的狀態造成的。該版本中可能會有一些您需要的軟件
包尚未被創建或是它們已被從新到(Incoming)目錄移出。
下列信息可能會對解決問題有所幫助:
下列軟件包有未滿足的依賴關係:
libpcre3-dev : 依賴: libpcre3 (= 1:8.31-2ubuntu2.2) 但是 1:8.31-2ubuntu2.3 正要被安裝
E: 無法修正錯誤,因為您要求某些軟件包保持現狀,就是它們破壞了軟件包間的依賴關係。
我在重現下這個問題。是在
ubuntu
上安装yaf
扩展的时候。一路
tar
zxvf
cd
phpize
,到make
的时候,提示inluce pcre.h
不存在,那我就安裝
接著就報了類似上面的第二張圖錯誤,
大概意思是他要安裝ibpcre3-dev,需要libpcre3 (= 1:8.31-2ubuntu2.1)的版本,但目前給我安裝的是1:8.35-3ubuntu1 ,
我開始想
remove
后面的这个版本,发现需要很多依赖。索性我装一个你需要的版本,所以我就搜索1:8.31-2ubuntu2.1 安装了他需要的依赖包,一路configure
make install
下來,居然神奇的裝好了,然後我再次在yaf 目錄下make的時候,也就成功了,make install 也就過去了
然後編輯下
sudo vim /etc/php5/apache2/php.ini
最後重啟下apache
最後來個圖
