Compiling gem from source with RVM

Due to this bug:

private method `open’ called for
Net::InternetMessageIO:Class (NoMethodError)

http://rubyforge.org/tracker/index.php?
func=detail&aid=28116&group_id=706&atid=2803

I tried compiling this patch:

but it’s apparently for a different version of ruby.
On to the next approach, compiling this gem, which is supposed to fix
it:

[email protected]:~/git/nntp-lib$
[email protected]:~/git/nntp-lib$ nl Authors.txt
1 Net::NNTP Client Library
2 ========================

 3  Active Developers:
 4  ------------------

 5  Balwinder S "bsd" Dheeman <bsd/AT/rubyforge.org> - Lead 

developer
6 AIM: bdheeman
7 ICQ: 93365210
8 IRC: [email protected]
9 GTalk: bdheeman/AT/gmail.com
10 Jabber: bdheeman/AT/jabber.org
11 MSN: bdheeman/AT/hotmail.com
12 Yahoo: bdheeman

13  Albert Vernon <aevernon/AT/rubyforge.org>
14  Bob Schafer <rschafer/AT/rubyforge.org>
15  Mark Triggs <mark/AT/dishevelled.net>

[email protected]:~/git/nntp-lib$
[email protected]:~/git/nntp-lib$ type rvm | head -1
rvm is a function
[email protected]:~/git/nntp-lib$
[email protected]:~/git/nntp-lib$ rvm --version

rvm 1.10.3 by Wayne E. Seguin [email protected], Michal P.
[email protected] [https://rvm.beginrescueend.com/]

[email protected]:~/git/nntp-lib$
[email protected]:~/git/nntp-lib$ ruby --version
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
[email protected]:~/git/nntp-lib$
[email protected]:~/git/nntp-lib$
[email protected]:~/git/nntp-lib$ rake gem --trace
rake aborted!
cannot load such file – config/requirements
/home/thufir/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/
rubygems/custom_require.rb:36:in require' /home/thufir/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/ rubygems/custom_require.rb:36:inrequire’
/home/thufir/git/nntp-lib/Rakefile:1:in <top (required)>' /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2/lib/rake/ rake_module.rb:25:inload’
/home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2/lib/rake/
rake_module.rb:25:in load_rakefile' /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2/lib/rake/ application.rb:495:inraw_load_rakefile’
/home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2/lib/rake/
application.rb:78:in block in load_rakefile' /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2/lib/rake/ application.rb:129:instandard_exception_handling’
/home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2/lib/rake/
application.rb:77:in load_rakefile' /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2/lib/rake/ application.rb:61:inblock in run’
/home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2/lib/rake/
application.rb:129:in standard_exception_handling' /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2/lib/rake/ application.rb:59:inrun’
/home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2/bin/rake:32:in
<top (required)>' /home/thufir/.rvm/gems/ruby-1.9.3-p125/bin/rake:19:inload’
/home/thufir/.rvm/gems/ruby-1.9.3-p125/bin/rake:19:in `’
[email protected]:~/git/nntp-lib$

On stackoverflow, the suggestion is that the source of this problem is
RVM:

http://stackoverflow.com/questions/9367880/rake-aborted-cannot-load-such-
file-bundler-setup

"I had problems like that, and switch to rbenv/ruby-build. No problems
since. I don’t know enough about rvm to tell you what’s wrong though –
ksol Feb 20 at 21:50

Okay I figured it out. It was rvm. The gem directory it was using was
the
system default, but rvm was checking its own gemdir so I had to switch
it
over. – Chris Feb 20 at 21:55"

Before I go about fiddling with RVM, I just wanted to see whether I’m on
the right path to get this gem working, and whether it will likely
resolve this bug.

thanks,

Thufir

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs