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
#!/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`;
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