luaossl icon indicating copy to clipboard operation
luaossl copied to clipboard

aarch64 compilation fails

Open bugsyb opened this issue 4 years ago • 1 comments

On aarch64 system (ubuntu focal) following happens:

Installing https://luarocks.org/luaossl-20200709-0.src.rock

Error: Failed installing dependency: https://luarocks.org/luaossl-20200709-0.src.rock - Could not find library file for CRYPTO
  No file libcrypto.a in /usr/lib
  No file libcrypto.a in /usr/lib/x86_64-linux-gnu
  No file libcrypto.so in /usr/lib
  No file libcrypto.so in /usr/lib/x86_64-linux-gnu
  No file matching libcrypto.so.* in /usr/lib
  No file matching libcrypto.so.* in /usr/lib/x86_64-linux-gnu
You may have to install CRYPTO in your system and/or pass CRYPTO_DIR or CRYPTO_LIBDIR to the luarocks command.

It looks like it tries to specifically find x84_64 binaries, but missed existing ones aarch64:

# find /usr -iname "libcrypto*"
/usr/lib/aarch64-linux-gnu/libcrypto.a
/usr/lib/aarch64-linux-gnu/pkgconfig/libcrypto.pc
/usr/lib/aarch64-linux-gnu/libcrypto.so
/usr/lib/aarch64-linux-gnu/libcrypto.so.1.1

Workaround is below, but would be cool to get it automatically discovered: luarocks luaossl 20190731-0 CRYPTO_LIBDIR=/usr/lib/aarch64-linux-gnu/ OPENSSL_LIBDIR=/usr/lib/aarch64-linux-gnu/

bugsyb avatar Jun 22 '21 18:06 bugsyb

This looks like a misconfigured luarocks insallation; rather than anything this repo can address.

Note that this repo also has a make based flow available for compilation+installation.

daurnimator avatar Jun 30 '22 23:06 daurnimator