luarocks openssl

发布于 2025-01-24 19:50:33 字数 1817 浏览 0 评论 0原文

我正在尝试使用以下命令安装luajwt:

$ sudo luarocks install --server=http://rocks.moonscript.org luajwt

但是不幸的是,我会收到以下错误:

Installing http://rocks.moonscript.org/luajwt-1.3-4.src.rock
Missing dependencies for luajwt 1.3-4:
   luacrypto >= 0.3.2-1 (not installed)
   lua-cjson >= 2.1.0 (not installed)
   lbase64 >= 20120807-3 (not installed)

luajwt 1.3-4 depends on lua >= 5.1 (5.4-1 provided by VM)
luajwt 1.3-4 depends on luacrypto >= 0.3.2-1 (not installed)
Installing http://rocks.moonscript.org/luacrypto-0.3.2-2.src.rock

Error: Failed installing dependency: http://rocks.moonscript.org/luacrypto-0.3.2-2.src.rock - Could not find header file for OPENSSL
  No file openssl/evp.h in /usr/local/include
  No file openssl/evp.h in /usr/include
  No file openssl/evp.h in /include
  No file openssl/evp.h in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
  No file openssl/evp.h in /usr/local/opt/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 luacrypto OPENSSL_DIR=/usr/local

我尝试通过使用Luarocks安装OpenSSL来解决该问题,但是我遇到了相同的错误:

➜ Luarocks install openssl

Installing https://luarocks.org/openssl-0.8.2-1.src.rock

Error: Could not find header file for OPENSSL
  No file openssl/evp.h in /usr/local/include
  No file openssl/evp.h in /usr/include
  No file openssl/evp.h in /include
  No file openssl/evp.h in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
  No file openssl/evp.h in /usr/local/opt/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 openssl OPENSSL_DIR=/usr/local

如何避免此错误?

I am trying to install luajwt using the following command:

$ sudo luarocks install --server=http://rocks.moonscript.org luajwt

But unfortunately, I receive the following error:

Installing http://rocks.moonscript.org/luajwt-1.3-4.src.rock
Missing dependencies for luajwt 1.3-4:
   luacrypto >= 0.3.2-1 (not installed)
   lua-cjson >= 2.1.0 (not installed)
   lbase64 >= 20120807-3 (not installed)

luajwt 1.3-4 depends on lua >= 5.1 (5.4-1 provided by VM)
luajwt 1.3-4 depends on luacrypto >= 0.3.2-1 (not installed)
Installing http://rocks.moonscript.org/luacrypto-0.3.2-2.src.rock

Error: Failed installing dependency: http://rocks.moonscript.org/luacrypto-0.3.2-2.src.rock - Could not find header file for OPENSSL
  No file openssl/evp.h in /usr/local/include
  No file openssl/evp.h in /usr/include
  No file openssl/evp.h in /include
  No file openssl/evp.h in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
  No file openssl/evp.h in /usr/local/opt/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 luacrypto OPENSSL_DIR=/usr/local

I tried to resolve that issue by installing OpenSSL with luarocks but I am getting the same error:

➜ Luarocks install openssl

Installing https://luarocks.org/openssl-0.8.2-1.src.rock

Error: Could not find header file for OPENSSL
  No file openssl/evp.h in /usr/local/include
  No file openssl/evp.h in /usr/include
  No file openssl/evp.h in /include
  No file openssl/evp.h in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
  No file openssl/evp.h in /usr/local/opt/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 openssl OPENSSL_DIR=/usr/local

How can I avoid this error?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文