lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Perfectly. I changed to Lua 5.1 and a page without errors comes up.
Yes, with your help, it's started a new age of web programing for me!
Thank you for the patience. I am really ahppy with this result.

2015-02-26 19:29 GMT-03:00, Etiene Dalcol <dalcol@etiene.net>:
> I could be wrong, but if I recall correctly, setfenv no longer exists in
> 5.2!
> Although Sailor's code would work on both 5.1 and 5.2 and is compatible
> with different webservers, I guess cgilua only works with Lua 5.1 then!
> Try using Lua 5.1 instead? Or a different webserver, maybe? I really like
> using apache2 [1]+ mod_lua[2] but then it would require more steps!
> Or maybe we should take a look into cgilua and fix this ;) I'll take a look
> at their repo and / or talk to the maintainer and see what can be done :)
>
> Cheers!
> Etiene
>
> [1] http://httpd.apache.org/
> [2] http://modlua.org/
>
>
> 2015-02-26 23:11 GMT+01:00 luciano de souza <luchyanus@gmail.com>:
>
>> After the valuable tips given by the friends:
>>
>> 1. I downloaded Luvit, but I couldn't understand exactly its working.
>> It seems to be an web server, but the examples are not very
>> self-explained;
>>
>> 2. I tried to download OpenResty, but there's something wrong with de
>> acessibility of the page and, for this reason, with my screen reader
>> (I am blind), I was not able to get the tar ball; this was the reason
>> why I have chosen the Github package;
>>
>> 3. I did all the procedures to run a Sailor application, having as a
>> result, finally, a page shown at my browser.
>>
>> In other words, Sailor seems to be very good for me. It's simple to
>> install, to configure and to create a basic MVC structure.
>>
>> I found this documentation page: http://sailorproject.org/?r=docs. Now
>> I think it's only to study what is said there.
>>
>> Onbly to ratify if I am successful with Sailor, accessing
>> http://localhost:8080, I have got the following page:
>>
>> /usr/local/share/lua/5.2/cgilua.lua:199: attempt to call upvalue
>> 'setfenv' (a nil value)
>> stack traceback:
>>   /usr/local/share/lua/5.2/cgilua.lua:161: in function 'setfenv'
>>   /usr/local/share/lua/5.2/cgilua.lua:199: in function
>>   (...tail calls...)
>>   [C]: in function 'xpcall'
>>   /usr/local/share/lua/5.2/cgilua.lua:169: in function 'pcall'
>>   /usr/local/share/lua/5.2/cgilua.lua:630: in function 'main'
>>   /usr/local/share/lua/5.2/wsapi/sapi.lua:53: in function
>>   (...tail calls...)
>>   [C]: in function 'xpcall'
>>   /usr/local/share/lua/5.2/wsapi/common.lua:270: in function 'run_app'
>>   [string " local app_name, bootstrap_code, is_file = ...."]:68: in
>> function <[string " local app_name, bootstrap_code, is_file =
>> ...."]:65>
>>
>> 2015-02-26 17:13 GMT-03:00, Yichun Zhang (agentzh) <agentzh@gmail.com>:
>> > Hello!
>> >
>> > On Thu, Feb 26, 2015 at 8:29 AM, luciano de souza wrote:
>> >> $ ~/ngx_openresty-master
>> >> $ sudo make
>> >> $ sudo make install
>> >> Error: Without rule to process "make install"
>> >>
>> >
>> > The git repository of ngx_openresty is not supposed to be used by end
>> > users. Please read the official installation documentation of
>> > OpenResty:
>> >
>> >     http://openresty.org/#Installation
>> >
>> > Basically you should download the release tarballs from the official
>> > download page:
>> >
>> >     http://openresty.org/#Download
>> >
>> >> The problem is that I am not a C program. If the compilation is only
>> >> "sudo ./configure && sudo make && sudo install", I am sucessful.
>> >
>> > The steps of installing OpenResty is essentially like that :)
>> >
>> > Regards,
>> > -agentzh
>> >
>> >
>>
>>
>> --
>> Luciano de Souza
>>
>>
>


-- 
Luciano de Souza