I have a (slightly outdated) fork of bcrypt that uses LuaRocks's builtin
build instead of the makefile, it should cleanly install install on most
systems. https://github.com/leafo/luabcrypt

If this works for you I can submit it back to the original package:

To test it out you can run:

luarocks install
https://raw.github.com/leafo/luabcrypt/master/rockspec/bcrypt-scm-1.rockspec


On Fri, Dec 20, 2013 at 11:46 AM, <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
>
> 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 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
> make -C lib/bcrypt
> make[1]: Entering directory
> `/tmp/luarocks_bcrypt-1.0-1-6592/lua-bcrypt/lib/bcrypt'
> gcc -c -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual
> -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wundef -Wpointer-arith
> -O2 -fomit-frame-pointer -funroll-loops -fPIC crypt_blowfish.c
> gcc -c x86.S
> gcc -c -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual
> -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wundef -Wpointer-arith
> -O2 -fomit-frame-pointer -funroll-loops -fPIC crypt_gensalt.c
> gcc -c -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual
> -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wundef -Wpointer-arith
> -O2 -fomit-frame-pointer -funroll-loops -fPIC wrapper.c
> make[1]: Leaving directory
> `/tmp/luarocks_bcrypt-1.0-1-6592/lua-bcrypt/lib/bcrypt'
> gcc -o bcrypt.so src/main.c lib/bcrypt/crypt_blowfish.o lib/bcrypt/x86.o
> lib/bcrypt/crypt_gensalt.o lib/bcrypt/wrapper.o -O2 -shared -fPIC
> -fomit-frame-pointer -funroll-loops -lcrypto -Ilib/bcrypt -Wall -Wextra
> -Werror -Wbad-function-cast -Wcast-align -Wcast-qual -Wstrict-prototypes
> -Wshadow -Wundef -Wpointer-arith
> src/main.c:7:17: fatal error: lua.h: No such file or directory
>  #include <lua.h>
>                  ^
> compilation terminated.
> make: *** [bcrypt] Error 1
>
> Error: Build error: Failed building.
>
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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

Reply via email to