开发者社区> 问答> 正文

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.

该怎么解决这几个依赖,有人可以帮忙指点下吗?


展开
收起
爱吃鱼的程序员 2020-06-14 18:13:10 635 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    我在Ubuntu14.04上打包了HHVM3.5.0及其依赖库,你下载应该就能运行.
    <atarget="_blank"rel="nofollow">http://my.oschina.net/eechen/blog/371643
    你确定你是照着这个做的吗?https://github.com/facebook/hhvm/wiki/Prebuilt-Packages-on-Ubuntu-12.04sudoapt-getremovehhvm卸载系统已经安装的HHVM.把文件/etc/apt/sources.list里和目录/etc/apt/sources.list.d/下的HHVM项删除.
    重新安装HHVM:
    sudoapt-getupdate
    sudoapt-cachesearchhhvm
    sudoapt-getinstallhhvm
    <divclass='ref'>

    引用来自“Feng_Yu”的评论

    你确定你是照着这个做的吗?https://github.com/facebook/hhvm/wiki/Prebuilt-Packages-on-Ubuntu-12.04<divclass='ref'>

    引用来自“eechen”的评论

    sudoapt-getremovehhvm卸载系统已经安装的HHVM.把文件/etc/apt/sources.list里和目录/etc/apt/sources.list.d/下的HHVM项删除.
    重新安装HHVM:
    sudoapt-getupdate
    sudoapt-cachesearchhhvm
    sudoapt-getinstallhhvm
    回复<aclass='referer'target='_blank'>@eechen:我使用的是这条命令:echodebhttp://mirrors.hypo.cn/hhvm/ubuntuprecisemain|sudotee/etc/apt/sources.list.d/hhvm.list.效果跟你那个应该是一样的,但是安装就报出依赖错误是的,应该添加在sudonano/etc/apt/sources.list.d/hhvm.list写入一句debhttp://dl.hhvm.com/ubuntuprecisemain注意precise是12.04的代号.<divclass='ref'>

    引用来自“eechen”的评论

    我在Ubuntu14.04上打包了HHVM3.5.0及其依赖库,你下载应该就能运行.
    <atarget="_blank"rel="nofollow">http://my.oschina.net/eechen/blog/371643
    回复<aclass='referer'target='_blank'>@eechen:非常感激,我在centos6.5安装你打的包,测试成功了。我打包时把依赖库也打包进去了,放到CentOS上也是能够运行的,在12.04上自然也是能够云心的:http://static.oschina.net/uploads/space/2015/0125/233652_cLik_561214.png

    2020-06-14 18:13:26
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
《Java开发手册》2019最新版发布! 立即下载