]> cat aescling's git repositories - mastodon.git/commitdiff
fix ruby 2.5 rvm install in vagrant (#6396)
authorDaniel King <northerner@users.noreply.github.com>
Wed, 31 Jan 2018 20:52:58 +0000 (20:52 +0000)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 31 Jan 2018 20:52:58 +0000 (21:52 +0100)
RVM has a known issue with installing Ruby 2.5 on the version of Ubuntu
the Vagrant box is using: https://github.com/rvm/rvm/issues/4291

This bug was preventing any gem installs in the vagrant box

Vagrantfile

index 0c21bed68c83b175de033ddae8a701a4575f8363..bbe3b7f3b10179e57d6a2b147b8af51e985a429f 100644 (file)
@@ -48,7 +48,7 @@ curl -sSL https://raw.githubusercontent.com/rvm/rvm/stable/binscripts/rvm-instal
 source /home/vagrant/.rvm/scripts/rvm
 
 # Install Ruby
-rvm install ruby-$RUBY_VERSION
+rvm reinstall ruby-$RUBY_VERSION --disable-binary
 
 # Configure database
 sudo -u postgres createuser -U postgres vagrant -s