$ phpenv global 5.5 2>/dev/null
5.5 is not pre-installed; installing
Downloading archive: https://storage.googleapis.com/travis-ci-language-archives/php/binaries/ubuntu/16.04/x86_64/php-5.5.tar.bz2
0.11s$ curl -s -o archive.tar.bz2 $archive_url && tar xjf archive.tar.bz2 --directory /
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
0.00s0.02s$ phpenv global 5.5
rbenv: version `5.5' not installed
The command "phpenv global 5.5" failed and exited with 1 during .
Same error for 5.4, but with URI https://storage.googleapis.com/travis-ci-language-archives/php/binaries/ubuntu/16.04/x86_64/php-5.4.tar.bz2
.
Both are 404’s. Our builds are broken due to this.
1 Like
Having the same problem, both 5.4 and 5.5.
5.4 output:
$ phpenv global 5.4 2>/dev/null
5.4 is not pre-installed; installing
Downloading archive: https://storage.googleapis.com/travis-ci-language-archives/php/binaries/ubuntu/16.04/x86_64/php-5.4.tar.bz2
$ curl -s -o archive.tar.bz2 $archive_url && tar xjf archive.tar.bz2 --directory /
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
$ phpenv global 5.4
rbenv: version `5.4' not installed
The command "phpenv global 5.4" failed and exited with 1 during .
Your build has been stopped.
Because of this, the build is failing.
Is there any soolution or workaround?
+1, I have the same problem
To my knowledge, you can’t compile these old PHP versions on Xenial. If you need them, please use Trusty.
4 Likes
adding “dist: trusty” to .travis.yml works for me
thanks @BanzaiMan
3 Likes
It seems that the Travis CI build uses the Xenial
dist by default, not Trusty
.
To support the php-5.x
versions correctly, adding the dist: trusty
in .travis.yml
setting is necessary.
References
1 Like