[Opa] Fwd: compiler creating .exe on ubuntu 32 bit

amulya rattan talk2amulya at gmail.com
Tue Apr 17 08:31:51 UTC 2012


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>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>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
>> > 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
>>>
>>> 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> wrote:
>>>
>>>> Sorry, this was meant to go to the list.
>>>>
>>>>
>>>> ---------- Forwarded message ----------
>>>> From: Artyom Shalkhakov <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>
>>>>
>>>>
>>>> Hello Amulya,
>>>>
>>>>  2012/4/17 amulya rattan <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
>>>>> https://lists.owasp.org/mailman/listinfo/opa
>>>>>
>>>>>
>>>> --
>>>> Cheers,
>>>> Artyom Shalkhakov
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Cheers,
>>>> Artyom Shalkhakov
>>>>
>>>>
>>>> _______________________________________________
>>>> Opa mailing list
>>>> Opa at lists.owasp.org
>>>> https://lists.owasp.org/mailman/listinfo/opa
>>>>
>>>>
>>> _______________________________________________
>>> Opa mailing list
>>> 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/58308a1d/attachment-0001.html>


More information about the Opa mailing list