From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=0.0 required=3.0 tests=MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: ghazel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Re: /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby Date: Mon, 13 Dec 2010 10:28:09 -0800 Message-ID: References: <81A07824-4000-4E2B-A353-19C6986F526A@slofith.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292264924 22042 80.91.229.12 (13 Dec 2010 18:28:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Dec 2010 18:28:44 +0000 (UTC) To: "Rainbows! list" Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Mon Dec 13 19:28:40 2010 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=f5xI+M0WJICVDlqyOtyCCiP5N73pVI2c+U4H+f75U5c=; b=GmTy0C7kx/qbO0xLnjQjOhAWoi7O37XSBTUbCzdqWuw2lXPgkZQxijmhlqyZBWQlf+ oYPlLOs73lriAELnPtwxMkzZDWF8fKtBD7TqlXGPEOjKU1FaDmzNXDxhqhxoCq4w/4mU t7Do0Dtup+KmryHK5DDMY96STO9k9xTedznww= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=J+Va7ttIJYTxgqp8xVl1SKAv0G8c5RwzyLcSLETddHEOH4m63oR3PlSxwkrouWGAYo LoHPBsi70vkH9YEl13bd76d3nMA/Ey8QAPytb03GkWHyEyHbZmHWV6PxUNsEF+sqc3rA 2yrmTeyY3XMl7P0HlijzGIs0wUInjUsdawL90= In-Reply-To: <81A07824-4000-4E2B-A353-19C6986F526A-wWwMKTv0ClVAfugRpC6u6w@public.gmane.org> X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:167 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PSD8Z-0001vY-Tk for gclrrg-rainbows-talk@m.gmane.org; Mon, 13 Dec 2010 19:28:40 +0100 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id E23E3167831D; Mon, 13 Dec 2010 13:28:36 -0500 (EST) Received: from mail-qy0-f171.google.com (mail-qy0-f171.google.com [209.85.216.171]) by rubyforge.org (Postfix) with ESMTP id A86EB1858317 for ; Mon, 13 Dec 2010 13:28:30 -0500 (EST) Received: by qyk32 with SMTP id 32so3743954qyk.2 for ; Mon, 13 Dec 2010 10:28:30 -0800 (PST) Received: by 10.224.11.74 with SMTP id s10mr4197361qas.317.1292264910181; Mon, 13 Dec 2010 10:28:30 -0800 (PST) Received: by 10.220.179.194 with HTTP; Mon, 13 Dec 2010 10:28:09 -0800 (PST) On Mon, Dec 13, 2010 at 2:52 AM, russell muetzelfeldt wrote: > On 13/12/2010, at 8:04 PM, ghazel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > >> I installed the rainbows gem and symlinked rainbows-2.0.1/bin/rainbows >> to /usr/local/bin/rainbows >> However, running rainbows gives: -bash: /usr/local/bin/rainbows: >> /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby: bad >> interpreter: No such file or directory >> >> Any ideas what I should have done instead? > > what platform are you on? you shouldn't have to link gem executable scripts anywhere for them to work. > > when I install gems, the system creates a wrapper executable in an existing bin/ directory (/usr/bin/ on OSX, /var/lib/gems/1.9.1/bin/ on Debian Squeeze) that lets you force a version for the loaded gem and then loads the original executable script without launching a new interpreter - this ignores the supposed #! line in the gem's internal bin/rainbows, which is why that file says its #! will be overwritten or wrapped. > > If installing rainbows didn't leave an executable script somewhere in your $PATH you might need to find where your local gem package is putting the wrappers and add that to your search path. Ah! For me it's /usr/local/ruby-enterprise-1.8.7-2010.01/bin That makes much more sense. Thanks! -Greg _______________________________________________ Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org http://rubyforge.org/mailman/listinfo/rainbows-talk Do not quote signatures (like this one) or top post when replying