[Opa] Fwd: compiler creating .exe on ubuntu 32 bit
amulya rattan
talk2amulya at gmail.com
Tue Apr 17 09:03:08 UTC 2012
One more thing..Is there an IRC channel for Opa?
2012/4/17 amulya rattan <talk2amulya at gmail.com>
> Indeed. I've been spoiled by other IDEs auto-saving for me all the time.
> Removed all syntax errors and all up and running now.
> Thanks for the sublime link and apologies for the noise.
>
> ~Amulya
>
>
> 2012/4/17 Henri <niceisnice at gmail.com>
>
>> You probably didn't save your code within emacs.
>> You may want to try Sublime Text:
>> http://www.sublimetext.com/
>> The Opa plugin is here:
>> https://github.com/OpaOnWindowsNow/OpaSublimeText
>>
>>
>> On Tuesday, April 17, 2012 at 10:48 AM, amulya rattan wrote:
>>
>> > Weird.. that's what completely beats me. Why didn't compiler throw
>> errors at me earlier? As soon as I ran the hello world example, compiling
>> the chat file gave me errors. I had compiled that file like 5 times when my
>> .exe file didn't return anything, even with --verbose mode, no errors. Now,
>> running compiler again gives me errors..Oh hell, it could be emacs. This
>> was my first time using it and it might have simply not auto-saved? That's
>> the only thing that I can think of.
>> >
>> > Thanks for all the responses.
>> >
>> > ~Amulya
>> >
>> > On Tue, Apr 17, 2012 at 4:40 AM, Cédric Soulas <
>> cedric.soulas at mlstate.com (mailto:cedric.soulas at mlstate.com)> wrote:
>> > > I just realized the hello chat code you pasted contains several
>> syntax errors, how could it produced an exe, and without any errors?
>> > > The exe you are trying to run is maybe an old and completely
>> different exe, don't you think?
>> > >
>> > > On Apr 17, 2012, at 10:31 AM, amulya rattan wrote:
>> > > > SHA: fae1ad6f5699749d203ac70b32b6db20017d0cb3
>> refs/remotes/origin/HEAD
>> > > >
>> > > > And apparently the hello world app does work! So, something wrong
>> with the code I previously posted?
>> > > >
>> > > > ~Amulya
>> > > >
>> > > > On Tue, Apr 17, 2012 at 4:24 AM, Cédric Soulas <
>> cedric.soulas at mlstate.com (mailto:cedric.soulas at mlstate.com)> wrote:
>> > > > > Can you give us the sha of the last commit your are building Opa
>> from (cat HEAD_SHA or git rev-parse HEAD if from github)?
>> > > > > We'll have a try.
>> > > > >
>> > > > > Btw, any chance a simple hello world works :)?
>> > > > >
>> > > > > Server.start(
>> > > > > Server.http,
>> > > > > { page: function() { <h1>Hello, world</h1> }
>> > > > > , title: "Hello, world"
>> > > > > }
>> > > > > )
>> > > > >
>> > > > > Best,
>> > > > >
>> > > > > Cédric
>> > > > >
>> > > > > On Apr 17, 2012, at 10:12 AM, amulya rattan wrote:
>> > > > > > I am using Ubuntu 32-bit(as on subject) so no packages
>> available. I had to build ocaml and opa both from sources. None of it gave
>> any errors.
>> > > > > >
>> > > > > > Opa --version gives:
>> > > > > > Opa compiler (c) MLstate -- version 0.9.2 -- build 0
>> > > > > >
>> > > > > > And yes, opa_chat.exe does show up on ps.
>> > > > > >
>> > > > > > ~Amulya
>> > > > > >
>> > > > > > On Tue, Apr 17, 2012 at 4:06 AM, Cédric Soulas <
>> cedric.soulas at mlstate.com (mailto:cedric.soulas at mlstate.com)> wrote:
>> > > > > > > Does it actually runs in background? ps aux|grep opa_chat.exe?
>> > > > > > > Which opa compiler do you use (opa --version)? Does the
>> compiler comes from a package (which one?) or is built from sources?
>> > > > > > > What is your OS? 32bit or 64bit?
>> > > > > > >
>> > > > > > > On Apr 17, 2012, at 9:57 AM, amulya rattan wrote:
>> > > > > > >
>> > > > > > > > The reason I thought this might be running in background
>> was the output I got, as shown below:
>> > > > > > > >
>> > > > > > > > dropfatdiva at dropfatdiva-Latitude-E6400:~$ ./opa_chat.exe
>> --port 4040
>> > > > > > > > Unknown option `--port 4040'.
>> > > > > > > > Try `--help' for more information.
>> > > > > > > > dropfatdiva at dropfatdiva-Latitude-E6400:~$ ./opa_chat.exe
>> > > > > > > > dropfatdiva at dropfatdiva-Latitude-E6400:~$ ./opa_chat.exe
>> > > > > > > > dropfatdiva at dropfatdiva-Latitude-E6400:~$
>> > > > > > > >
>> > > > > > > > And yes, of course I used --port <int> and not just --port
>> :) Does this give any clue?
>> > > > > > > >
>> > > > > > > > ~Amulya
>> > > > > > > > On Tue, Apr 17, 2012 at 3:52 AM, Cédric Soulas <
>> cedric.soulas at mlstate.com (mailto:cedric.soulas at mlstate.com)> wrote:
>> > > > > > > > > On Apr 17, 2012, at 9:47 AM, amulya rattan wrote:
>> > > > > > > > > > This alarmed me because I found the chat application to
>> not work when I ran it. I kept hitting "localhost:8080" without any
>> results. Opa compiler didn't throw any errors, neither did it when i ran
>> ./chatapp.exe(looks like it runs in background?). Here is the code. Hope
>> someone can shed a light on what might be wrong.
>> > > > > > > > >
>> > > > > > > > >
>> > > > > > > > > Why do think it runs in background?
>> > > > > > > > > You should see this printed in the console:
>> > > > > > > > >
>> > > > > > > > > Accesses logged to access.log
>> > > > > > > > > Messages logged to error.log
>> > > > > > > > > Http (OPA/1635) serving on http://McAllister.local:8080 (
>> http://McAllister.local:8080/)
>> > > > > > > > >
>> > > > > > > > > And if you hit Ctrl-C, you'll see "SIGINT received,
>> exiting.", do you?
>> > > > > > > > >
>> > > > > > > > > Are you running upx or equivalent on the exe after the
>> compilation?
>> > > > > > > > >
>> > > > > > > > > > Also, where can I give a different port value using
>> --port? Using it with .exe doesn't work. Thanks for your responses.
>> > > > > > > > >
>> > > > > > > > > The --port <int> is the correct option.
>> > > > > > > > >
>> > > > > > > > > Best,
>> > > > > > > > >
>> > > > > > > > > Cédric
>> > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > > > ~Amulya
>> > > > > > > > > >
>> > > > > > > > > > On Tue, Apr 17, 2012 at 3:41 AM, Artyom Shalkhakov <
>> artyom.shalkhakov at gmail.com (mailto:artyom.shalkhakov at gmail.com)> wrote:
>> > > > > > > > > > > Sorry, this was meant to go to the list.
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > > ---------- Forwarded message ----------
>> > > > > > > > > > > From: Artyom Shalkhakov <artyom.shalkhakov at gmail.com(mailto:
>> artyom.shalkhakov at gmail.com)>
>> > > > > > > > > > > Date: 2012/4/17
>> > > > > > > > > > > Subject: Re: [Opa] compiler creating .exe on ubuntu
>> 32 bit
>> > > > > > > > > > > To: amulya rattan <talk2amulya at gmail.com (mailto:
>> talk2amulya at gmail.com)>
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > > Hello Amulya,
>> > > > > > > > > > >
>> > > > > > > > > > > 2012/4/17 amulya rattan <talk2amulya at gmail.com(mailto:
>> talk2amulya at gmail.com)>
>> > > > > > > > > > > > All,
>> > > > > > > > > > > >
>> > > > > > > > > > > > Trying to run the first chat example, I saw that
>> compiler is creating .exe even on a unix based system. Why's that? Did I
>> miss some setting?
>> > > > > > > > > > >
>> > > > > > > > > > > It was like this for me as well, last time I tried.
>> > > > > > > > > > > However, you can still run it as usual, ".exe" is
>> just a suffix.
>> > > > > > > > > > > So, I don't consider this to be an issue.
>> > > > > > > > > > >
>> > > > > > > > > > > > ~Amulya
>> > > > > > > > > > > >
>> > > > > > > > > > > > _______________________________________________
>> > > > > > > > > > > > Opa mailing list
>> > > > > > > > > > > > Opa at lists.owasp.org (mailto:Opa at lists.owasp.org)
>> > > > > > > > > > > > https://lists.owasp.org/mailman/listinfo/opa
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > > --
>> > > > > > > > > > > Cheers,
>> > > > > > > > > > > Artyom Shalkhakov
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > > --
>> > > > > > > > > > > Cheers,
>> > > > > > > > > > > Artyom Shalkhakov
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > > > > _______________________________________________
>> > > > > > > > > > > Opa mailing list
>> > > > > > > > > > > Opa at lists.owasp.org (mailto:Opa at lists.owasp.org)
>> > > > > > > > > > > https://lists.owasp.org/mailman/listinfo/opa
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > > > _______________________________________________
>> > > > > > > > > > Opa mailing list
>> > > > > > > > > > Opa at lists.owasp.org (mailto:Opa at lists.owasp.org)
>> > > > > > > > > > https://lists.owasp.org/mailman/listinfo/opa
>> > > > > > > > >
>> > > > > > > >
>> > > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> >
>> > _______________________________________________
>> > Opa mailing list
>> > Opa at lists.owasp.org (mailto:Opa at lists.owasp.org)
>> > https://lists.owasp.org/mailman/listinfo/opa
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/opa/attachments/20120417/53d4291b/attachment-0001.html>
More information about the Opa
mailing list