Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors:can't install cgilua #482

Closed
JuanRuiz opened this issue Jan 8, 2016 · 14 comments
Closed

Errors:can't install cgilua #482

JuanRuiz opened this issue Jan 8, 2016 · 14 comments

Comments

@JuanRuiz
Copy link

JuanRuiz commented Jan 8, 2016

/usr/share/lua/5.1/luarocks/deps.lua:159: attempt to compare two table values
stack traceback:
/usr/share/lua/5.1/luarocks/deps.lua:159: in function 'compare_versions'
/usr/share/lua/5.1/luarocks/type_check.lua:175: in function 'check_version'
/usr/share/lua/5.1/luarocks/type_check.lua:269: in function </usr/share/lua/5.1/luarocks/type_check.lua:264>
(tail call): ?
/usr/share/lua/5.1/luarocks/manif_core.lua:28: in function </usr/share/lua/5.1/luarocks/manif_core.lua:21>
(tail call): ?
/usr/share/lua/5.1/luarocks/search.lua:176: in function 'manifest_search'
/usr/share/lua/5.1/luarocks/search.lua:209: in function 'search_repos'
/usr/share/lua/5.1/luarocks/search.lua:285: in function 'find_suitable_rock'
/usr/share/lua/5.1/luarocks/install.lua:189: in function </usr/share/lua/5.1/luarocks/install.lua:161>
(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]: ?

@mpeterv
Copy link
Contributor

mpeterv commented Jan 8, 2016

Can't reproduce, what versions of Lua and LuaRocks do you use?

@JuanRuiz
Copy link
Author

JuanRuiz commented Jan 8, 2016

hi mpeterv,
versions are
lua 5.1 and LuaRocks 2.2.2

@ignacio
Copy link
Contributor

ignacio commented Jan 31, 2016

Couldn't reproduce with Lua 5.1 and LuaRocks 2.3.0

@JuanRuiz
Copy link
Author

I'm using LuaRocks 2.2.2

@ignacio
Copy link
Contributor

ignacio commented Feb 8, 2016

Can you give 2.3.0 a try? What other rocks do you have installed? (luarocks list)

@JuanRuiz
Copy link
Author

JuanRuiz commented Feb 9, 2016

Hi,
I can use lua but I can't luarocks.
I want to install cgilua, "luarocks install cgilua"
Regards,
El 8/1/2016 18:16, "Peter Melnichenko" notifications@github.com escribió:

Can't reproduce, what versions of Lua and LuaRocks do you use?


Reply to this email directly or view it on GitHub
#482 (comment)
.

@wardg32
Copy link

wardg32 commented Jun 15, 2016

FYI the same error here trying to install lua-mosquitto on OpenWRT.

root@OpenWRT:~# luarocks install lua-mosquitto

Error: LuaRocks 2.2.2 bug (please report at https://github.com/keplerproject/luarocks/issues).
/usr/share/lua/5.1/luarocks/deps.lua:159: attempt to compare two table values
stack traceback:
/usr/share/lua/5.1/luarocks/deps.lua:159: in function 'compare_versions'
/usr/share/lua/5.1/luarocks/type_check.lua:175: in function 'check_version'
/usr/share/lua/5.1/luarocks/type_check.lua:269: in function </usr/share/lua/5.1/luarocks/type_check.lua:264>
(tail call): ?
/usr/share/lua/5.1/luarocks/manif_core.lua:28: in function </usr/share/lua/5.1/luarocks/manif_core.lua:21>
(tail call): ?
/usr/share/lua/5.1/luarocks/search.lua:176: in function 'manifest_search'
/usr/share/lua/5.1/luarocks/search.lua:209: in function 'search_repos'
/usr/share/lua/5.1/luarocks/search.lua:285: in function 'find_suitable_rock'
/usr/share/lua/5.1/luarocks/install.lua:189: in function </usr/share/lua/5.1/luarocks/install.lua:161>
(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]: ?
root@OpenWRT:~#

root@OpenWRT:~# luarocks list
Warning: Failed loading manifest for /root/.luarocks/lib/luarocks/rocks: /root/.luarocks/lib/luarocks/rocks/manifest: No such file or directory
Warning: Failed loading manifest for /usr/lib/luarocks/rocks: /usr/lib/luarocks/rocks/manifest: No such file or directory

Running Lua 5.1 and Luarocks 2.2.2. as unfortunately that's what the openwrt package is.

@hishamhm
Copy link
Member

hishamhm commented Jun 16, 2016

@wardg32 can you re-run the command with --verbose and paste the full output? (you may use https://gist.github.com for that)

@wardg32
Copy link

wardg32 commented Jun 16, 2016

Here you go, hope it helps.

@che
Copy link

che commented Jul 17, 2016

On this moment Luarocks (version 2.2.2) does not work for all Lua packages on OpenWRT.

root@OpenWrt:/# lua
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio (double int32)

local m = { __lt = function( o1, o2 ) return 'lt' end, __eq = function( o1, o2 ) return 'eq' end }
t1 = {}
t2 = {}
setmetatable(t1, m)
setmetatable(t2, m)
print(t1 < t2)
stdin:1: attempt to compare two table values
stack traceback:
stdin:1: in main chunk
[C]: ?
print(t1 == t2)
false

On Linux server 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux:
user@server:~$ lua
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio

local m = { __lt = function( o1, o2 ) return 'lt' end, __eq = function( o1, o2 ) return 'eq' end }
t1 = {}
setmetatable(t1, m)
t2 = {}
setmetatable(t2, m)
print(t1 < t2)
true
print(t1 == t2)
true

@daurnimator
Copy link
Member

@che
Copy link

che commented Jul 18, 2016

Thank a lot!

@Onuonga
Copy link

Onuonga commented Sep 9, 2016

Did anyone ever get a way of solving this? It seems from the above post that the version(s) of lua are different. I would not mind following up with the openwrt team and specifically whoever maintains Lua there.

@mpeterv
Copy link
Contributor

mpeterv commented Oct 31, 2016

Looking at the ticket above this is indeed an issue with openwrt and their team knows (the ticket is still open though). Closing as not a luarocks bug.

@mpeterv mpeterv closed this as completed Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants