# Gem install - install directory not absolute

**URL:** <https://www.ruby-forum.com/t/gem-install-install-directory-not-absolute/82940>\
**Category:** Ruby\
**Created:** [January 22, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/gem-install-install-directory-not-absolute/82940 "2007-01-22T16:16:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [January 22, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/gem-install-install-directory-not-absolute/82940/1 "2007-01-22T16:16:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [January 22, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/gem-install-install-directory-not-absolute/82940/2 "2007-01-22T18:27:02Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [January 22, 2007, 6:55pm UTC](https://www.ruby-forum.com/t/gem-install-install-directory-not-absolute/82940/3 "2007-01-22T18:55:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [January 22, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/gem-install-install-directory-not-absolute/82940/4 "2007-01-22T20:31:30Z")

</div>

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:
  - [http://gems.rubyforge.org](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?

---

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [January 22, 2007, 8:22pm UTC](https://www.ruby-forum.com/t/gem-install-install-directory-not-absolute/82940/5 "2007-01-22T20:22:28Z")

</div>

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. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)

I LIT YOUR GEM ON FIRE!

---

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [January 23, 2007, 5:49am UTC](https://www.ruby-forum.com/t/gem-install-install-directory-not-absolute/82940/6 "2007-01-23T05:49:50Z")

</div>

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

> > > The directory /usr/local/lib/ruby/gems/gems/activesupport-1.4.0
> 
> - GEM PATH:
> - /usr/local/lib/ruby/gems/.
> 
> - REMOTE SOURCES:
> - [http://gems.rubyforge.org](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 H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)

I LIT YOUR GEM ON FIRE!

---

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [January 23, 2007, 2:21pm UTC](https://www.ruby-forum.com/t/gem-install-install-directory-not-absolute/82940/7 "2007-01-23T14:21:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [January 23, 2007, 7:52pm UTC](https://www.ruby-forum.com/t/gem-install-install-directory-not-absolute/82940/8 "2007-01-23T19:52:49Z")

</div>

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. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)

I LIT YOUR GEM ON FIRE!

---

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [January 23, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/gem-install-install-directory-not-absolute/82940/9 "2007-01-23T20:06:52Z")

</div>

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.
