Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
module purge
module load misc/openssl/1.0.2
module load library/zlib/1.2.11
cd /sw/misc/ruby/2.2.2/src/ruby-2.2.2
./configure --enable-shared --with-zlib-dir=/sw/library/zlib/1.2.11 -prefix=/sw/misc/ruby/2.2.2 2>&1 | tee configureLog.txt
make 2>&1 | tee makeLog.txt
make install 2>&1 | tee makeInstallLog.txt

Usage: module load misc/ruby/2.2.2

#setenv         GEM_HOME /sw/misc/ruby/2.2.2/env/gems
mkdir -p /sw/misc/ruby/2.2.2/env/gems
cd /sw/misc/ruby/2.2.2/src/rubygems-2.4.8
ruby setup.rb

When you use the --user-install option, RubyGems will install the gems to a directory inside your home directory, something like ~/.gem/ruby/2.2.2. 


...