1. Shebang not working - OS X

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.

new topic     » topic index » view message » categorize

2. Re: Shebang not working - OS X

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.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Shebang not working - OS X

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.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Shebang not working - OS X

Tuishimi said...

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.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Shebang not working - OS X

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

new topic     » goto parent     » topic index » view message » categorize

6. Re: Shebang not working - OS X

OS X eubins was just updated, BTW...

Jeremy

new topic     » goto parent     » topic index » view message » categorize

7. Re: Shebang not working - OS X

O.K! I'll go find/grab it!

new topic     » goto parent     » topic index » view message » categorize

8. Re: Shebang not working - OS X

jeremy said...

OS X eubins was just updated, BTW...

Jeremy

Is it here : http://sourceforge.net/projects/rapideuphoria/files/ ?

The newest I see is March 11.

new topic     » goto parent     » topic index » view message » categorize

9. Re: Shebang not working - OS X

http://jeremy.cowgar.com/eubins/osx/

Jeremy

new topic     » goto parent     » topic index » view message » categorize

10. Re: Shebang not working - OS X

Thanks. :) I just did a search on the forums and found it again. This time I've bookmarked it.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu