From: Jim Weirich Date: 2006-08-13T04:28:36+09:00 Subject: Re: Rubygems on Mac OS X Geoff Hulette wrote: > I am having a problem getting gems configured properly on my Mac (OS X > 10.4.7), hopefully someone here can help me out. I installed ruby and > ruby gems using the instructions at > http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger. > I am trying to use the XmlSimple gem, but Ruby can't seem to find it, or > any other gems. I did > > $ sudo gem install xml-simple > > which seemed to work fine. but then > > $ ruby -e "require 'xmlsimple'" > -e:1:in `require': no such file to load -- xmlsimple (LoadError) > from -e:1 Rubygems is not loaded with your program. There several ways to accomplish this. This URL will help: http://docs.rubygems.org/read/chapter/3#page70. In a nutshell, you should be able to do this: $ ruby -e "require 'rubygems'; require 'xmlsimple'" -- Jim Weirich -- Posted via http://www.ruby-forum.com/.