gem install - install directory not absolute

M

Mark Volkmann

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.
 
J

Jeff

Mark said:
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?
 
M

Mark Volkmann

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.
 
E

Eric Hodel

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?
 
M

Mark Volkmann

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?
 
E

Eric Hodel

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?
 
E

Eric Hodel

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.
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 - (e-mail address removed) - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!
 
M

Mark Volkmann

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.
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.
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top