1. Shebang not working - OS X
- Posted by Tuishimi Jul 06, 2009
- 1310 views
I can run my code manually by invoking the interpreter followed by the source code:
eui /Applications/MAMP/cgi-bin/ctrl.exw
Works great!
If I put the shebang of #!/Applications/euphoria/bin/eui into my code and try to run it that way, I get the error:
ZuGzUg:cgi-bin mitch$ ./ctrl.exw -bash: ./ctrl.exw: /Applications/euphoria/bin/eui^M: bad interpreter: No such file or directory
This usually indicates that there is a CR in the code. It was indeed copied from my Windows box, but I did a search/replace on \r and found only \n. The file encoding is UTF-8.
I am sure there is a simple solution but it escapes me. (Get it? Escapes... \n... nevermind.)
Any thoughts on this would be appreciated. I use TextMate as my editor. I also have BBEdit and Coda available.
2. Re: Shebang not working - OS X
- Posted by Tuishimi Jul 06, 2009
- 1306 views
Son of a b*itch. I tried BBEdit instead, and converted Win CRLF to LF... works. What the heck. Not happy that TextMate was not finding the CRLF even tho' I had it set (prefs) for LFs... Ah well. Sorry to be a bother.
3. Re: Shebang not working - OS X
- Posted by Tuishimi Jul 06, 2009
- 1291 views
Picking through this one at a time - moving my website implemented in Euphoria over to Mac OS X.
I've gotten it to the point where my site comes up... sort of. But the getenv("REQUEST_METHOD") and getenv("QUERY_STRING") are not working. I get back nothing at all.
4. Re: Shebang not working - OS X
- Posted by Tuishimi Jul 06, 2009
- 1319 views
Picking through this one at a time - moving my website implemented in Euphoria over to Mac OS X.
I've gotten it to the point where my site comes up... sort of. But the getenv("REQUEST_METHOD") and getenv("QUERY_STRING") are not working. I get back nothing at all.
ZuGzUg:cgi-bin mitch$ eui -version Euphoria Interpreter 4.0.0 development (r2180M) for OS X Using System Memory
...on Mac OS X 10.5.7.
5. Re: Shebang not working - OS X
- Posted by jeremy (admin) Jul 08, 2009
- 1266 views
Can you try a simple test such as:
-- Before running type at the shell: export HELLO=World puts(1, getenv("HELLO") & "\n")
and see what happens?
Jeremy
6. Re: Shebang not working - OS X
- Posted by jeremy (admin) Jul 08, 2009
- 1272 views
OS X eubins was just updated, BTW...
Jeremy
7. Re: Shebang not working - OS X
- Posted by Tuishimi Jul 08, 2009
- 1254 views
O.K! I'll go find/grab it!
8. Re: Shebang not working - OS X
- Posted by Tuishimi Jul 08, 2009
- 1281 views
OS X eubins was just updated, BTW...
Jeremy
Is it here : http://sourceforge.net/projects/rapideuphoria/files/ ?
The newest I see is March 11.
9. Re: Shebang not working - OS X
- Posted by jeremy (admin) Jul 08, 2009
- 1273 views
http://jeremy.cowgar.com/eubins/osx/
Jeremy
10. Re: Shebang not working - OS X
- Posted by Tuishimi Jul 08, 2009
- 1261 views
Thanks. :) I just did a search on the forums and found it again. This time I've bookmarked it.