Forum: Ruby gem install - install directory not absolute

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
52a177e9dbd3e614825aabc4e45f8cd6?d=identicon&s=25 Mark Volkmann (Guest)
on 2007-01-22 16:16
(Received via mailing list)
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.
8217faf2bfdfa7daf10135d41ddd421e?d=identicon&s=25 Jeff Cohen (jeff)
on 2007-01-22 18:27
(Received via mailing list)
Mark Volkmann 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?
52a177e9dbd3e614825aabc4e45f8cd6?d=identicon&s=25 Mark Volkmann (Guest)
on 2007-01-22 18:55
(Received via mailing list)
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.
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2007-01-22 20:22
(Received via mailing list)
On Jan 22, 2007, at 07:15, Mark Volkmann 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 Hodel - drbrain@segment7.net - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!
52a177e9dbd3e614825aabc4e45f8cd6?d=identicon&s=25 Mark Volkmann (Guest)
on 2007-01-22 20:31
(Received via mailing list)
On Jan 22, 2007, at 1:19 PM, Eric Hodel 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

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?
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2007-01-23 05:49
(Received via mailing list)
On Jan 22, 2007, at 11:30, Mark Volkmann 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
>
> 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 - drbrain@segment7.net - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!
8d042b437b937deb92d0c51515785a19?d=identicon&s=25 Mark Volkmann (Guest)
on 2007-01-23 14:21
(Received via mailing list)
On Jan 22, 2007, at 10:48 PM, Eric Hodel 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
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2007-01-23 19:52
(Received via mailing list)
On Jan 23, 2007, at 05:20, Mark Volkmann 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 Hodel - drbrain@segment7.net - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!
8d042b437b937deb92d0c51515785a19?d=identicon&s=25 Mark Volkmann (Guest)
on 2007-01-23 20:06
(Received via mailing list)
On Jan 23, 2007, at 12:51 PM, Eric Hodel 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.
This topic is locked and can not be replied to.