Slaine <lennart.benoot / gmail.com> wrote:

> Hi all,
> 
> I have upgraded ruby on a Amazon EC2 instance. I trying to bundle it
> now using the ruby program packaged with the AMI.
> There seems to be something wrong now with loading required libraries.
> When the main ruby program tries to load the first library I get the
> following error :
> `require': no such file to load -- ec2/amitools/bundle (LoadError)
> 
> This file is located in folder: /usr/lib/site_ruby/ec2/amitools/bundle
> 
> There seems to be something wrong with the path where ruby tries to
> find external folders. Does anyone have any idea how I could add it?

You can modify $: in your code before the require (it's an array, just
append to it). If this is to be a more permanent change you can modify
your environment's RUBYLIB. 

m.

-- 
matt neuburg, phd = matt / tidbits.com, http://www.tidbits.com/matt/
Leopard - http://www.takecontrolbooks.com/leopard-customizing.html
AppleScript - http://www.amazon.com/gp/product/0596102119
Read TidBITS! It's free and smart. http://www.tidbits.com