Ruby 2.5.0 builds failing on CircleCI 1.0 due to missing `/home/travis`

If you use Ruby 2.5.0 on our legacy 1.0 platform you may be affected by this bug.

bash: /opt/circleci/.rvm/rubies/ruby-2.5.0/bin/bundle:
  /home/travis/.rvm/rubies/ruby-2.5.0/bin/ruby: bad interpreter: No such file or directory

On the Ubuntu 14.04 Trusty build images we’re still using rvm to manage and install rubies:
https://circleci.com/docs/1.0/build-image-trusty/#ruby

In an ironic turn of fate, we’ve received several reports of builds failing on CircleCI due to a dependency on the /home/travis directory when installing the Ruby 2.5.0 binaries that TravisCI provides for rvm users.

(More on the Travis CI precompiled Ruby binaries here: http://rubies.travis-ci.org/usage)

There is a workaround:

You will need to add this to your config:

sudo ln -s /opt/circleci /home/travis

A complete example:

machine:
  pre:
    - sudo ln -s /opt/circleci /home/travis

  ruby:
    version: 2.5.0

test:
  override:
    - ruby -v

Here is an example build which shows it:
https://circleci.com/gh/zzak/sandbox/222

Please reach out if you have any questions or concerns.

3 Likes

We’ve applied a fix on the backend so this workaround is no longer needed.

1 Like