luarocks openssl
我正在尝试使用以下命令安装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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论