Unable to set up PHP 5.6 with phpenv

I have an Open Source project, and today the builds of it are started to fail when trying to set up PHP:

$ phpenv global 5.6
rbenv: version `5.6' not installed

It used to work fine quite recently.

In the docs, I see that PHP 5.6 is supported on xenial: The Xenial Build Environment - Travis CI

How do I overcome this error?

1 Like