gem install - install directory not absolute

Discussion in 'Ruby' started by Mark Volkmann, Jan 22, 2007.

  1. When I run ...
    sudo gem install rails -y

    I get ...
    ERROR: While executing gem ... (ArgumentError)
    install directory "/usr/local/lib/ruby/gems/./gems/
    activesupport-1.4.0" not absolute

    The directory /usr/local/lib/ruby/gems/gems/activesupport-1.4.0 does
    exist.

    Any suggestions on what I need to change?
    I don't know why the "/./" appears in the path in the error message.
     
    Mark Volkmann, Jan 22, 2007
    #1
    1. Advertising

  2. Mark Volkmann

    Jeff Guest

    Mark Volkmann wrote:
    > When I run ...
    > sudo gem install rails -y
    >
    > I get ...
    > ERROR: While executing gem ... (ArgumentError)
    > install directory "/usr/local/lib/ruby/gems/./gems/
    > activesupport-1.4.0" not absolute
    >
    > The directory /usr/local/lib/ruby/gems/gems/activesupport-1.4.0 does
    > exist.
    >


    My guess is that you, like me, are running gem version 0.9.1. After I
    upgraded to 0.9.1 this weekend (via gem update --system), I now get
    this error anytime I tried to freeze my rails app.

    But I'm on Windows XP -- maybe this is specific to the Windows version
    of RubyGems. What OS are you using?
     
    Jeff, Jan 22, 2007
    #2
    1. Advertising

  3. On Jan 22, 2007, at 11:26 AM, Jeff wrote:

    > Mark Volkmann wrote:
    >
    >> When I run ...
    >> sudo gem install rails -y
    >>
    >> I get ...
    >> ERROR: While executing gem ... (ArgumentError)
    >> install directory "/usr/local/lib/ruby/gems/./gems/
    >> activesupport-1.4.0" not absolute
    >>
    >> The directory /usr/local/lib/ruby/gems/gems/activesupport-1.4.0 does
    >> exist.
    >>
    >>

    >
    > My guess is that you, like me, are running gem version 0.9.1. After I
    > upgraded to 0.9.1 this weekend (via gem update --system),
    >


    That's right. I did exactly that.

    > I now get this error anytime I tried to freeze my rails app.
    >
    > But I'm on Windows XP -- maybe this is specific to the Windows version
    > of RubyGems. What OS are you using?
    >


    I'm on Mac OS X, so it's not specific to Windows.
     
    Mark Volkmann, Jan 22, 2007
    #3
  4. Mark Volkmann

    Eric Hodel Guest

    On Jan 22, 2007, at 07:15, Mark Volkmann wrote:

    > When I run ...
    > sudo gem install rails -y
    >
    > I get ...
    > ERROR: While executing gem ... (ArgumentError)
    > install directory "/usr/local/lib/ruby/gems/./gems/
    > activesupport-1.4.0" not absolute
    >
    > The directory /usr/local/lib/ruby/gems/gems/activesupport-1.4.0
    > does exist.
    >
    > Any suggestions on what I need to change?
    > I don't know why the "/./" appears in the path in the error message.


    What does `gem environment` report?

    Did you set GEM_HOME or similar?

    --
    Eric Hodel - - http://blog.segment7.net

    I LIT YOUR GEM ON FIRE!
     
    Eric Hodel, Jan 22, 2007
    #4
  5. On Jan 22, 2007, at 1:19 PM, Eric Hodel wrote:


    > On Jan 22, 2007, at 07:15, Mark Volkmann wrote:
    >
    >
    >> When I run ...
    >> sudo gem install rails -y
    >>
    >> I get ...
    >> ERROR: While executing gem ... (ArgumentError)
    >> install directory "/usr/local/lib/ruby/gems/./gems/
    >> activesupport-1.4.0" not absolute
    >>
    >> The directory /usr/local/lib/ruby/gems/gems/activesupport-1.4.0
    >> does exist.
    >>
    >> Any suggestions on what I need to change?
    >> I don't know why the "/./" appears in the path in the error message.
    >>

    >
    > What does `gem environment` report?
    >


    RubyGems Environment:
    - VERSION: 0.9.1 (0.9.1)
    - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/.
    - GEM PATH:
    - /usr/local/lib/ruby/gems/.
    - REMOTE SOURCES:
    - http://gems.rubyforge.org

    I see that it put "/." at the ends of the paths. It doesn't seem like
    that should be an issue though.


    > Did you set GEM_HOME or similar?
    >


    No. Do I need to do that?
     
    Mark Volkmann, Jan 22, 2007
    #5
  6. Mark Volkmann

    Eric Hodel Guest

    On Jan 22, 2007, at 11:30, Mark Volkmann wrote:
    > On Jan 22, 2007, at 1:19 PM, Eric Hodel wrote:
    >> On Jan 22, 2007, at 07:15, Mark Volkmann wrote:
    >>> When I run ...
    >>> sudo gem install rails -y
    >>>
    >>> I get ...
    >>> ERROR: While executing gem ... (ArgumentError)
    >>> install directory "/usr/local/lib/ruby/gems/./gems/
    >>> activesupport-1.4.0" not absolute
    >>>
    >>> The directory /usr/local/lib/ruby/gems/gems/activesupport-1.4.0
    >>> does exist.
    >>>
    >>> Any suggestions on what I need to change?
    >>> I don't know why the "/./" appears in the path in the error message.

    >>
    >> What does `gem environment` report?

    >
    > RubyGems Environment:
    > - VERSION: 0.9.1 (0.9.1)
    > - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/.
    > - GEM PATH:
    > - /usr/local/lib/ruby/gems/.
    > - REMOTE SOURCES:
    > - http://gems.rubyforge.org
    >
    > I see that it put "/." at the ends of the paths. It doesn't seem
    > like that should be an issue though.


    You're missing 1.8 in that path (or 1.9).

    What does this say:

    ruby -rrbconfig -e 'p Config::CONFIG["ruby_version"]'

    I get "1.8".

    How did you install your ruby?

    --
    Eric Hodel - - http://blog.segment7.net

    I LIT YOUR GEM ON FIRE!
     
    Eric Hodel, Jan 23, 2007
    #6
  7. Mark Volkmann

    Eric Hodel Guest

    On Jan 23, 2007, at 05:20, Mark Volkmann wrote:
    > On Jan 22, 2007, at 10:48 PM, Eric Hodel wrote:
    >> On Jan 22, 2007, at 11:30, Mark Volkmann wrote:
    >>> RubyGems Environment:
    >>> - VERSION: 0.9.1 (0.9.1)
    >>> - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/.
    >>> - GEM PATH:
    >>> - /usr/local/lib/ruby/gems/.
    >>> - REMOTE SOURCES:
    >>> - http://gems.rubyforge.org
    >>>
    >>> I see that it put "/." at the ends of the paths. It doesn't seem =20
    >>> like that should be an issue though.

    >>
    >> You're missing 1.8 in that path (or 1.9).
    >>
    >> What does this say:
    >>
    >> ruby -rrbconfig -e 'p Config::CONFIG["ruby_version"]'
    >>
    >> I get "1.8".

    >
    > I get ".".


    That's bad.

    >> How did you install your ruby?

    >
    > I downloaded ruby-1.8.5.tar.gz, then ran the following commands as =20
    > root, running on Mac OS X.
    > gzip =96d ruby-1.8.5.tar.gz
    > tar xf ruby-1.8.5.tar
    > cd ruby-1.8.5
    > ./configure
    > make
    > make test
    > make install
    > make install-doc


    Hrm, something has gone tragically wrong then. Without the version =20
    numbers RubyGems can't be guaranteed to work. I recommend you =20
    rebuild ruby.

    BTW, what does this say:

    $ ruby -v -e 'p RUBY_VERSION'
    ruby 1.8.5 (2006-12-04 patchlevel 2) [i686-darwin8.8.2]
    "1.8.5"

    --=20
    Eric Hodel - - http://blog.segment7.net

    I LIT YOUR GEM ON FIRE!
     
    Eric Hodel, Jan 23, 2007
    #7
  8. On Jan 23, 2007, at 12:51 PM, Eric Hodel wrote:

    > On Jan 23, 2007, at 05:20, Mark Volkmann wrote:
    >> On Jan 22, 2007, at 10:48 PM, Eric Hodel wrote:
    >>> On Jan 22, 2007, at 11:30, Mark Volkmann wrote:
    >>>> RubyGems Environment:
    >>>> - VERSION: 0.9.1 (0.9.1)
    >>>> - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/.
    >>>> - GEM PATH:
    >>>> - /usr/local/lib/ruby/gems/.
    >>>> - REMOTE SOURCES:
    >>>> - http://gems.rubyforge.org
    >>>>
    >>>> I see that it put "/." at the ends of the paths. It doesn't seem =20=


    >>>> like that should be an issue though.
    >>>
    >>> You're missing 1.8 in that path (or 1.9).
    >>>
    >>> What does this say:
    >>>
    >>> ruby -rrbconfig -e 'p Config::CONFIG["ruby_version"]'
    >>>
    >>> I get "1.8".

    >>
    >> I get ".".

    >
    > That's bad.
    >
    >>> How did you install your ruby?

    >>
    >> I downloaded ruby-1.8.5.tar.gz, then ran the following commands as =20=


    >> root, running on Mac OS X.
    >> gzip =96d ruby-1.8.5.tar.gz
    >> tar xf ruby-1.8.5.tar
    >> cd ruby-1.8.5
    >> ./configure
    >> make
    >> make test
    >> make install
    >> make install-doc

    >
    > Hrm, something has gone tragically wrong then. Without the version =20=


    > numbers RubyGems can't be guaranteed to work. I recommend you =20
    > rebuild ruby.
    >
    > BTW, what does this say:
    >
    > $ ruby -v -e 'p RUBY_VERSION'
    > ruby 1.8.5 (2006-12-04 patchlevel 2) [i686-darwin8.8.2]
    > "1.8.5"


    ruby 1.8.5 (2006-12-04 patchlevel 2) [i686-darwin8.8.1]
    "1.8.5"

    The only difference from yours is that I have darwin8.8.1 instead of =20
    8.8.2.

    I'll try reinstalling Ruby.
     
    Mark Volkmann, Jan 23, 2007
    #8
    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. Ara.T.Howard
    Replies:
    0
    Views:
    188
    Ara.T.Howard
    Oct 27, 2005
  2. Clifford Heath
    Replies:
    7
    Views:
    336
    Shanti Braford
    Jun 9, 2006
  3. Austin 7873
    Replies:
    5
    Views:
    219
    Eric Hodel
    Jan 27, 2007
  4. kazaam
    Replies:
    1
    Views:
    171
  5. James Byrne
    Replies:
    3
    Views:
    627
    James Byrne
    Sep 14, 2010
Loading...

Share This Page