hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

libgmp dependency not installed when using Ubuntu packages

Open berle opened this issue 12 years ago • 7 comments

After installing hhvm on a fresh Ubuntu 14.04 machine, using the official repository, the following error will occur when you run php/hhvm:

$ php
php: error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory

The error is easily resolved by running apt-get install libgmp10, but the package should probably be pulling in this dependency to begin with.

berle avatar Sep 25 '14 14:09 berle

the same issue on fresh debian 7.6 Also I got error

libmemcachedutil.so.2: cannot open shared object file

fixed with

apt-get install libmemcached-dev

zhil avatar Sep 26 '14 16:09 zhil

@berle: https://github.com/facebook/hhvm/issues/3818, should be fixed by https://github.com/hhvm/packaging/commit/b6e21a924d208dceb296d294c8e06ddc936c6e21. @zhil: https://github.com/hhvm/packaging/issues/72, should be fixed by https://github.com/hhvm/packaging/commit/d5df4152a68308b6fa6a0ae4032c58cfaf52815f + https://github.com/hhvm/packaging/commit/2066d5f5dc38684fd7fca909be01fde1e2b11296 and just needs a rebuild - see https://github.com/hhvm/packaging/pull/76.

Majkl578 avatar Sep 30 '14 02:09 Majkl578

@berle @zhil have you tried again with the fixes @Majkl578 mentioned?

paulbiss avatar Oct 22 '14 00:10 paulbiss

I have the same problem with a fresh Ubuntu 14.04. I installed HHVM following the official instructions:

wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
echo deb http://dl.hhvm.com/ubuntu trusty main | sudo tee /etc/apt/sources.list.d/hhvm.list
sudo apt-get update
sudo apt-get install hhvm

After that I tried to execute HHVM interactive shell and got the first error:

hhvm - a
hhvm: error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory

So I installed libgmp-dev and tried again obtaining another error:

sudo apt-get install libgmp-dev
hhvm - a
hhvm: error while loading shared libraries: libmemcachedutil.so.2: cannot open shared object file: No such file or directory

Then I installed libmemcached-dev and finally works.

sudo apt-get install libmemcached-dev

The process was not complicated but I was using the instructions to build a Docker image. I have already updated with additional steps to address these errors. I also think that the package should probably be pulling in this dependency.

ghost avatar Oct 22 '14 12:10 ghost

From @Majkl578's links it looks like it's been fixed, maybe we need to update the package?

cc @ptarjan

paulbiss avatar Oct 22 '14 17:10 paulbiss

I dont have fresh ubuntu, but the same issue on fresh Debian 7 I have used instructions from https://github.com/facebook/hhvm/wiki/Prebuilt-Packages-on-Debian-7

wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
echo deb http://dl.hhvm.com/debian wheezy main | sudo tee /etc/apt/sources.list.d/hhvm.list
sudo apt-get update
sudo apt-get install hhvm

and got error

hhvm: error while loading shared libraries: libmemcachedutil.so.2: cannot open shared object file: No such file or directory

Fixed with

sudo apt-get install libgmp-dev
sudo apt-get install libmemcached-dev

zhil avatar Oct 22 '14 17:10 zhil

Hmm, sounds like this may be a packaging issue, can you open an issue over at https://github.com/hhvm/packaging ?

paulbiss avatar Nov 21 '14 21:11 paulbiss