From: Robert Klemme Date: 2010-08-19T21:46:49+09:00 Subject: Re: How to set library path for FileUtils 2010/8/19 Mark Macdonald : > What is the correct way to set library paths to remove this error when > using FileUtils? Normally there should be no change necessary since it's part of the std lib. > 'require': no such file to load -- FileUtils (LoadError) > > ----------------------------- > > Here is the environment listing: > > ruby1.9.1 -e "puts $:" > /var/lib/gems/1.9.1/gems/kramdown-0.10.0/bin > /var/lib/gems/1.9.1/gems/kramdown-0.10.0/lib > /usr/local/lib/site_ruby/1.9.1 > /usr/local/lib/site_ruby/1.9.1/i486-linux > /usr/local/lib/site_ruby > /usr/lib/ruby/vendor_ruby/1.9.1 > /usr/lib/ruby/vendor_ruby/1.9.1/i486-linux > /usr/lib/ruby/vendor_ruby > /usr/lib/ruby/1.9.1 > /usr/lib/ruby/1.9.1/i486-linux > . > > ----------------------------- > > fileutils.rb is installed - if I replace << require 'FileUtils' >> with > << require '/usr/lib/ruby/1.9.1/fileutils.rb' >> my program runs. ??? That should not happen. Since /usr/lib/ruby/1.9.1 is in $: it must be found. How exactly do you require? > ----------------------------- > > I'm running Linux Mint 9 Isadora and I installed Ruby and Rubygems with > apt-get. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/