Closed leo108 closed 10 years ago
Where do you get hhvm rpm package from ? do you follow this guide [1] ?
[1] https://github.com/facebook/hhvm/wiki/Prebuilt-Packages-on-Centos-6.x
Of course I followed that guide, import the epel and hhvm repo, and yum install hhvm
, and yum display that error.
I also use yum info binutils
, that shows
[root@localhost ~]# yum info binutils
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* epel: mirrors.hust.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
Installed Packages
Name : binutils
Arch : x86_64
Version : 2.20.51.0.2
Release : 5.36.el6
Size : 9.4 M
Repo : installed
From repo : anaconda-CentOS-201311272149.x86_64
Summary : A GNU collection of binary utilities
URL : http://sources.redhat.com/binutils
License : GPLv3+
the version is not match the require of
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* epel: mirrors.hust.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
whereis hhvm repo ?
prebuild hhvm rpm package that built by me is not require binutils, you can see my spec file here https://github.com/dheche/hhvm/blob/master/rpm/hhvm/hhvm.spec
maybe you install somebody else hhvm rpm package ?
hhvm doesn't require binutils, but gcc 4.7.2 requires, https://github.com/dheche/hhvm/blob/master/rpm/gcc/gcc.spec
you should use all dependecies from my hhvm repo if you want to stay out from trouble :) exclude gcc from update repo.
I have tried yum install gcc --enablerepo=hhvm
,and it gives the same error
Error: Package: gcc-4.7.2-8.el6.x86_64 (hhvm)
Requires: binutils >= 2.20.51.0.2-12
Installed: binutils-2.20.51.0.2-5.36.el6.x86_64 (@anaconda-CentOS-201311272149.x86_64/6.5)
binutils = 2.20.51.0.2-5.36.el6
and hhvm repo doesn't provide binutils, the only provider is base
repo and it's highest version is 2.20.51.0.2-5.36.el6
mmhh, do you want to rebuild hhvm or just to use it ? because gcc is required only if you want to build hhvm.
from hhvm.spec BuildRequires: gcc >= 4.7.2, cmake >= 2.8.7, libevent-devel >= 1.4
Was there any resolution of this I'm facing exactly the same issue. Error: Package: gcc-4.7.2-8.el6.x86_64 (hhvm) Requires: binutils >= 2.20.51.0.2-12 and the highest I can find of binutils is 2.20.51.0.2-5.36.el6
Got the same issue for install of the required packages & the dev packages
Error: Package: gcc-4.7.2-8.el6.x86_64 (hhvm) Requires: binutils >= 2.20.51.0.2-12 Installed: binutils-2.20.51.0.2-5.36.el6.x86_64 (@anaconda-CentOS-201311272149.x86_64/6.5) binutils = 2.20.51.0.2-5.36.el6
Same issue, has anyone found a simple solution to this?
Error: Package: gcc-4.7.2-8.el6.x86_64 (hhvm) Requires: binutils >= 2.20.51.0.2-12 Installed: binutils-2.20.51.0.2-5.36.el6.x86_64 (@anaconda-CentOS-201303020151.x86_64/6.4)
I can install https://github.com/facebook/hhvm/wiki/HHVM-Pre-built-packages-for-Centos-6.4 method just fine, but that doesn't support Hacklang.
Got a reply over on facebook HHVM - guy recommends taking the jump to CentOS 7
https://github.com/facebook/hhvm/issues/3302#issuecomment-50638208
Was up last night hunting down a good base box, there's tonnes of bad CentosOS 7 one's out there with broken eth1 configs - this one seems to work if you've got vagrant: https://vagrantcloud.com/hfm4/centos7/version/5/provider/virtualbox.box
I started down the CentOS 7 path to compile my own . Got as far as missing php mcrpty library I think. As we got what we needed working from the http://hop5.in/ repo . It's been put on the back burner for now. The other option is there is a docker image about that might be worth a look
If you interested in CentOS 7 vagrant box I have some packer templates to build your own here https://github.com/AlanC-au/lunchbox.
I forgot to add libmcrypt-devel
to the dependency list on http://ckon.wordpress.com/2014/07/18/hhvm-centos-7/
Added it now, hope that helps. Let me know if you run into any other problems on CentOS 7.0 as I've built HHVM a few times now on 7
The "only" things you aren't going to like about CentOS 7.0 vs 6.5 are systemd
and grub2
- but it is "the future" as they say, unfortunately. The benefit is much much newer dependencies are easily available.
I would not recommend using the hop5.in repo, it is unofficial and the author is unknown and does not seem to maintain it, at least not recently. HHVM has several security vulnerabilities before 3.2 http://hhvm.com/blog/5609/hhvm-3-2-0
If you really, really really want to build HHVM on 6.5 and know what you are doing, you are going to need the devtoolset from the CERN repo ( http://linux.web.cern.ch/linux/devtoolset/#dts21 ). It can be done but it is going to take you a very long time to get everything built on 6.5
Sorry for inconvenience, right now i'm still in holiday, maybe i can look at this problem after August 4th when i'm back in business. I'll try to support both centos 6 and 7, and i will update my repo with hhvm v3.2 instead. Just be patient.
Missing binutils rpm is uploaded to the repo, can you test it out?
I test this out and it's fine for me now. As an aside I actually tested this in too places:
Thanks @AlanC-au :)
Hi, I'm using CentOS6.4(also tried in 6.5), the error info is
I have search a lot and don't find any binutils that version is higher than 2.20.51.0.2-12 in rpm format.
I find a rpm named
binutils-x86_64-linux-gnu
in epel repo, and its version is 2.23.51.0.3, but rpm name does not match the require of hhvm.Please help, THX