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

Bhupendra Mishra

Usenet Archive
Joined
Jan 26, 2011
Messages
2
Reaction score
0
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'
 

Eric Hodel

Usenet Archive
Joined
Jul 31, 2003
Messages
2,185
Reaction score
0
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`.
 

Bhupendra Mishra

Usenet Archive
Joined
Jan 26, 2011
Messages
2
Reaction score
0
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
548,049
Messages
3,104,245
Members
248,133
Latest member
DujonT

Latest Threads

Top