>  Q&A  >  본문

ubuntu 14.10 安装 libpcre3-dev错误-安装swoole扩展错误

已经安装了

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: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。

大家讲道理大家讲道理2739일 전993

모든 응답(1)나는 대답할 것이다

  • 怪我咯

    怪我咯2017-04-22 08:58:16

    이 문제를 재현하고 있습니다. 이제 ubuntuyaf 확장을 설치할 차례입니다.
    tar zxvf cd phpize까지 make에 도달하면 inluce pcre.h이 존재하지 않는다는 메시지가 나타납니다.

    으아악

    그럼 설치하겠습니다

    으아악

    그런 다음 위의 두 번째 그림과 유사한 오류가 보고되었습니다.

    <… 생각하기 시작했습니다

    이 최신 버전에서는 많은 종속성이 필요하다는 것을 발견했습니다. 필요한 버전만 설치했으니 1:8.31-2ubuntu2.1 을 검색해서 필요한 종속성 패키지를 설치해 줬습니다.
    remove 끝까지 마법처럼 설치되었습니다. configure 으아악 make install그런 다음 yaf 디렉터리에서 다시 만들었더니 성공했고 make install이 통과되었습니다

    으아악

    그런 다음 수정하세요

    으아악 sudo vim /etc/php5/apache2/php.ini 마지막으로 아파치를 다시 시작하세요

    으아악

    마지막 사진


    회신하다
    0
  • 취소회신하다