Kong / opentracing-lua

Opentracing Library for Lua
Apache License 2.0
28 stars 9 forks source link

HELP! Could not find header file for CRYPTO #4

Open zhongshan365 opened 2 years ago

zhongshan365 commented 2 years ago

docker install kong:2.6.0 when i want to insatll opentracing(luarocks install opentracing), it error that:

Installing https://luarocks.org/opentracing-0.0.2-0.src.rock Missing dependencies for opentracing 0.0.2-0: luaossl (not installed)

opentracing 0.0.2-0 depends on lua >= 5.1 (5.1-1 provided by VM) opentracing 0.0.2-0 depends on luatz (0.4-1 installed) opentracing 0.0.2-0 depends on luaossl (not installed) Installing https://luarocks.org/luaossl-20200709-0.src.rock

Error: Failed installing dependency: https://luarocks.org/luaossl-20200709-0.src.rock - Could not find header file for CRYPTO No file openssl/crypto.h in /usr/local/include No file openssl/crypto.h in /usr/include No file openssl/crypto.h in /include You may have to install CRYPTO in your system and/or pass CRYPTO_DIR or CRYPTO_INCDIR to the luarocks command. Example: luarocks install luaossl CRYPTO_DIR=/usr/local

But i sure that openssl was installed:

bash-5.1# openssl version -a OpenSSL 1.1.1l 24 Aug 2021 built on: Tue Aug 24 15:52:24 2021 UTC platform: linux-x86_64 options: bn(64,64) rc4(16x,int) des(int) blowfish(ptr) compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -Os -fomit-frame-pointer -g -Wa,--noexecstack -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DNDEBUG -Os -fomit-frame-pointer OPENSSLDIR: "/etc/ssl" ENGINESDIR: "/usr/lib/engines-1.1" Seeding source: os-specific

jerius commented 2 years ago

If you're on Debian/Ubuntu apt-get install libssl-dev should fix it