From a4613a7bf0e54af07dc4cef9c7bb3dde32a3a099 Mon Sep 17 00:00:00 2001 From: navarrop Date: Thu, 3 Mar 2011 14:03:10 +0000 Subject: [PATCH] Install ruby 1.9 with script on fedora git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9755 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- buildtools/pipol/rc.fedora | 9 ++++++++- buildtools/pipol/ruby.pl | 16 ++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/buildtools/pipol/rc.fedora b/buildtools/pipol/rc.fedora index ed1f0c6763..942a72b04b 100644 --- a/buildtools/pipol/rc.fedora +++ b/buildtools/pipol/rc.fedora @@ -42,4 +42,11 @@ echo $which_wget echo $which_perl echo $which_f2c echo $which_gcov -echo "FIN------------------------------------" \ No newline at end of file +echo "FIN------------------------------------" + +wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.1-p378.tar.gz +tar zxvf ruby-1.9.1-p378.tar.gz +cd ./ruby-1.9.1-p378 +./configure -prefix=/usr +make +sudo make install \ No newline at end of file diff --git a/buildtools/pipol/ruby.pl b/buildtools/pipol/ruby.pl index 00708a2a4d..d27264cbd9 100644 --- a/buildtools/pipol/ruby.pl +++ b/buildtools/pipol/ruby.pl @@ -1,9 +1,9 @@ #!/usr/bin/perl -w use strict; - +my($ruby_version); if( -e "/usr/bin/apt-get") { - my($ruby_version) = `apt-cache search ruby1.9.1-dev`; + $ruby_version = `apt-cache search ruby1.9.1-dev`; if( $ruby_version=~ /^$/){ $ruby_version = `apt-cache search ruby1.9-dev`; @@ -25,12 +25,8 @@ if( -e "/usr/bin/apt-get") my($ruby_lib)=`ls /usr/lib/lib$ruby_version.so`; chomp $ruby_lib; `sudo ln -sf "$ruby_lib" /usr/lib/libruby.so`; - - $ruby_version=`ruby --version`; - print "ruby = $ruby_version"; - print "libruby = ".`ls /usr/lib/libruby.so`; -} -elsif(-e "/usr/bin/yum") -{ - `sudo yum -y -q install ruby-devel ruby` } + +$ruby_version=`ruby --version`; +print "ruby = $ruby_version"; +print "libruby = ".`ls /usr/lib/libruby.so`; \ No newline at end of file -- 2.20.1