Thanks, it compiled and runs OK.

BTW, the page is 404 again:
https://github.com/cesanta/mongoose/blob/master/test/page.lp

I assume Mongoose includes the Lua interpreter, so I don't need to use the 
" -cgi_interpreter" switch. However, after adding the following "test.lp" 
file and launching "mongoose-lua -cgi_pattern **.lp", the browser displays 
the source code instead of showing the output:

<? print('HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n') ?>
<html>
<body>
<p>
  <span>Today is:</span>
  <? mg.write(os.date("%A")) ?>
</p>
</body>
</html>



On Sunday, January 5, 2014 12:52:15 AM UTC+1, Sergey Lyubka wrote:
>
> $ sudo apt-get install git
> $ git clone https://github.com/cesanta/mongoose.git
> $ cd mongoose/build
> $ make mongoose-lua
>
>
> On Sat, Jan 4, 2014 at 10:49 PM, Gilles <[email protected] 
> <javascript:>>wrote:
>
>> # cat /proc/cpuinfo
>> Processor       : Feroceon 88FR131 rev 1 (v5l)
>> BogoMIPS        : 1191.11
>> Features        : swp half thumb fastmult edsp
>> CPU implementer : 0x56
>> CPU architecture: 5TE
>> CPU variant     : 0x2
>> CPU part        : 0x131
>> CPU revision    : 1
>>
>> Hardware        : Marvell SheevaPlug Reference Board
>> Revision        : 0000
>> Serial          : 0000000000000000
>>
>> # cat /proc/version
>> Linux version 3.2.0-4-kirkwood ([email protected] <javascript:>) 
>> (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 Debian 3.2.51-1
>>
>> # uname -a
>> Linux sheevaplug 3.2.0-4-kirkwood #1 Debian 3.2.51-1 armv5tel GNU/Linux
>>
>> # cat /etc/issue
>> Debian GNU/Linux 7 \n \l
>>
>> On Saturday, January 4, 2014 1:14:12 PM UTC+1, Sergey Lyubka wrote:
>>
>>> What OS are you using?
>>>
>>>
>>> On Sat, Jan 4, 2014 at 10:40 AM, Gilles <[email protected]> wrote:
>>>
>>>> Thanks Sergey.
>>>>
>>>> The tarball from the Downloads section doesn't seem to include the 
>>>> mongoose-lua Makefile, and I don't know Git.
>>>>
>>>> To avoid having to go through a whole 
>>>> tutorial<http://www.vogella.com/tutorials/Git/article.html>just for this, 
>>>> is there a howto that shows how to compile Mongoose with 
>>>> support for Lua (and SQLite)?
>>>>
>>>> Thank you.
>>>>
>>>>
>>>> On Friday, January 3, 2014 11:17:33 PM UTC+1, Sergey Lyubka wrote:
>>>>
>>>>> Fixed broken link, thanks for pointing it out.
>>>>> It is https://github.com/cesanta/mongoose/blob/master/build/tes
>>>>> t/page.lp
>>>>> The easiest way to compile mongoose on Linux with Lua support is
>>>>> to close git tree, then
>>>>>
>>>>> cd /path/to/mongoose/repo/build
>>>>> make mongoose-lua
>>>>>
>>>>>  
>>>>>
>>>>> On Fri, Jan 3, 2014 at 10:14 PM, Gilles <[email protected]> wrote:
>>>>>
>>>>>>  Hello
>>>>>>
>>>>>> I'd like to run small Lua web scripts on an ARM9E appliance running 
>>>>>> Debian. It looks like Mongoose is the simplest way, but the relevant 
>>>>>> page about 
>>>>>> Lua<https://github.com/cesanta/mongoose/blob/master/test/page.lp>in the 
>>>>>> Overview 
>>>>>> section <http://code.google.com/p/mongoose/> is currently 404.
>>>>>>
>>>>>> Could someone show me how to compile and configure Mongoose to run a 
>>>>>> "Hello, world!" Lua script securely on that platform?
>>>>>>
>>>>>> Thank you.
>>>>>>
>>>>>> -- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "mongoose-users" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>> send an email to [email protected].
>>>>>> To post to this group, send email to [email protected].
>>>>>>
>>>>>> Visit this group at http://groups.google.com/group/mongoose-users.
>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>
>>>>>
>>>>>  -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "mongoose-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at http://groups.google.com/group/mongoose-users.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "mongoose-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/mongoose-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to