On Sun, Nov 13, 2016 at 2:32 PM, Tony <fbane...@gmail.com> wrote:
> Hi Peter,
> this is my output:
>
> luarocks-5.1 list luasec
>
> lua5.1: /usr/bin/luarocks-5.1:5: module 'luarocks.cfg' not found:
>
> no field package.preload['luarocks.cfg']
>
> no file '/usr/share/lua/5.1/luarocks/cfg.lua'
>
> no file './luarocks/cfg.lua'
>
> no file '/usr/local/share/lua/5.1/luarocks/cfg.lua'
>
> no file '/usr/local/share/lua/5.1/luarocks/cfg/init.lua'
>
> no file '/usr/local/lib/lua/5.1/luarocks/cfg.lua'
>
> no file '/usr/local/lib/lua/5.1/luarocks/cfg/init.lua'
>
> no file '/usr/share/lua/5.1/luarocks/cfg.lua'
>
> no file '/usr/share/lua/5.1/luarocks/cfg/init.lua'
>
> no file './luarocks/cfg.so'
>
> no file '/usr/local/lib/lua/5.1/luarocks/cfg.so'
>
> no file '/usr/lib/x86_64-linux-gnu/lua/5.1/luarocks/cfg.so'
>
> no file '/usr/lib/lua/5.1/luarocks/cfg.so'
>
> no file '/usr/local/lib/lua/5.1/loadall.so'
>
> no file './luarocks.so'
>
> no file '/usr/local/lib/lua/5.1/luarocks.so'
>
> no file '/usr/lib/x86_64-linux-gnu/lua/5.1/luarocks.so'
>
> no file '/usr/lib/lua/5.1/luarocks.so'
>
> no file '/usr/local/lib/lua/5.1/loadall.so'
>
> stack traceback:
>
> [C]: in function 'require'
>
> /usr/bin/luarocks-5.1:5: in main chunk
>
> [C]: ?
>
>
>
> 2016-11-13 11:28 GMT+00:00 Peter Melnichenko <mpeter...@gmail.com>:
>>
>> On Sat, Nov 12, 2016 at 5:55 PM, Tony <fbane...@gmail.com> wrote:
>> > Hi Peter,
>> > thanks you for your e-mail the installed version is:
>> >
>> > Setting up lua-sec:amd64 (0.5-1)
>> >
>> > Thanks
>> >
>> >
>> > 2016-11-12 14:36 GMT+00:00 Peter Melnichenko <mpeter...@gmail.com>:
>> >>
>> >> On Sat, Nov 12, 2016 at 4:34 PM, Tony <fbane...@gmail.com> wrote:
>> >> > Hi Guys!
>> >> > I have a problem am trying to install prosody and integrate on
>> >> > diaspora.
>> >> > Following the instructions I have to do:
>> >> > luarocks install bcrypt but I got this error:
>> >> >
>> >> > luarocks install bcrypt
>> >> >
>> >> >
>> >> > Error: LuaRocks 2.2.0 bug (please report at
>> >> > luarocks-developers@lists.sourceforge.net).
>> >> >
>> >> > /usr/share/lua/5.1/ssl.lua:125: bad argument #1 to 'setfd' (number
>> >> > expected,
>> >> > got nil)
>> >> >
>> >> > stack traceback:
>> >> >
>> >> > [C]: in function 'request'
>> >> >
>> >> > /usr/share/lua/5.1/ssl/https.lua:133: in function 'request'
>> >> >
>> >> > /usr/share/lua/5.1/luarocks/fs/lua.lua:557: in function 'request'
>> >> >
>> >> > /usr/share/lua/5.1/luarocks/fs/lua.lua:621: in function
>> >> > 'http_request'
>> >> >
>> >> > /usr/share/lua/5.1/luarocks/fs/lua.lua:659: in function 'download'
>> >> >
>> >> > /usr/share/lua/5.1/luarocks/fetch.lua:40: in function 'fetch_url'
>> >> >
>> >> > /usr/share/lua/5.1/luarocks/manif.lua:97: in function
>> >> > 'fetch_manifest_from'
>> >> >
>> >> > /usr/share/lua/5.1/luarocks/manif.lua:135: in function
>> >> > 'load_manifest'
>> >> >
>> >> > /usr/share/lua/5.1/luarocks/search.lua:175: in function
>> >> > 'manifest_search'
>> >> >
>> >> > /usr/share/lua/5.1/luarocks/search.lua:208: in function
>> >> > 'search_repos'
>> >> >
>> >> > /usr/share/lua/5.1/luarocks/search.lua:284: in function
>> >> > 'find_suitable_rock'
>> >> >
>> >> > /usr/share/lua/5.1/luarocks/install.lua:146: in function
>> >> > </usr/share/lua/5.1/luarocks/install.lua:122>
>> >> >
>> >> > (tail call): ?
>> >> >
>> >> > [C]: in function 'xpcall'
>> >> >
>> >> > /usr/share/lua/5.1/luarocks/command_line.lua:208: in function
>> >> > 'run_command'
>> >> >
>> >> > /usr/bin/luarocks:33: in main chunk
>> >> >
>> >> > [C]: ?
>> >> >
>> >> >
>> >> > Looking in the /usr/share/lua I have
>> >> >
>> >> > /usr/share/lua # ls -lsa
>> >> >
>> >> > total 16
>> >> >
>> >> > 4 drwxr-xr-x   4 root root 4096 Nov 11 01:07 .
>> >> >
>> >> > 4 drwxr-xr-x 121 root root 4096 Nov 12 00:41 ..
>> >> >
>> >> > 4 drwxr-xr-x   6 root root 4096 Nov 12 14:20 5.1
>> >> >
>> >> > 4 drwxr-xr-x   5 root root 4096 Nov 11 01:07 5.2
>> >> >
>> >> > any idea how to fix it please?
>> >> >
>> >> > Thanks
>> >> >
>> >> > Tony
>> >>
>> >> Hi,
>> >>
>> >> Could this be relevant -
>> >> https://github.com/luarocks/luarocks/issues/630 ?
>> >> What version of luasec do you have installed?
>> >>
>> >> -- Best regards,
>> >> -- Peter Melnichenko
>>
>> The error indicates that Lua somehow loaded Lua modules from luasec 0.5
>> but C module from luasec 0.6. Do you have luasec installed via Luarocks?
>> I.e. does `luarocks list luasec` mention any luasec versions?
>> Does it help if you remove luasec or reinstall it? (`luarocks remove
>> luasec`,
>> `luarocks install luasec`)
>>
>> -- Best regards,
>> -- Peter Melnichenko
>>

This is strange - according to your first traceback you do have
luarocks files installed in /usr/share/lua/5.1/luarocks/. This last error
message would have prevented you from running `luarocks install bcrypt`
the first time, too. I noticed that you used `luarocks-5.1` the second time
and just `luarocks` the first time, are these different luarocks installations?
How did you install them?

-- Best regards,
-- Peter Melnichenko

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to