Установщик пакета luarocks не смог найти заголовочный файл для CRYPTO (crypto.h)

Я пытаюсь установить ляпис черезluarocks. Когда я бегуluarocks install lapis, терминал возвращает эту ошибку:

      Warning: falling back to wget - install luasec to get native HTTPS support
Installing https://luarocks.org/lapis-1.9.0-1.src.rock
Missing dependencies for lapis 1.9.0-1:
   luaossl (not installed)
   pgmoon (not installed)

lapis 1.9.0-1 depends on lua (5.4-1 provided by VM)
lapis 1.9.0-1 depends on ansicolors (1.0.2-3 installed)
lapis 1.9.0-1 depends on date (2.2-2 installed)
lapis 1.9.0-1 depends on etlua (1.3.0-1 installed)
lapis 1.9.0-1 depends on loadkit (1.1.0-1 installed)
lapis 1.9.0-1 depends on lpeg (1.0.2-1 installed)
lapis 1.9.0-1 depends on lua-cjson (2.1.0-1 installed)
lapis 1.9.0-1 depends on luaossl (not installed)
Installing https://luarocks.org/luaossl-20220711-0.src.rock

Error: Failed installing dependency: https://luarocks.org/luaossl-20220711-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
  No file openssl/crypto.h in /usr/local/opt/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

У меня установлен openssl (у меня яблочный силикон). Чтобы установить openssl, я просто клонировал репозиторий git , а затем запустил:

./Configure

make

make test

Как предусмотрено вINSTALL.MDфайл. Я думаю, что это проблема, с которой столкнулись несколько других, но нет ответов о том, как ее решить.

1 ответ

Вы только следовали инструкциям в разделе «Сборка OpenSSL»INSTALL.MD. Вы пропустили раздел «Установка OpenSSL», поэтому на самом деле он не установлен. Следуйте им тоже, а затем повторите попытку.

Другие вопросы по тегам