doulu7174 2014-05-20 06:15
浏览 60
已采纳

使用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!

  • 写回答

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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作