gems not loading on mac 10.5.6

P

Parv G.

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?
 
F

Florian Gilcher

Hi,
=20
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.."
=20
I still get this error even if i do:
=20
$LOAD_PATH << "/Library/Ruby/Gems/1.8/gems"
require 'ruby-debug'
=20
This is happening for all of the gems i have installed.
=20
env:
mac os x 10.5.6
ruby 1.8.6 patch 114
rubygems: 1.3.5


Did you load rubygems?
=20
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 Gilcher=
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,158
Messages
2,570,882
Members
47,414
Latest member
djangoframe

Latest Threads

Top