Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Install ruby 1.9 with script on fedora
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 3 Mar 2011 14:03:10 +0000 (14:03 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 3 Mar 2011 14:03:10 +0000 (14:03 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9755 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/pipol/rc.fedora
buildtools/pipol/ruby.pl

index ed1f0c6..942a72b 100644 (file)
@@ -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
index 00708a2..d27264c 100644 (file)
@@ -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