Forum: Ruby loaded gem money but not found

B26c076ba701cc678f6218d0f58cd14d?d=identicon&s=25 J. V. (jvsrvcs)
on 2013-06-03 22:06
I loaded the money gem (Ruby 1.9.1), but it is not found.
  $sudo gem install money -v 2.1.4

Any ideas?

When I hit my webapp in a browser, I get this in the tomcat logs.

What is up with money module?

---
/home/user/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': no such file to load -- money (LoadError)
  from
/home/user/.rvm/rubies/ruby-1.9.1-p431/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
  from
/home/user/projects/access/mod/mod-common/trunk/kbr/web_reports/cgi/RC_Helper_Html.rb:7:in
`<top (required)>'
  from
/home/user/projects/access/mod/mod-common/trunk/kbr/web_reports/cgi/RC_Home.rb:2:in
`require'
  from
/home/user/projects/access/mod/mod-common/trunk/kbr/web_reports/cgi/RC_Home.rb:2:in
`<main>'
[Mon Jun 03 14:00:40 2013] [error] [client 127.0.0.1] Premature end of
script headers: RC_Home.rb
Aa082c8b00a50928e5860dcd70bf2368?d=identicon&s=25 Tamara Temple (Guest)
on 2013-06-05 02:40
(Received via mailing list)
J. V. <lists@ruby-forum.com> wrote:
> I loaded the money gem (Ruby 1.9.1), but it is not found.
>   $sudo gem install money -v 2.1.4
>
> Any ideas?

Since you're using per-user rvm, DON'T sudo gem install. That uses the
ruby that is available to root, which is likely NOT the ruby or gem
space you want, since you are using per-user rvm.

Seriously.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.