Where are my ruby gems located? Why don't executables such as spec work?

I'm on Mac OSX Snow Leopard, running Ruby 1.9.1

I have recently substituted homebre packagemanager for port.
I reinstalled most of my ruby gems using $ sudo gem install [gem list]

Now I can list my gems:

$ gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.pre, 2.3.5)
actionpack (3.0.pre, 2.3.5)
activemodel (3.0.pre)
activerecord (3.0.pre, 2.3.5)
activeresource (3.0.pre, 2.3.5)
...

But I can't seem to find where on the system they are located :frowning:

And executables such as spec don't work, even though I can see that
the gem (fx rspec) is installed :frowning:

Any ideas?

Thanks!

Kristian Mandrup wrote:

I'm on Mac OSX Snow Leopard, running Ruby 1.9.1

I have recently substituted homebre packagemanager for port.
I reinstalled most of my ruby gems using $ sudo gem install [gem list]

Now I can list my gems:

$ gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.pre, 2.3.5)
actionpack (3.0.pre, 2.3.5)
activemodel (3.0.pre)
activerecord (3.0.pre, 2.3.5)
activeresource (3.0.pre, 2.3.5)
...

But I can't seem to find where on the system they are located :frowning:

here is a shell command to find 'em:

sudo find / -name "gems"

But they must be located in:

MacOsX: /usr/lib/ruby/gems/1.8/gems/
Unix: /usr/lib/ruby/gems/1.8/gems/

Kind regards,
Pierre

路路路

And executables such as spec don't work, even though I can see that
the gem (fx rspec) is installed :frowning:

Any ideas?

Thanks!

--
Posted via http://www.ruby-forum.com/\.

what is "gem which"
what is "gem help commands"

best regards -botp

路路路

On Tue, Feb 2, 2010 at 5:15 PM, Kristian Mandrup <kmandrup@gmail.com> wrote:

But I can't seem to find where on the system they are located :frowning:

try `gem env` :slight_smile:

路路路

On Tue, Feb 2, 2010 at 1:15 AM, Kristian Mandrup <kmandrup@gmail.com> wrote:

Now I can list my gems:

$ gem list

But I can't seem to find where on the system they are located :frowning:

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

Hassan Schroeder wrote:

try `gem env` :slight_smile:

This is the correct way of finding your gems.

路路路

--
Posted via http://www.ruby-forum.com/\.