Gems not loading on mac 10.5.6

Hi,

It seems like my gems are not being loaded, i.e. when i require a gem i
get an error “no such file to load…”

I still get this error even if i do:

$LOAD_PATH << “/Library/Ruby/Gems/1.8/gems”
require ‘ruby-debug’

This is happening for all of the gems i have installed.

env:
mac os x 10.5.6
ruby 1.8.6 patch 114
rubygems: 1.3.5

any thoughts?

On Apr 8, 2010, at 4:57 PM, Parv G. wrote:

This is happening for all of the gems i have installed.

env:
mac os x 10.5.6
ruby 1.8.6 patch 114
rubygems: 1.3.5

Did you load rubygems?

Have you tried using:

require ‘rubygems’

or better:

ruby -rubygems your_script.rb

Adding /Library/Ruby/Gems/1.8/gems to you LOAD_PATH won’t help you, as
Rubygems manages the LOAD_PATH itself (and in a different way).

Regards,
Florian G.

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