apisix icon indicating copy to clipboard operation
apisix copied to clipboard

bug: luasec 0.9-1 may have caused the compilation to fail

Open Fuchange opened this issue 5 years ago • 2 comments

Issue description

On apisix-dashboard's ci,

apisix master-0 depends on luasec 0.9-1 (not installed)
Installing https://luarocks.org/luasec-0.9-1.src.rock

Error: Failed installing dependency: https://luarocks.org/luasec-0.9-1.src.rock - Could not find header file for OPENSSL
  No file openssl/ssl.h in /usr/local/include
  No file openssl/ssl.h in /usr/include
  No file openssl/ssl.h in /include
You may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command.
Example: luarocks install luasec OPENSSL_DIR=/usr/local

same as apisix commit:5399a31b24

Error: Failed installing dependency: https://luarocks.org/luasec-0.9-1.src.rock - Could not find header file for OPENSSL
  No file openssl/ssl.h in /usr/local/openresty/openssl/include
You may have to install OPENSSL in your system and/or pass OPENSSL_DIR or OPENSSL_INCDIR to the luarocks command.

Environment

  • apisix version (cmd: apisix version): master
  • OS (cmd: uname -a): push ci
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
  • etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to get the info from server-info API):
  • apisix-dashboard version, if have:

Minimal test code / Steps to reproduce the issue

1. 2. 3.

What's the actual result? (including assertion message & call stack if applicable)

cant run luarocks install

What's the expected result?

The confirmation can be passed

Fuchange avatar Feb 01 '21 08:02 Fuchange

Have you installed openresty-openssl-devel or openresty-openssl-dev? See https://github.com/apache/apisix/blob/master/doc/install-dependencies.md

spacewander avatar Feb 01 '21 08:02 spacewander

Well, the dockerfile in APISIX docker need to be updated , too .

gxthrj avatar Feb 01 '21 08:02 gxthrj