From: thufir Date: 2012-03-23T12:44:53+09:00 Subject: 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: https://gist.github.com/2166048 but it's apparently for a different version of ruby. On to the next approach, compiling this gem, which is supposed to fix it: https://github.com/kinnou02/nntp-lib thufir@dur:~/git/nntp-lib$ thufir@dur:~/git/nntp-lib$ nl Authors.txt 1 Net::NNTP Client Library 2 ======================== 3 Active Developers: 4 ------------------ 5 Balwinder S "bsd" Dheeman - Lead developer 6 AIM: bdheeman 7 ICQ: 93365210 8 IRC: bdheeman@irc.freenode.net 9 GTalk: bdheeman/AT/gmail.com 10 Jabber: bdheeman/AT/jabber.org 11 MSN: bdheeman/AT/hotmail.com 12 Yahoo: bdheeman 13 Albert Vernon 14 Bob Schafer 15 Mark Triggs thufir@dur:~/git/nntp-lib$ thufir@dur:~/git/nntp-lib$ type rvm | head -1 rvm is a function thufir@dur:~/git/nntp-lib$ thufir@dur:~/git/nntp-lib$ rvm --version rvm 1.10.3 by Wayne E. Seguin , Michal Papis [https://rvm.beginrescueend.com/] thufir@dur:~/git/nntp-lib$ thufir@dur:~/git/nntp-lib$ ruby --version ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux] thufir@dur:~/git/nntp-lib$ thufir@dur:~/git/nntp-lib$ thufir@dur:~/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:in `require' /home/thufir/git/nntp-lib/Rakefile:1:in `' /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2/lib/rake/ rake_module.rb:25:in `load' /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:in `raw_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:in `standard_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:in `block 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:in `run' /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2/bin/rake:32:in `' /home/thufir/.rvm/gems/ruby-1.9.3-p125/bin/rake:19:in `load' /home/thufir/.rvm/gems/ruby-1.9.3-p125/bin/rake:19:in `
' thufir@dur:~/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