Fail to Install Gems - My First Gems

Discussion in 'Ruby' started by Foolish Brat, Sep 1, 2007.

  1. Foolish Brat

    Foolish Brat Guest

    Dear all,

    I was trying to install first ruby gems.
    I have successfully done the following:

    $ ruby setup.rb config --prefix=/home/mystuff
    $ ruby setup.rb setup

    But when I run this command:

    $ ruby setup.rb install

    ...sth..
    As of RubyGems 0.8.0, library stubs are no longer needed.
    Searching $LOAD_PATH for stubs to optionally delete (may take a
    while)...
    ...done.
    No library stubs found.

    Consequently I can't install antying like that with Gems.
    "gem" command doesn't work.

    $ gem --help
    /home/ewijaya/.ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
    `gem_original_require': no such file to load -- sources (LoadError)
    from
    /home/ewijaya/.ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
    `require'
    from
    /home/ewijaya/.ruby/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:6



    How can I resolve this problem?

    I am using:
    ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]


    --
    Edward
    --
    Posted via http://www.ruby-forum.com/.
     
    Foolish Brat, Sep 1, 2007
    #1
    1. Advertising

  2. Foolish Brat

    Corey Jewett Guest

    On Aug 31, 2007, at 9:58 PM, Foolish Brat wrote:

    > Dear all,
    >
    > I was trying to install first ruby gems.
    > I have successfully done the following:
    >
    > $ ruby setup.rb config --prefix=/home/mystuff
    > $ ruby setup.rb setup
    >
    > But when I run this command:
    >
    > $ ruby setup.rb install
    >
    > ...sth..
    > As of RubyGems 0.8.0, library stubs are no longer needed.
    > Searching $LOAD_PATH for stubs to optionally delete (may take a
    > while)...
    > ...done.
    > No library stubs found.
    >
    > Consequently I can't install antying like that with Gems.
    > "gem" command doesn't work.
    >
    > $ gem --help
    > /home/ewijaya/.ruby/lib/ruby/site_ruby/1.8/rubygems/
    > custom_require.rb:32:in
    > `gem_original_require': no such file to load -- sources (LoadError)
    > from
    > /home/ewijaya/.ruby/lib/ruby/site_ruby/1.8/rubygems/
    > custom_require.rb:32:in
    > `require'
    > from
    > /home/ewijaya/.ruby/lib/ruby/site_ruby/1.8/rubygems/
    > source_info_cache.rb:6


    You probably need to:

    $ export GEM_HOME=/home/mystuff/gems

    Corey
     
    Corey Jewett, Sep 1, 2007
    #2
    1. Advertising

  3. Foolish Brat

    Foolish Brat Guest

    Corey Jewett wrote:
    > On Aug 31, 2007, at 9:58 PM, Foolish Brat wrote:
    >
    >> $ ruby setup.rb install
    >>
    >> source_info_cache.rb:6

    > You probably need to:
    >
    > $ export GEM_HOME=/home/mystuff/gems
    >
    > Corey


    Hi Corey,

    Yes I already have that, in my .bash_profile

    export GEM_HOME=/home/ewijaya/.rubygem:

    Which then I run this command:
    $ ruby setup.rb config --prefix=/home/ewijaya/.rubygem
    ..etc..

    but the problem still remains.

    --
    Posted via http://www.ruby-forum.com/.
     
    Foolish Brat, Sep 1, 2007
    #3
  4. Foolish Brat

    Mark T Guest

    Had this recently.
    Search your system for sources-0.0.1.gem
    then:
    gem install /path/to/sources-0.0.1.gem

    YMMV.

    MarkT
     
    Mark T, Sep 1, 2007
    #4
  5. Foolish Brat

    Eric Hodel Guest

    On Aug 31, 2007, at 22:58, Foolish Brat wrote:
    > Corey Jewett wrote:
    >> On Aug 31, 2007, at 9:58 PM, Foolish Brat wrote:
    >>
    >>> $ ruby setup.rb install
    >>>
    >>> source_info_cache.rb:6

    >> You probably need to:
    >>
    >> $ export GEM_HOME=/home/mystuff/gems
    >>
    >> Corey

    >
    > Hi Corey,
    >
    > Yes I already have that, in my .bash_profile
    >
    > export GEM_HOME=/home/ewijaya/.rubygem:
    >
    > Which then I run this command:
    > $ ruby setup.rb config --prefix=/home/ewijaya/.rubygem
    > ..etc..
    >
    > but the problem still remains.


    You want GEM_PATH, not GEM_HOME.

    --
    Poor workers blame their tools. Good workers build better tools. The
    best workers get their tools to do the work for them. -- Syndicate Wars
     
    Eric Hodel, Sep 10, 2007
    #5
    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. Wenjie

    if (f() != FAIL) or if (FAIL != f())?

    Wenjie, Jul 28, 2003, in forum: C Programming
    Replies:
    3
    Views:
    457
    E. Robert Tisdale
    Jul 31, 2003
  2. gelonida
    Replies:
    0
    Views:
    368
    gelonida
    Nov 16, 2010
  3. Gelonida
    Replies:
    0
    Views:
    335
    Gelonida
    Nov 16, 2010
  4. Gelonida
    Replies:
    0
    Views:
    296
    Gelonida
    Nov 17, 2010
  5. Max Williams
    Replies:
    12
    Views:
    333
    Max Williams
    Jul 13, 2008
Loading...

Share This Page