lua-users home
lua-l archive

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


Hi,

Thanks for the report.

> On Mar 5, 2015, at 8:39 PM, Daurnimator <quae@daurnimator.com> wrote:
> 
> On 1 March 2015 at 13:44, Gary V. Vaughan <gary@vaughan.pe> wrote:
>> I am happy to announce release 33.3.1 of luaposix.
>> 
>> 33.3.0 was DOA, so I removed it from moonrocks, in addition to fixing the
>> packaging problem in 33.3.0, this release includes all the improvements
>> from that release, also included in the NEWS extracts below.
> 
> The curses module seems to not be installed correctly:
> 
> $ luarocks show luaposix
> 
> luaposix 33.3.1-1 - Lua bindings for POSIX (including curses)
> 
> A library binding various POSIX APIs, including curses. POSIX is the IEEE
> Portable Operating System Interface standard. luaposix is based on lposix and
> lcurses.
> 
> License:        MIT/X11
> Homepage:       http://github.com/luaposix/luaposix/
> Installed in:   /usr
> 
> Modules:
>        curses (/usr/share/lua/5.2/curses.lua)
>        posix (/usr/share/lua/5.2/posix/init.lua)
>        posix._argcheck (/usr/share/lua/5.2/posix/_argcheck.lua)
>        posix.compat (/usr/share/lua/5.2/posix/compat.lua)
>        posix.deprecated (/usr/share/lua/5.2/posix/deprecated.lua)
>        posix.sys (/usr/share/lua/5.2/posix/sys.lua)
>        posix.util (/usr/share/lua/5.2/posix/util.lua)

With a completely clean install of lua-5.2.4 and luarocks-2.2.0, I have the same
output (after `luarocks install luaposix`.

> $ lua -l curses
> lua: /usr/share/lua/5.2/curses.lua:2: module 'posix.curses' not found:
>        no field package.preload['posix.curses']
>        no file './posix/curses/init.lua'
>        no file '/usr/share/lua/5.2/posix/curses.lua'
>        no file '/usr/share/lua/5.2/posix/curses/init.lua'
>        no file '/usr/lib/lua/5.2/posix/curses.lua'
>        no file '/usr/lib/lua/5.2/posix/curses/init.lua'
>        no file './posix/curses.lua'
>        no file '/usr/local/share/lua/5.2/posix/curses/init.lua'
>        no file '/usr/local/share/lua/5.2/posix/curses.lua'
>        no file '/usr/local/lib/lua/5.2/posix/curses.so'
>        no file '/usr/local/lib/lua/5.2/posix.so'
> stack traceback:
>        [C]: in function 'require'
>        /usr/share/lua/5.2/curses.lua:2: in main chunk
>        [C]: in function 'require'
>        [C]: in ?

But I can't reproduce the rest:

$ ~/lua52/bin/lua -l curses
Lua 5.2.4  Copyright (C) 1994-2015 Lua.org, PUC-Rio
> for k in pairs (package.loaded.curses) do print (k) end
slk_touch  
curs_set   
cols       
slk_attrset
endwin     
has_colors
...
isendwin   
start_color
slk_clear  
doupdate
> ^D

Do you have bits of the borked previous release in your path too?  What happens if
you build a new 5.2 + luarocks tree and try it from there?

Cheers,
-- 
Gary V. Vaughan (gary AT vaughan DOT pe)