installing hhvm specific release - hhvm

for few times now i've been following this guidance trying to install hhvm 3.9 on my system, which is as follows :
RELEASE=17.2
CODENAME=rafaela
EDITION="Cinnamon 64-bit"
DESCRIPTION="Linux Mint 17.2 Rafaela"
DESKTOP=Gnome
TOOLKIT=GTK
NEW_FEATURES_URL=http://www.linuxmint.com/rel_rafaela_cinnamon_whatsnew.php
RELEASE_NOTES_URL=http://www.linuxmint.com/rel_rafaela_cinnamon.php
USER_GUIDE_URL=help:linuxmint
GRUB_TITLE=Linux Mint 17.2 Cinnamon 64-bit
I replaced the deb line by adding the specific version i want:
sudo add-apt-repository "deb http://dl.hhvm.com/ubuntu trusty-lts-3.9 main"
and yet i always end up running hhvm --version and then get:
HipHop VM 3.10.0-dev (rel)
Compiler: heads/master-0-ge6fe4904121181791863528eef873cd31ac8fd23
Repo schema: 8b2eab7449176279799f086c56a57f084374dc0e
any idea what can i be doing wrong? or what is hiding in my system that causes this?
this is the log for trying to install the 3.6 version ( i thought to give it a try):
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libboost-context1.54.0 libboost-filesystem1.54.0
libboost-program-options1.54.0 libboost-regex1.54.0 libboost-thread1.54.0
The following NEW packages will be installed:
hhvm libboost-context1.54.0 libboost-filesystem1.54.0
libboost-program-options1.54.0 libboost-regex1.54.0 libboost-thread1.54.0
0 upgraded, 6 newly installed, 0 to remove and 19 not upgraded.
Need to get 16.0 MB/16.4 MB of archives.
After this operation, 2,057 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://dl.hhvm.com/ubuntu/ trusty-lts-3.6/main hhvm amd64 3.6.6~trusty [16.0 MB]
Fetched 16.0 MB in 47s (336 kB/s)
Selecting previously unselected package libboost-context1.54.0:amd64.
(Reading database ... 193638 files and directories currently installed.)
Preparing to unpack .../libboost-context1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-context1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-filesystem1.54.0:amd64.
Preparing to unpack .../libboost-filesystem1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-filesystem1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-program-options1.54.0:amd64.
Preparing to unpack .../libboost-program-options1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-program-options1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-regex1.54.0:amd64.
Preparing to unpack .../libboost-regex1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-regex1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-thread1.54.0:amd64.
Preparing to unpack .../libboost-thread1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-thread1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package hhvm.
Preparing to unpack .../hhvm_3.6.6~trusty_amd64.deb ...
Unpacking hhvm (3.6.6~trusty) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up libboost-context1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-filesystem1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-program-options1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-regex1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-thread1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up hhvm (3.6.6~trusty) ...
********************************************************************
* HHVM is installed.
*
* Running PHP web scripts with HHVM is done by having your
* webserver talk to HHVM over FastCGI. Install nginx or Apache,
* and then:
* $ sudo /usr/share/hhvm/install_fastcgi.sh
* $ sudo /etc/init.d/hhvm restart
* (if using nginx) $ sudo /etc/init.d/nginx restart
* (if using apache) $ sudo /etc/init.d/apache restart
*
* Detailed FastCGI directions are online at:
* https://github.com/facebook/hhvm/wiki/FastCGI
*
* If you're using HHVM to run web scripts, you probably want it
* to start at boot:
* $ sudo update-rc.d hhvm defaults
*
* Running command-line scripts with HHVM requires no special setup:
* $ hhvm whatever.php
*
* You can use HHVM for /usr/bin/php even if you have php-cli
* installed:
* $ sudo /usr/bin/update-alternatives \
* --install /usr/bin/php php /usr/bin/hhvm 60
********************************************************************
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
this one ended up the same way.... version 3.10.0

Something else may be providing hhvm -- you can do which hhvm to see where it is. The one installed via apt-get should be /usr/bin/hhvm. A version you have installed yourself on top of that might be overriding it.
A couple of other notes about your output. First, this was in your output above:
Get:1 http://dl.hhvm.com/ubuntu/ trusty-lts-3.6/main hhvm amd64 3.6.6~trusty [16.0 MB]
That is different than the 3.9 source line you posted above. You should audit your apt configuration -- /etc/apt/sources.list and everything under /etc/apt/sources.list.d/ -- and see if you have multiple specifications of the HHVM repo.
Finally, note that you are using trusty, which is Ubuntu 14.04. This is not a build specifically for your Mint system. It may work, but it may not -- Mint is not an officially supported distribution for HHVM. Building from source will almost certainly work, but the binaries may not be compatible.

Related

I am trying to install docker on centos8 vagrantbox facing the error 'Downloading successful, but checksum doesn't match'

[MIRROR] containerd.io-1.2.0-3.el7.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: ece851b2b2defa24eb3b817b14d97f31f4043a713d7367972bd2c1ef4f2788b8(sha256) Expected: 7bd1d8da7d896ead55fdea3a42100eac4c4d7800f958d3ae056d40268dec4636(sha256)
(8/21): python3-policycoreutils-2.9-9.el8.noarch.rpm 107 kB/s | 2.2 MB 00:21
[MIRROR] containerd.io-1.2.0-3.el7.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: 3928fc6c58817b02602a249e512d7e99b7c3fe06ea5d9ff3ad46e25984ff8141(sha256) Expected: 7bd1d8da7d896ead55fdea3a42100eac4c4d7800f958d3ae056d40268dec4636(sha256)
[MIRROR] docker-ce-18.09.1-3.el7.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: 3ddabd445a05b85aeba128da42283d3285ca8055e6a201139ee49b682942ba43(sha256) Expected: 6034f83c3bf3d5d31120ef36b3172dbb28d1ac8ae3699ed8cb33924dcef0d17a(sha256)
[MIRROR] containerd.io-1.2.0-3.el7.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: 3914815a5c9756672d6f046929335ddff86607c29ac8a3c3fc12452a69952bf7(sha256) Expected: 7bd1d8da7d896ead55fdea3a42100eac4c4d7800f958d3ae056d40268dec4636(sha256)
[FAILED] containerd.io-1.2.0-3.el7.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
(10-11/21): docker-ce-18.09.1-3.el7.x86_64.rpm 50% [============================================== ] 1.4 MB/s | 50 MB 00:35 ETA
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: Error downloading packages:
Cannot download Packages/containerd.io-1.2.0-3.el7.x86_64.rpm: All mirrors were tried
Error: Transaction test error: package selinux-policy-targeted-3.14.3-41.el8_2.5.noarch does not verify: Header SHA1 digest: BAD (Expected ab8b3fe6b75faa65c89e64ec34986ee49924f982 != 3716bcc257255e43bc9ace1b9c4aecb6fcba3e61) package python3-policycoreutils-2.9-9.el8.noarch does not verify: Header SHA1 digest: BAD (Expected af32d12b99154706740619e0ac39289c009f1aa9 != faa84ee41c25523f2a05358d172f124370c18f99) package containerd.io-1.2.6-3.3.el7.x86_64 does not verify: no digest
''' Please help me to install docker on centos8 to fix this issue SHA1 digest: BAD '''
Try installing packages containerd manually:
yum clean packages #clean packages from failed install
dnf install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm #install newest containerd manually
sudo yum install docker-ce docker-ce-cli #install Docker daemon and CLI
Links:
Install Docker on CentOS
Docker documentation for installation
on CentOS
Docker CentOS repository

How do I get apt-get to ignore ros-kinetic-opencv3?

I would like to install sudo apt-get install ros-kinetic-cv-bridge but at the some time ignore install ros-kinetic-opencv3
when using this command sudo apt-get install ros-kinetic-cv-bridge, it istall both like this output:
sudo apt-get install ros-kinetic-cv-bridge
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
binutils-aarch64-linux-gnu cpp-5-aarch64-linux-gnu cpp-aarch64-linux-gnu g++-5-aarch64-linux-gnu g++-aarch64-linux-gnu gcc-5-aarch64-linux-gnu gcc-5-aarch64-linux-gnu-base gcc-5-cross-base
gcc-aarch64-linux-gnu libasan2-arm64-cross libatomic1-arm64-cross libc6-arm64-cross libc6-dev-arm64-cross libflann-dev libflann1.8 libfreenect-dev libfreenect0.5 libgcc-5-dev-arm64-cross
libgcc1-arm64-cross libgomp1-arm64-cross libitm1-arm64-cross libpcl-apps1.7 libpcl-common1.7 libpcl-dev libpcl-features1.7 libpcl-filters1.7 libpcl-io1.7 libpcl-kdtree1.7 libpcl-keypoints1.7
libpcl-octree1.7 libpcl-outofcore1.7 libpcl-people1.7 libpcl-recognition1.7 libpcl-registration1.7 libpcl-sample-consensus1.7 libpcl-search1.7 libpcl-segmentation1.7 libpcl-surface1.7
libpcl-tracking1.7 libpcl-visualization1.7 libpcl1.7 libprotoc9v5 libqhull-dev libqhull7 libstdc++-5-dev-arm64-cross libstdc++6-arm64-cross libubsan0-arm64-cross linux-libc-dev-arm64-cross
ros-kinetic-costmap-2d ros-kinetic-libg2o ros-kinetic-pcl-conversions ros-kinetic-pcl-msgs ros-kinetic-pcl-ros ros-kinetic-qt-gui ros-kinetic-qt-gui-cpp ros-kinetic-tf2-eigen ros-kinetic-voxel-grid
tango-icon-theme
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
ros-kinetic-opencv3
The following NEW packages will be installed:
ros-kinetic-cv-bridge ros-kinetic-opencv3
0 upgraded, 2 newly installed, 0 to remove and 14 not upgraded.
Need to get 0 B/22.8 MB of archives.
After this operation, 131 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package ros-kinetic-opencv3.
(Reading database ... 280801 files and directories currently installed.)
Preparing to unpack .../ros-kinetic-opencv3_3.3.1-5xenial-20190607-165251-0800_amd64.deb ...
Unpacking ros-kinetic-opencv3 (3.3.1-5xenial-20190607-165251-0800) ...
Selecting previously unselected package ros-kinetic-cv-bridge.
Preparing to unpack .../ros-kinetic-cv-bridge_1.12.8-0xenial-20190608-051419-0800_amd64.deb ...
Unpacking ros-kinetic-cv-bridge (1.12.8-0xenial-20190608-051419-0800) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Setting up ros-kinetic-opencv3 (3.3.1-5xenial-20190607-165251-0800) ...
Setting up ros-kinetic-cv-bridge (1.12.8-0xenial-20190608-051419-0800) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ..
how to ignore apt-get install ros-kinetic-opencv3?
As #user10455554 pointed out,
"Find the list of packages that are not meeting dependency.
Download the .deb file with apt-get download. Then use
sudo dpkg -i --ignore-depends=<package(s) to ignore> package.deb "

Build Error. Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages

Build Errors unable to find jq.
Err http://deb.debian.org jessie/main amd64 Packages
404 Not Found
Err http://deb.debian.org jessie-updates/main amd64 Packages
404 Not Found
Fetched 723 kB in 2s (357 kB/s)
W: Failed to fetch http://deb.debian.org/debian/dists/jessie/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
$ apt-get install jq
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package jq
ERROR: Job failed: exit code 1
#codinghaus mentioned in another thread:
This is due to the fact that
as Wheezy and Jessie have been integrated into the archive.debian.org structure recently, we are now removing all of Wheezy and all non-LTS architectures of Jessie from the mirror network starting today.
A solution (according to https://github.com/debuerreotype/docker-debian-artifacts/issues/66#issuecomment-476616579) is to add the following command into your Dockerfile before calling any apt-get update when using debian:jessie.
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list # Now archived
This will remove the jessie-updates repository (which now causes the 404) from sources.list.
FROM debian:jessie
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list # Now archived
RUN apt-get update
CMD /bin/sh
Just place this line before your apt-get commands in your Dockerfile:
RUN echo "deb http://deb.debian.org/debian jessie main" > /etc/apt/sources.list
Debian removed some url for old packages which is causing this issue. The line fixes the repository to refer to.
I had the same problem today. I believe yours is related to Jessie being removed from Debian (see: https://twitter.com/debian/status/1109080168318926851?s=12).
I upgraded php in Dockerfile to php:7.1.27-apache-stretch and it worked.
Maybe, the third party import that you are doing is not able to refer to the debian jessie, so changing ftp.debian.org to http://ftp.us.debian.org might make it work. If you are not referring to this directly, try upgrading or downgrading the imported versions, if removing them is not the option.
In my case, i was using:
FROM docker.***.com/node:10
downgrading the node from 10 to 8, kicked off the job successfully.

I can't get Docker installed on Debian 8 Jessie

I'm trying to get Docker installed on a machine with Debian 8 (Jessie), but I always seem to run into errors no matter what I try.
Using these instructions: https://docs.docker.com/install/linux/docker-ce/debian
Checking the kernal:
uname -r
3.16.0-4-686-pae
The fateful moment:
sudo apt-get install docker-ce
Setting up docker-ce (18.06.1~ce~3-0~debian) …
Installing new version of config file /etc/bash_completion.d/docker …
Job for docker.service failed. See ‘systemctl status docker.service’ and ‘journalctl -xn’ for details.
invoke-rc.d: initscript docker, action “start” failed.
dpkg: error processing package docker-ce (–configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-18+deb8u10) …
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)
I also tried installing directly from a package: https://download.docker.com/linux/debian/dists/jessie/pool/stable/amd64/
(Selecting version 17.03.2)
And after installing the dependencies, things still don't work:
sudo dpkg --install docker-ce_17.03.2_ce-0_debian-jessie_amd64.deb
(Reading database ... 169325 files and directories currently installed.)
Preparing to unpack docker-ce_17.03.2_ce-0_debian-jessie_amd64.deb ...
Unpacking docker-ce (17.03.2~ce-0~debian-jessie) over (17.03.2~ce-0~debian-jessie) ...
Setting up docker-ce (17.03.2~ce-0~debian-jessie) ...
Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript docker, action "start" failed.
dpkg: error processing package docker-ce (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u7) ...
Errors were encountered while processing:
docker-ce
I also looked at this article: http://www.boynux.com/docker-jessie/
But I didn't even get past the first step:
curl https://get.docker.com | sh
Either your platform is not easily detectable or is not supported by this
installer script.
Please visit the following URL for more detailed installation instructions:
https://docs.docker.com/engine/installation/
Between every one of these attempts I did a
sudo apt-get remove docker docker-engine docker.io docker-ce
sudo apt-get update
docker-ce isn't available for i686
see OS requirements
Docker CE is supported on both x86_64 (or amd64) and armhf architectures for Jessie and Stretch.

How to install libpthread.a in Ubuntu 14.04?

I'm looking for libpthread.a ( Static library ) for my 64 bit machine.
Now, I have shared library in my system.
/lib/x86_64-linux-gnu/libpthread-2.19.so
/lib/x86_64-linux-gnu/libpthread.so.0
Is there any way to get static libaray with only "apt-get install" ?
Kazu
Apt-get Install
sudo apt-get install libpthread-stubs0-dev
Result:
[sudo] password for administrator:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libntdb1 python-ntdb
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
libpthread-stubs0-dev
0 upgraded, 1 newly installed, 0 to remove and 71 not upgraded.
Need to get 4,068 B of archives.
After this operation, 41.0 kB of additional disk space will be used.
Get:1 http://mirrors.163.com/ubuntu/ trusty/main libpthread-stubs0-dev amd64 0.3-4 [4,068 B]
Fetched 4,068 B in 0s (8,675 B/s)
Selecting previously unselected package libpthread-stubs0-dev:amd64.
(Reading database ... 177941 files and directories currently installed.)
Preparing to unpack .../libpthread-stubs0-dev_0.3-4_amd64.deb ...
Unpacking libpthread-stubs0-dev:amd64 (0.3-4) ...
Setting up libpthread-stubs0-dev:amd64 (0.3-4) ...
Find libpthread.a
ls /usr/lib/x86_64-linux-gnu/ |grep libpthread
Result:
libpthread.a
libpthread_nonshared.a
libpthread.so
On my system:
~$ dpkg -S /usr/lib/x86_64-linux-gnu/libpthread.a
libc6-dev:amd64: /usr/lib/x86_64-linux-gnu/libpthread.a

Resources