ruby 2.2.2 on centos 6.6

wget http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.gz
tar -xzvf ruby-2.2.2.tar.gz
cd ruby-2.2.2
module load tcltk/8.5.13  #tcltk installation
./configure --prefix=/opt/ruby/2.2.2
make -j64 #(if you have 64 cores...)
make install

Module file /etc/modulefiles/ruby/2.2.2

#%Module1.0####################################################################
##
## Discretizer AB modulefile
##
##
setenv RUBY_INCLUDE /opt/ruby/2.2.2/include
prepend-path PATH /opt/ruby/2.2.2/bin
prepend-path LD_LIBRARY_PATH /opt/ruby/2.2.2/lib

Lämna ett svar

Din e-postadress kommer inte publiceras. Obligatoriska fält är märkta *