<font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif">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.</font></font></font><div>


<font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif"><br></font></font></font></div><div><font color="#000000"><font size="4"><font face="arial,helvetica,sans-serif">Gerhard<br clear="all"></font></font></font><br>


<hr style="font-family:arial, helvetica, sans-serif"><font color="#3333ff"><font face="arial, helvetica, sans-serif"><a href="http://twitter.com/#!/gerhardlazu" target="_blank">Twitter</a> <a href="https://github.com/gerhard" target="_blank">Github</a> </font><a href="http://gerhardlazu.com/" style="font-family:arial, helvetica, sans-serif" target="_blank">Blog</a></font><br>



<br><br><div class="gmail_quote">On Mon, Oct 31, 2011 at 10:33 AM, Andrew Stewart <span dir="ltr"><<a href="mailto:boss@airbladesoftware.com" target="_blank">boss@airbladesoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hola El Rug,<br>
<br>
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`.<br>



<br>
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?<br>
<br>
Here's the code: <a href="https://github.com/airblade/mys3ql" target="_blank">https://github.com/airblade/mys3ql</a>.  In bin/mys3ql, I've tried with and without lines 3-5; neither works.<br>
<br>
Thanks in advance.<br>
<br>
Yours,<br>
Andy Stewart<br>
<br>
-------<br>
<a href="http://airbladesoftware.com" target="_blank">http://airbladesoftware.com</a><br>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</blockquote></div><br></div>