# Shebang Warning in Locomotive

**URL:** <https://www.ruby-forum.com/t/shebang-warning-in-locomotive/143142>\
**Category:** Rails\
**Created:** [July 15, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/shebang-warning-in-locomotive/143142 "2008-07-15T17:18:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marie-Anne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@Marie-Anne](https://www.ruby-forum.com/u/Marie-Anne)\
**Post date:** [July 15, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/shebang-warning-in-locomotive/143142/1 "2008-07-15T17:18:09Z")

</div>

I’ve been working with Locomotive (2.0.8) for quite some time without  
any problems.

Today I tried to create a new project and I got the following error:

* * *

## ‘Warning! The Ruby interpreter referenced this Rails application’s dispatch.fcgi file may not refer to the Ruby in Locomotive. If you choose to continue without changing this, your application may not function properly - or at all! Choosing ‘Change It’ will change the dispatch.fcgi shebang line to: ‘#!/usr/bin/env ruby’’

I still can run old projects without any problems, but I am not able  
to create new ones anymore.

Does anyone know how to solve this problem? (after some hours of  
googling I couldn’t find mutch)

Thanks,  
Marie-Anne

---

<div class="post-metadata">

**Author:** ![Marie-Anne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@Marie-Anne](https://www.ruby-forum.com/u/Marie-Anne)\
**Post date:** [July 18, 2008, 5:17am UTC](https://www.ruby-forum.com/t/shebang-warning-in-locomotive/143142/2 "2008-07-18T05:17:01Z")

</div>

I’m also experiencing the same problem… does anyone out there no  
what it is?

On Jul 15, 11:57 pm, Marie-Anne [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Marie-Anne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@Marie-Anne](https://www.ruby-forum.com/u/Marie-Anne)\
**Post date:** [July 18, 2008, 7:23am UTC](https://www.ruby-forum.com/t/shebang-warning-in-locomotive/143142/3 "2008-07-18T07:23:59Z")

</div>

I got it working with seymore cms though now I’m encountering further  
problems with errors in the code itself. I trying to figure out how to  
install geego cms now just to play with.

one thing to try is to go into your locomotive terminal and type:  
ruby script/console  
when i was mucking around with ‘seymore’ it was helpful in that it  
pointed out i had to update my gems etc.

when the console is working the screen should look like this:

> >

at which point you can type ‘exit’

another thing i did was go into the file structure and manually add  
the locomotive.yml in ‘config’ folder. you have to edit the  
locomotive.yml itself manually to suit the project i.e. ports and  
stuff. check out the file from a site that works on locomotive.

hope you get it working

- Phil

---

<div class="post-metadata">

**Author:** ![Marie-Anne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@Marie-Anne](https://www.ruby-forum.com/u/Marie-Anne)\
**Post date:** [July 18, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/shebang-warning-in-locomotive/143142/4 "2008-07-18T14:36:13Z")

</div>

Philza,

Thanks for your reaction.

The solutions you give to try are not working for me because I cannot  
enter the terminal from within Locomotive in a new project, because  
when I try to create a new project I got the Shebang Warning and there  
is no project created (the maps that Locomotive normally creates,  
aren’t there). So, I also am not able to adjust something manually in  
the config folder.

I am thinking that I get the Shebang Warning because I upgraded my  
rails version some time ago. There might be a conflict between my  
Locomotive version and my new Rails version…
