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

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:inrequire’
from internal:gem_prelude:167:in load_full_rubygems_library' from <internal:gem_prelude>:217:intry_activate’
from internal:lib/rubygems/custom_require:32:in rescue in require' from <internal:lib/rubygems/custom_require>:29:inrequire’


Please help me resolve the issue

Thank you very much in advance for your help

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.

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:inrequire’
from internal:gem_prelude:167:in load_full_rubygems_library' from <internal:gem_prelude>:217:intry_activate’
from internal:lib/rubygems/custom_require:32:in rescue in require' from <internal:lib/rubygems/custom_require>:29:inrequire’


Please help me resolve the issue

Thank you very much in advance for your help

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