-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc to install lua-http on macos and lua 5.3 #142
Comments
The problem is that it changes somewhat regularly and not in a way that is easily coordinated with the lua-http release cycle:
So I'm not sure what I can do to avoid having potentially outdated instructions around. |
I have absolutely no clue what's up with the openssl situation on macOS to the point where I'm getting a new computer, part of the justification being that I just don't want to deal with it. Unfortunately, it's very much a "per-system" situation. |
Yeah, I actually opened the bug so that people like me (and probably me later) remember this might not be as straightforward as |
One solution (given that you seem to have decided on brew) would be to package lua-http in brew? |
Thanks heaps @octplane ! This issue was very helpful! |
Still does the trick ! Thanks 🙏 ! |
Is there anyone that would like to create/submit a brew package for lua-http? |
Update: if you install openssl now, The brew will install openssl@3 on your machine. And then the LuaRocks will install failed by use openssl@3 and error is: This is workaround on my machine:
|
For anyone coming here in 2022, this is still an issue. This is a workaround on my machine macbook m1 luarocks install http CRYPTO_DIR=/opt/homebrew/opt/[email protected] CRYPTO_INCDIR=/opt/homebrew/opt/[email protected]/include OPENSSL_DIR=/opt/homebrew/opt/[email protected] OPENSSL_INCDIR=/opt/homebrew/opt/[email protected]/include |
openssl 1.1 is quite old at this point. consider using a newer release? |
To make this work with a more recent openssl:
or the default 1.1 luarocks install http CRYPTO_DIR=/opt/homebrew/opt/[email protected] OPENSSL_DIR=/opt/homebrew/opt/[email protected] Although from what I gather 1.1 is still widely used openssl themselves would encourage you to upgrade. from: https://www.openssl.org/source/
With regard to trying to actually improve the situation, during installation one of the steps lists where it was looking for openssl stuff, and does not list the place where homebrew installs the shared openssl things. Error: Failed installing dependency: https://luarocks.org/cqueues-20200726.54-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 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
No file openssl/crypto.h in /usr/local/opt/include Is that a luarocks or a cqueues issue? One of them is clearly unaware of the location where all macOS users will have their include dir, which is a lot of people! I can open something in one of those repos if someone has the answer. For this repo I think the natural thing to do is to either note something in the install section or maybe a troubleshooting that mentions install on macOS requires additional steps. Even if only linking this issue. Installing an http lib is after all fairly common 😅 , and this appears to be the most popular option. At the same time, I'd also say it's fair to do nothing until something is fixed upstream. The lib which depends on openssl should know how to find it, not this lib. Nevertheless, this repo will probably face the most stuck end-users. |
It's a luarocks configuration issue: you'd need to tell luarocks about where |
This is probably a known issue, but there is not clear doc on how to do that correctly:
With
lua 5.3
from brew, the install command that succeeds on my machine is:Thanks for making lua-http!
The text was updated successfully, but these errors were encountered: