Forum: Ruby `require': no such file to load -- rubygems (LoadError)

Posted by Bhupendra Mishra (m_bhupendrain)
on 2011-01-26 21:18
Hi There,

I have installed ruby 1.9.2p136 (2010-12-25 revision 30365)
[i686-linux].
and created symlink as "ln -s /ruby 1.9.2p136/ruby /usr/bin/local/ruby.
Running command ruby -v returns correct version specification of ruby as
" ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux]". But when i
am trying to run any ruby file it is returning error as follows


 $ ruby -ropenssl -rzlib -rreadline -e "puts :Hello"
<internal:lib/rubygems/custom_require>:29:in `require': no such file to
load -- rubygems (LoadError)
  from <internal:lib/rubygems/custom_require>:29:in `require'
  from <internal:gem_prelude>:167:in `load_full_rubygems_library'
  from <internal:gem_prelude>:217:in `try_activate'
  from <internal:lib/rubygems/custom_require>:32:in `rescue in require'
  from <internal:lib/rubygems/custom_require>:29:in `require'


-------------------------
Please help me resolve the issue

Thank you very much in advance for your help
Posted by Eric Hodel (Guest)
on 2011-01-26 23:15
(Received via mailing list)
On Jan 26, 2011, at 12:18, Bhupendra Mishra wrote:

> Hi There,
>
> I have installed ruby 1.9.2p136 (2010-12-25 revision 30365)
> [i686-linux].
> and created symlink as "ln -s /ruby 1.9.2p136/ruby /usr/bin/local/ruby.

If you had to symlink ruby I think you forgot to run `make install`.
Posted by Bhupendra Mishra (m_bhupendrain)
on 2011-01-27 06:22
Thank you very much. This works perfectly fine with me.
I was running only make command. I should run "make install" as you 
said.
Thank you for pointing me out silly mistake
Cheers


Bhupendra Mishra wrote in post #977705:
> Hi There,
>
> I have installed ruby 1.9.2p136 (2010-12-25 revision 30365)
> [i686-linux].
> and created symlink as "ln -s /ruby 1.9.2p136/ruby /usr/bin/local/ruby.
> Running command ruby -v returns correct version specification of ruby as
> " ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux]". But when i
> am trying to run any ruby file it is returning error as follows
>
>
>  $ ruby -ropenssl -rzlib -rreadline -e "puts :Hello"
> <internal:lib/rubygems/custom_require>:29:in `require': no such file to
> load -- rubygems (LoadError)
>   from <internal:lib/rubygems/custom_require>:29:in `require'
>   from <internal:gem_prelude>:167:in `load_full_rubygems_library'
>   from <internal:gem_prelude>:217:in `try_activate'
>   from <internal:lib/rubygems/custom_require>:32:in `rescue in require'
>   from <internal:lib/rubygems/custom_require>:29:in `require'
>
>
> -------------------------
> Please help me resolve the issue
>
> Thank you very much in advance for your help
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.