Ask Your Question

ENC ruby script : `require': no such file to load -- rubygems (LoadError)

asked 2013-09-23 08:51:10 -0600

Rutika gravatar image

I am using a ruby script as an External node classifier and I have required 'amazon-ec2' gem in the script. I execution of this script always returns 1 and I assume it's because the script is run as root user. And running the script as root user returns the following error: `require': no such file to load -- rubygems (LoadError)

How do I resolve this issue?

Thanks in advance.

edit retag flag offensive close merge delete


Please post the contents of your script so we can have a look at it. Is it possible that you have >1 Ruby installations, and if so, only one of ...(more)

GregLarkin gravatar imageGregLarkin ( 2013-09-23 13:53:29 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-11-19 03:55:04 -0600

You need to install rubygems package on your puppet master.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-09-23 08:51:10 -0600

Seen: 482 times

Last updated: Nov 19 '13