Re: module 'uv_native' not found

133 views
Skip to first unread message

Tim Caswell

unread,
Apr 27, 2013, 6:07:38 AM4/27/13
to lu...@googlegroups.com

Luvit is not a Lua library.  It is a new platform that happens to use the Lua language for scripting.  You would start with `luvit server.lua`.

I have started a new project called luv that is just the libuv bindings as a normal Lua library.  This combined with lhttp_parser can be used to create fast http servers using the same tech that powers luvit.  See my moonslice-luv project for an example http framework.

On Apr 26, 2013 11:29 PM, "Joe Deng" <dhq...@gmail.com> wrote:
Hi all,

Interested in trrying out luvit, I install luvit according to the Github README. But unfortunately, when I run http-server.lua in the example folder, it show the below error message
-------------------------------------------------------------------------------------------
Deng:examples dengjoe$ lua ./http-server.lua
lua: /usr/local/lib/luvit/net.lua:19: module 'uv_native' not found:
    no field package.preload['uv_native']
    no file '/usr/local/lib/luvit/uv_native.lua'
    no file './uv_native.so'
    no file '/usr/local/lib/lua/5.1/uv_native.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
    [C]: in function 'require'
    /usr/local/lib/luvit/net.lua:19: in main chunk
    [C]: in function 'require'
    /usr/local/lib/luvit/http.lua:19: in main chunk
    [C]: in function 'require'
    ./http-server.lua:1: in main chunk
    [C]: ?
-------------------------------------------------------------------------------------------

My environment:
---------------------------------------------
Mac OS X Mountain Lion 10.8.3
Lua 5.1.5 (install from Homebrw)
---------------------------------------------

And I also set the LUA_PATH variable in my .profile
-------------------------------------------------------------
export LUA_PATH="/usr/local/lib/luvit/?.lua;"
-------------------------------------------------------------

I new to luvit, is there something I miss, or something info I need to provide?

any reply would be appreciated?


Best regards,
Joe



--
You received this message because you are subscribed to the Google Groups "luvit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to luvit+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages