On 20 December 2013 17:46, <hguala...@inf.puc-rio.br> wrote: > I am getting a compilation error telling me that the lua.h header is not > being found. This happens both when I try to use luarocks-5.1 and > luarocks-5.2
* What version of LuaRocks are you using? (the latest, 2.1.1?) * What platform? Linux, Mac? * How did you install Lua and LuaRocks? (by hand, distro package manager, Homebrew on Mac?) > Maybe this has to do with it being the 1.0 version of the package? > According to the Luarocks website and the mailing list the latest version > of the package is 1.3 but when I do a "luarocks search bcrypt" it only > shows the 1.0 version. This is odd. Here I get: bin/luarocks search bcrypt Search results: =============== Rockspecs and source rocks: --------------------------- bcrypt 1.3-1 (rockspec) - http://www.luarocks.org/repositories/rocks 1.3-1 (src) - http://www.luarocks.org/repositories/rocks 1.0-1 (rockspec) - http://www.luarocks.org/repositories/rocks 1.0-1 (src) - http://www.luarocks.org/repositories/rocks > This is the output from Luarocks when I run "luarocks install bcrypt": > > ----------- > > Installing > http://www.luarocks.org/repositories/rocks/bcrypt-1.0-1.src.rock... > Using http://www.luarocks.org/repositories/rocks/bcrypt-1.0-1.src.rock... > switching to 'build' mode > Warning: variable CFLAGS was not passed in build_variables [...] > src/main.c:7:17: fatal error: lua.h: No such file or directory > #include <lua.h> > ^ > compilation terminated. > make: *** [bcrypt] Error 1 Not finding lua.h means that either you don't have lua.h at all (eg, you installed lua via a package manager but not the "-dev" package contaning the .h file; unlikely because the LuaRocks installer would have complained) or you have it in a non-default location and the makefile was not made aware of that. The latter case indicates a bug in the rockspec, and the warning message above confirms. I uploaded a revised version of the rockspec, 1.3-2. Please give it a try: luarocks install http://luarocks.org/repositories/rocks/bcrypt-1.3-2.rockspec Thanks for the report! -- Hisham ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers