[LRUG] Gem activation error

Andrew Stewart boss at airbladesoftware.com
Mon Oct 31 03:33:19 PDT 2011


Hola El Rug,

I have a little command-line gem which includes a bin script to run it.  When I install the gem on a server, and try to run the bin script, it fails due to an activation error unless I first cd to the gem's installation directory and prefix the bin script with `bundle exec`.

I'd like to be able to run my gem's bin script from any directory, without having to cd to the gem's directory and `bundle exec` it.  How can I best achieve this?

Here's the code: https://github.com/airblade/mys3ql.  In bin/mys3ql, I've tried with and without lines 3-5; neither works.

Thanks in advance.

Yours,
Andy Stewart

-------
http://airbladesoftware.com


More information about the Chat mailing list