Child pages
  • Mox_ruby
Skip to end of metadata
Go to start of metadata

Below xyz is your group name and abc is your userid.

Below are steps to install ruby from source:

 srun -p build --time=2:00:00 --mem=100G --pty /bin/bash

mkdir /gscratch/xyz/abc/rubystuff

mkdir /gscratch/xyz/abc/rubyinstall

cd /gscratch/xyz/abc/rubystuff

(Below wget command will get source code for ruby 2.5.1. If you want a different version of ruby, goto and right click on the links under stable releases and copy link location to choose a different version of ruby.)


tar -xvf ruby-2.5.1.tar.gz

cd ruby-2.5.1

./configure --prefix=/gscratch/xyz/abc/rubyinstall


make install

After this you can put /gscratch/xyz/abc/rubyinstall/bin in your PATH environment variable:

export PATH=/gscratch/xyz/abc/rubyinstall/bin:$PATH

Run below command to verify that you have got ruby 2.5.1:

ruby -v


For rvm users:

If you have installed rvm and want to use rvm then first run below command and then use rvm. This command will ensure that rvm does not try to install dependencies to system locations.

rvm autolibs disable



  • No labels