Ubuntu 12.04.5 LTS 安装hhvm 3.5报错,该如何处理依赖?
安装环境:
root@ubuntu :/# uname -r
3.2.0-29-generic
root@ubuntu :/# sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
hhvm版本:
root@ubuntu :/# apt-cache showpkg hhvm
Package: hhvm
Versions:
3.5.0~wheezy
3.5.0~precise
安装hhvm的时候报出以下错误:
root@ubuntu :/# apt-get install hhvm
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:
hhvm : Depends: libmemcached10 but it is not installable
Depends: libcurl3 (>= 7.26.0) but 7.22.0-3ubuntu4.12 is to be installed
Depends: libmagickwand5 but it is not installable
Depends: libmemcachedutil2 but it is not installable
E: Unable to correct problems, you have held broken packages.
该怎么解决这几个依赖,有人可以帮忙指点下吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
我打包时把依赖库也打包进去了,放到CentOS上也是能够运行的,在12.04上自然也是能够云心的: http://static.oschina.net/uploads/space/2015/0125/233652_cLik_561214.png
回复
非常感激,我在 centos 6.5 安装你打的包,测试成功了。
引用来自“eechen”的评论
我在Ubuntu14.04上打包了HHVM3.5.0及其依赖库,你下载应该就能运行.
http://my.oschina.net/eechen/blog/371643
是的,应该添加在 sudo nano /etc/apt/sources.list.d/hhvm.list 写入一句 deb http://dl.hhvm.com/ubuntu precise main 注意precise是12.04的代号.
回复
我使用的是这条命令: echo deb http://mirrors.hypo.cn/hhvm/ubuntu precise main | sudo tee /etc/apt/sources.list.d/hhvm.list . 效果跟你那个应该是一样的,但是安装就报出依赖错误
引用来自“eechen”的评论
sudo apt-get remove hhvm* 卸载系统已经安装的HHVM.把文件/etc/apt/sources.list里和目录/etc/apt/sources.list.d/下的HHVM项删除.
重新安装HHVM:
sudo apt-get update
sudo apt-cache search hhvm
sudo apt-get install hhvm
sudo apt-get remove hhvm* 卸载系统已经安装的HHVM.把文件/etc/apt/sources.list里和目录/etc/apt/sources.list.d/下的HHVM项删除.
重新安装HHVM:
sudo apt-get update
sudo apt-cache search hhvm
sudo apt-get install hhvm
我在Ubuntu14.04上打包了HHVM3.5.0及其依赖库,你下载应该就能运行.
http://my.oschina.net/eechen/blog/371643