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

B

Bhupendra Mishra

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'
 
E

Eric Hodel

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`.
 
B

Bhupendra Mishra

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'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top