Gem install - install directory not absolute

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 V. wrote:

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?

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

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.

On Jan 22, 2007, at 1:19 PM, Eric H. wrote:

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:

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?

On Jan 22, 2007, at 07:15, Mark V. wrote:

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 H. - [email protected] - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!

On Jan 22, 2007, at 11:30, Mark V. wrote:

The directory /usr/local/lib/ruby/gems/gems/activesupport-1.4.0

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 H. - [email protected] - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!

On Jan 22, 2007, at 10:48 PM, Eric H. wrote:

  • VERSION: 0.9.1 (0.9.1)

What does this say:

ruby -rrbconfig -e ‘p Config::CONFIG[“ruby_version”]’

I get “1.8”.

I get “.”.

How did you install your ruby?

I downloaded ruby-1.8.5.tar.gz, then ran the following commands as
root, running on Mac OS X.
gzip –d 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

On Jan 23, 2007, at 05:20, Mark V. wrote:

I see that it put “/.” at the ends of the paths. It doesn’t seem
I get “.”.
That’s bad.

make install
make install-doc

Hrm, something has gone tragically wrong then. Without the version
numbers RubyGems can’t be guaranteed to work. I recommend you
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”


Eric H. - [email protected] - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!

On Jan 23, 2007, at 12:51 PM, Eric H. wrote:

cd ruby-1.8.5
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
8.8.2.

I’ll try reinstalling Ruby.