irb error on startup

Discussion in 'Ruby' started by Pravin Kumar, Aug 15, 2008.

  1. Pravin Kumar

    Pravin Kumar Guest

    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)
    --
    Posted via http://www.ruby-forum.com/.
    Pravin Kumar, Aug 15, 2008
    #1
    1. Advertising

  2. Pravin Kumar

    Pravin Kumar Guest

    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.

    --
    Posted via http://www.ruby-forum.com/.
    Pravin Kumar, Aug 26, 2008
    #2
    1. Advertising

  3. Pravin Kumar

    Ryan Davis Guest

    On Aug 26, 2008, at 10:37 , Pravin Kumar wrote:

    > 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.
    Ryan Davis, Aug 26, 2008
    #3
  4. Pravin Kumar

    Steve Lewis Guest

    Pravin Kumar wrote:
    > 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...
    Steve Lewis, Aug 27, 2008
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sam Stephenson
    Replies:
    1
    Views:
    213
    Andrew Walrond
    Jun 18, 2005
  2. Replies:
    1
    Views:
    150
    Florian GroƟ
    Oct 26, 2005
  3. anne001
    Replies:
    1
    Views:
    255
    anne001
    Jun 27, 2006
  4. Replies:
    4
    Views:
    94
  5. wfisk
    Replies:
    6
    Views:
    209
    William Fisk
    Oct 28, 2008
Loading...

Share This Page