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

On Tue, Feb 2, 2010 at 5:15 PM, Kristian M. [email protected]
wrote:

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

what is “gem which”
what is “gem help commands”

best regards -botp

On Tue, Feb 2, 2010 at 1:15 AM, Kristian M. [email protected]
wrote:

Now I can list my gems:

$ gem list

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

try gem env :slight_smile:

Hassan S. wrote:

try gem env :slight_smile:

This is the correct way of finding your gems.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs