Compiling gem from source with RVM

Due to this bug:

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

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

[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/> - Lead 

6 AIM: bdheeman
7 ICQ: 93365210
8 IRC: [email protected]
9 GTalk: bdheeman/AT/
10 Jabber: bdheeman/AT/
11 MSN: bdheeman/AT/
12 Yahoo: bdheeman

13  Albert Vernon <aevernon/AT/>
14  Bob Schafer <rschafer/AT/>
15  Mark Triggs <mark/AT/>

[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] []

[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
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’
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’
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’
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’
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’
<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

"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
system default, but rvm was checking its own gemdir so I had to switch
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.