irb error on startup

P

Pravin Kumar

Hi,

I am having a problem that I've not seen before and would appreciate
some help in debugging.

When I try to start irb, I get the following error:
vadai:~ ppk$ irb
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- config/environment.rb
(LoadError)
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb/init.rb:253:in
`load_modules'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb/init.rb:251:in
`each'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb/init.rb:251:in
`load_modules'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb/init.rb:21:in
`setup'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb.rb:54:in
`start'
from /usr/bin/irb:13

Any help would be appreciated. Thanks.

My environment:

System: Mac OS X 10.5.4
Ruby: ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
gem: 1.2.0
rails: Rails 2.1.0
Gems:
*** LOCAL GEMS ***

actionmailer (2.1.0, 1.3.6)
actionpack (2.1.0, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.1.0, 1.15.6)
activeresource (2.1.0)
activesupport (2.1.0, 1.4.4)
acts_as_ferret (0.4.3, 0.4.1)
capistrano (2.4.3, 2.0.0)
cgi_multipart_eof_fix (2.5.0, 2.2)
daemons (1.0.10, 1.0.9, 1.0.7)
dnssd (0.7.0, 0.6.0)
fastthread (1.0.1, 1.0)
fcgi (0.8.7)
ferret (0.11.6, 0.11.4)
gem_plugin (0.2.3, 0.2.2)
highline (1.4.0, 1.2.9)
hpricot (0.6.161, 0.6)
libxml-ruby (0.8.3, 0.3.8.4)
mongrel (1.1.5, 1.1.4, 1.0.1)
needle (1.3.0)
net-scp (1.0.1)
net-sftp (2.0.1, 1.1.0)
net-ssh (2.0.3, 1.1.2)
net-ssh-gateway (1.0.0)
rails (2.1.0, 1.2.6)
rake (0.8.1, 0.7.3)
rb-appscript (0.5.1)
RedCloth (4.0.1, 3.0.4)
ruby-openid (2.1.2, 1.1.4)
ruby-yadis (0.3.4)
rubygems-update (1.2.0)
rubynode (0.1.5, 0.1.3)
rubyosa (0.4.0)
sqlite3-ruby (1.2.2, 1.2.1)
termios (0.9.4)
 
P

Pravin Kumar

I still haven't solved the problem, but I noticed that when I type in
the full path to irb at the shell prompt, /usr/bin/irb, I don't have
this problem. It just starts up fine. If I type "irb" then I get this
problem.

Any suggestions?

Thanks.
 
R

Ryan Davis

I still haven't solved the problem, but I noticed that when I type in
the full path to irb at the shell prompt, /usr/bin/irb, I don't have
this problem. It just starts up fine. If I type "irb" then I get this
problem.


% which irb

it'll prolly answer /usr/local/bin/irb or somesuch... that means
you've got multiple installs of ruby on your system and neither has a
customized suffix (like ruby19 or ruby187). I recommend against that.
Consider nuking your second install and reinstalling with --suffix
passed to configure.
 
S

Steve Lewis

Pravin said:
I still haven't solved the problem, but I noticed that when I type in
the full path to irb at the shell prompt, /usr/bin/irb, I don't have
this problem. It just starts up fine. If I type "irb" then I get this
problem.

Any suggestions?

Thanks.
Make sure that irb is in your path, for starters...
 

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

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top