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

install optional sub-package lua-handler-http - Error #2

Closed
Marketcentric opened this issue Nov 14, 2011 · 2 comments
Closed

install optional sub-package lua-handler-http - Error #2

Marketcentric opened this issue Nov 14, 2011 · 2 comments

Comments

@Marketcentric
Copy link

Hi,
I was able to install all the rockspec packages except the Brimworks' lua-http-parser. When running luarocks I get the following installation errors under Ubuntu 11.04 using LuaRocks 2.0.6:

Using https://github.com/brimworks/lua-http-parser/raw/master/lua-http-parser-scm-0.rockspec... switching to 'build' mode
Cloning into lua-http-parser...
remote: Counting objects: 39, done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 39 (delta 19), reused 14 (delta 5)
Receiving objects: 100% (39/39), 22.13 KiB, done.
Resolving deltas: 100% (19/19), done.
Warning: unmatched variable CMAKE_BUILD_TYPE

Error: LuaRocks 2.0.6 bug (please report at luarocks-developers@lists.sourceforge.net).
/usr/local/share/lua/5.1//luarocks/build/cmake.lua:42: attempt to concatenate field 'CMAKE' (a nil value)
stack traceback:
/usr/local/share/lua/5.1//luarocks/build/cmake.lua:42: in function 'run'
/usr/local/share/lua/5.1//luarocks/build.lua:189: in function </usr/local/share/lua/5.1//luarocks/build.lua:107>
(tail call): ?
(tail call): ?
(tail call): ?
(tail call): ?
[C]: in function 'xpcall'
/usr/local/share/lua/5.1//luarocks/command_line.lua:141: in function 'run_command'
/usr/local/bin/luarocks:23: in main chunk
[C]: ?


I've tried to figure it out on Brimworks GIT repository, but no luck. Any help would be appreciated.
-rj

@Neopallium
Copy link
Owner

This looks like a bug in the latest luarocks (2.0.6). You can workaround the bug by adding a CMAKE variable to the luarocks config.

Here are the variables that I have set in my /etc/luarocks/config.lua:
variables = {
CFLAGS = " -fPIC -march=native -O3 -g -pipe ", -- optimize C modules
CMAKE_BUILD_TYPE = "Release", -- cmake release mode
CMAKE = "cmake", -- You need this one to fix the problem.
}

@Marketcentric
Copy link
Author

Thanks for the help. Actually, I had to add your config mods to /usr/local/etc/luarocks/config.lua to get it to work.

Keep up the great work here! Your Ev'ing of ZMQ and HTTP is fantastic and much needed in the Lua community.

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

2 participants