Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Agile Aspect
RE: rsruby won't load [ reply ]  
2010-03-18 02:19
Hi - I upgraded to ruby 1.9.1p376 and the setting the environment variable is no longer required.

Thanks for the reply!

-- Agile

By: ben woodcroft
RE: rsruby won't load [ reply ]  
2010-03-18 00:16
I assumed this would be fixed soon when I started with Ruby also (this has nothing to do with rsruby), though I was never so rude about it. Nothing seems to have changed, but it's a problem you only have to worry about once.

From the rubygems user guide page:

The need to preload the RubyGems software is one of the biggest drawbacks to RubyGems’ versioned software approach. The RubyGems team is investigating ways of making this issue much less onerous.


By: Agile Aspect
RE: rsruby won't load [ reply ]  
2010-03-17 23:41
I found the problem.

I have to

setenv RUBYOPT rubygems

in order to use the gems I've installed in the default location.

What a terrible design.

I'm going to have to re-think switching from Python/RPY2 and Ruby/RSRuby.


By: Agile Aspect
rsruby won't load [ reply ]  
2010-03-17 21:45
Hi - after installing

rsruby-0.5.1.1.gem

using

R-2.9.1
ruby 1.8.7 (2009-12-24 patchlevel 248)
gem 1.3.6
gcc 4.1.2

when I try to load rsruby into irb, it generates the following error

>> require 'rsruby'
LoadError: no such file to load -- rsruby
from (irb):1:in `require'
from (irb):1
from :0

gem indicates it was installed

gem list rsruby
rsruby (0.5.1.1)

Note, there's only ruby installation on the system.

I tried uninstalling it and re-installed it:

Building native extensions. This could take a while...
Successfully installed rsruby-0.5.1.1
1 gem installed
Installing ri documentation for rsruby-0.5.1.1...
Updating ri class cache with 940 classes...
Installing RDoc documentation for rsruby-0.5.1.1...

but I still have the same problem - irb can't load rsruby.

Here's the lib sub-directory listing for the rsruby installation directory

rsruby rsruby_c.so rsruby.rb

and

ldd rsruby_c.so

indicates the R, ATLAS, and the system libraries were found.

If I build the same software on another system, I have the exact same problem.

Any help would be greatly appreciated.

-- Agile