You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Michal, I'm trying to install luacrypto by using luarocks in Ubuntu 16.10. I first installed luarocks then I tried running
luarocks install lapis
but I got an error message saying that the luacrypto package couldn't be installed because it couldn't find the evp.h file of openssl.
So, as suggested in the error message, I tried with
luarocks install luacrypto OPENSSL_DIR=/usr/local OPENSSL_LIBDIR=/usr/local/ssl/ lib OPENSSL_INCDIR=/usr/local/ssl/ include
This time I got the following output and error message:
Installing https://rocks.moonscript.org/luacrypto-0.3.2-2.src.rock...
Using https://rocks.moonscript.org/luacrypto-0.3.2-2.src.rock... switching to 'build' mode
gcc -O2 -fPIC -I/usr/include/lua5.1 -c src/lcrypto.c -o src/lcrypto.o -I/usr/local/ssl/include
gcc -shared -o crypto.so -L/usr/local/lib src/lcrypto.o -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/ssl/lib: -lcrypto
/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(obj_dat.o): relocation R_X86_64_PC32 against symbol `obj_cleanup_defer' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld final link failed bad value
collect2: error: ld returned 1 exit status
Error: Build error: Failed compiling module crypto.so
I understand that I should recompile luacrypto with the -fPIC flag? Is that correct? If this is the solution, as I'm not expert about libraries and compilation, could you please let me know how I can recompile luacrypto (that I already downloaded) with this flag?
Note: I'm using openssl 1.0.2k.
Thanks in advance
Stefano
The text was updated successfully, but these errors were encountered:
Hi Michal, I'm trying to install luacrypto by using luarocks in Ubuntu 16.10. I first installed luarocks then I tried running
luarocks install lapis
but I got an error message saying that the luacrypto package couldn't be installed because it couldn't find the evp.h file of openssl.
So, as suggested in the error message, I tried with
luarocks install luacrypto OPENSSL_DIR=/usr/local OPENSSL_LIBDIR=/usr/local/ssl/ lib OPENSSL_INCDIR=/usr/local/ssl/ include
This time I got the following output and error message:
Installing https://rocks.moonscript.org/luacrypto-0.3.2-2.src.rock...
Using https://rocks.moonscript.org/luacrypto-0.3.2-2.src.rock... switching to 'build' mode
gcc -O2 -fPIC -I/usr/include/lua5.1 -c src/lcrypto.c -o src/lcrypto.o -I/usr/local/ssl/include
gcc -shared -o crypto.so -L/usr/local/lib src/lcrypto.o -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/ssl/lib: -lcrypto
/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(obj_dat.o): relocation R_X86_64_PC32 against symbol `obj_cleanup_defer' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld final link failed bad value
collect2: error: ld returned 1 exit status
Error: Build error: Failed compiling module crypto.so
I understand that I should recompile luacrypto with the -fPIC flag? Is that correct? If this is the solution, as I'm not expert about libraries and compilation, could you please let me know how I can recompile luacrypto (that I already downloaded) with this flag?
Note: I'm using openssl 1.0.2k.
Thanks in advance
Stefano
The text was updated successfully, but these errors were encountered: