Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
* /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby
@ 2010-12-13  9:04 ghazel-Re5JQEeQqe8AvxtiuMwx3w
       [not found] ` <AANLkTikfzyTV4Ymbk2vPHfq2VwYpM9f3mZuL0ep_eZ-O-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: ghazel-Re5JQEeQqe8AvxtiuMwx3w @ 2010-12-13  9:04 UTC (permalink / raw)
  To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw

Hi,

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?

-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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby
       [not found] ` <AANLkTikfzyTV4Ymbk2vPHfq2VwYpM9f3mZuL0ep_eZ-O-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-12-13 10:34   ` Eric Wong
  2010-12-13 10:52   ` /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby russell muetzelfeldt
  1 sibling, 0 replies; 4+ messages in thread
From: Eric Wong @ 2010-12-13 10:34 UTC (permalink / raw)
  To: Rainbows! list

ghazel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
> Hi,
> 
> 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?

You shouldn't have had to make a symlink, if you used gems, then
RubyGems will have put a "rainbows" executable wrapper in the same
prefix as your other gems (probably same path as the "gem" command) that
loads and wraps the $GEM_HOME/gems/rainbows-2.0.1/bin/rainbows script...

In short, it works the same way as unicorn, mongrel, thin or any
other RubyGem that distributes executable scripts.

-- 
Eric Wong
_______________________________________________
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby
       [not found] ` <AANLkTikfzyTV4Ymbk2vPHfq2VwYpM9f3mZuL0ep_eZ-O-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2010-12-13 10:34   ` /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby Eric Wong
@ 2010-12-13 10:52   ` russell muetzelfeldt
       [not found]     ` <81A07824-4000-4E2B-A353-19C6986F526A-wWwMKTv0ClVAfugRpC6u6w@public.gmane.org>
  1 sibling, 1 reply; 4+ messages in thread
From: russell muetzelfeldt @ 2010-12-13 10:52 UTC (permalink / raw)
  To: Rainbows! list

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.

cheers

Russell

-----
Russell Muetzelfeldt <russm-wWwMKTv0ClVAfugRpC6u6w@public.gmane.org>
Mundus vult decipi, ergo decipiatur.

_______________________________________________
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby
       [not found]     ` <81A07824-4000-4E2B-A353-19C6986F526A-wWwMKTv0ClVAfugRpC6u6w@public.gmane.org>
@ 2010-12-13 18:28       ` ghazel-Re5JQEeQqe8AvxtiuMwx3w
  0 siblings, 0 replies; 4+ messages in thread
From: ghazel-Re5JQEeQqe8AvxtiuMwx3w @ 2010-12-13 18:28 UTC (permalink / raw)
  To: Rainbows! list

On Mon, Dec 13, 2010 at 2:52 AM, russell muetzelfeldt
<russm-rubyforge-wWwMKTv0ClVAfugRpC6u6w@public.gmane.org> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-13 18:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-13  9:04 /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby ghazel-Re5JQEeQqe8AvxtiuMwx3w
     [not found] ` <AANLkTikfzyTV4Ymbk2vPHfq2VwYpM9f3mZuL0ep_eZ-O-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-13 10:34   ` /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby Eric Wong
2010-12-13 10:52   ` /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby russell muetzelfeldt
     [not found]     ` <81A07824-4000-4E2B-A353-19C6986F526A-wWwMKTv0ClVAfugRpC6u6w@public.gmane.org>
2010-12-13 18:28       ` /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby ghazel-Re5JQEeQqe8AvxtiuMwx3w

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/rainbows.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).