unknown wrote in post #1130962:
> Are you pointing to the ruby directory or the executable, you need to
> point to the ruby executable?
> Should it maybe be:
> #!/Users/peterbailey/.rbenv/shims/ruby/bin/ruby
>
>
>>From:  tamouse pontiki <tamouse.lists / gmail.com>
>>To:    ruby-talk ML <ruby-talk / ruby-lang.org>
>>Date:  12/18/2013 01:06 AM
>>Subject:       Re: simple, simple stuff
>>Sent by:       "ruby-talk" <ruby-talk-bounces / ruby-lang.org>
>>
>>
>>On Tue, Dec 17, 2013 at 12:58 PM, Peter Bailey <lists / ruby-forum.com>
> wrote:
>>tamouse m. wrote in post #1130882:
>>> On Tue, Dec 17, 2013 at 11:22 AM, Peter Bailey <lists / ruby-forum.com>
>>> wrote:
>>>
>>>> >> What is it complaining about "require?" Yeh, I've got "require"
> there at
>>> It might help if you pasted the script.
>>
>>Uh, it's pretty big. But, here it is. Thanks.
>>
>>
>>Thanks -- it's not *that* long, but I guess I could have asked for the
> head of the file instead... :))
>>
>>#/Users/peterbailey/.rbenv/shims/ruby
>>
>>It should be:
>>
>>#!/Users/peterbailey/.rbenv/shims/ruby
>>
>>if you actually do have a shim for ruby at that exact path. Type that at
> the Terminal prompt to see.
>>
>>This is what I use to start scripts:
>>
>>#!/usr/bin/env ruby
>>
>>and it picks up which ruby to run based upon the user's environment,
> which defaults to the system ruby.


My shebank looks just like you suggest:
#!/Users/peterbailey/.rbenv/shims/ruby

If I were to use "#!/usr/bin/env ruby, would that still let me use the 
latest Ruby that's in /users/peterbailey/.rbenv/shims/ruby ??

If so, then, yeh, I'll do that.

Thanks!

-- 
Posted via http://www.ruby-forum.com/.