2014-05-20 06:15
浏览 58

使用MySQL 5.6版从源代码编译PHP

I am trying to compile PHP from source to get ZTS working. I have the source for PHP and I try to install the dependencies with

apt-get build-dep php5

I also have MySQL 5.6 installed for Ubuntu 14.04LTS and I am getting this error after the command:

The following packages have unmet dependencies: mysql-server : Depends: mysql-server-5.5 but it is not going to be installed E: Build-dependencies for php5 could not be satisfied.

Is there anyway to bypass this dependency as MySQL 5.6 works ok with prebuilt PHP5 but I cannot start compiling as the dependency is missing? Thanks!

图片转代码服务由CSDN问答提供 功能建议

我正在尝试从源代码编译PHP以使ZTS正常工作。 我有PHP的源代码,我尝试使用

apt-get build-dep php5 \安装依赖项 n

我也为Ubuntu 14.04LTS安装了MySQL 5.6,我在命令后收到此错误:

以下软件包有未满足的依赖项: mysql -server:取决于:mysql-server-5.5但它不会被安装 E:无法满足php5的构建依赖性。

是 无论如何都要绕过这种依赖,因为MySQL 5.6与预构建的PHP5一起工作正常,但我无法开始编译,因为依赖项丢失了? 谢谢!

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 收藏
  • 邀请回答

5条回答 默认 最新

  • duanquyong8164 2014-07-10 14:47

    Although not the same issue this MySQL bug report hints at a solution. Try the following steps:

    1. Uninstall mysql-client-5.6 and mysql-server-5.6: [sudo] apt-get remove mysql-client-5.6 mysql-server-5.6.

    2. Initiate your [sudo] apt-get build-dep php5 command. Allow necessary dependencies to be built automatically prior to upgrading again.

    3. Reinstall mysql-5.6. This should replace all references to mysql-5.5. Use the command [sudo] apt-get install mysql-client-5.6 mysql-server-5.6.

    解决 无用
    打赏 举报

相关推荐 更多相似问题