[LRUG] Gem activation error

Gerhard Lazu gerhard at lazu.co.uk
Mon Oct 31 05:58:23 PDT 2011


Make sure you're installing it in the global gemset of the default ruby (if
using rvm). It worked first time for me on the stock Ubuntu ruby package.

Gerhard

------------------------------
Twitter <http://twitter.com/#!/gerhardlazu> Github<https://github.com/gerhard>
 Blog <http://gerhardlazu.com/>


On Mon, Oct 31, 2011 at 10:33 AM, Andrew Stewart
<boss at airbladesoftware.com>wrote:

> 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
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20111031/8e4523b5/attachment.html>


More information about the Chat mailing list