-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Set PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig for the Crystal programming language #47515
Comments
This seems expected. OpenSSL is deliberately keg-only as it might conflict with the system OpenSSL. This caveat is documented when you install OpenSSL:
However given how Crystal is used in comparison to C etc., I can understand how this behaviour may surprise some in this particular case since you aren't explicitly compiling against OpenSSL directly - it's something internal Crystal does. Note though that Homebrew doesn't really have any involvement on how it behaves at runtime so has no control of |
@Bo98 would it be acceptable to have a wrapper script that will by default set the Although Crystal support adding in the compiler compile time a fixed path to look up libraries my understanding is that that will not play nice with customs location of homebrew since the bottle will have an invalid path in this use cases. Are there any suggestions/preference regarding how a wrapper script may have useful defaults but the user will be able to override them?
Are you aware of similar stories in other formulas in order to not reinvent the wheel? |
For example wrapper env scripts, search up |
If macos has a system openssl, why is it not being found by |
I don't know but it's incredibly outdated and you really don't want to use it. 0.9.8 or something. It also doesn't have a pkg-config file or anything like that. |
Okay, agree this is the best fix then. |
We can discuss this more in a pull request since it's unclear to me what you want to change (and homebrew policy doesn't allow for change requests in issues) |
brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link?brew gist-logs
didn't work: ranbrew config
andbrew doctor
and included their output with your issue?CC @bcardiff
What you were trying to do (and why)
I was trying to run the
crystal
binary for the Crystal programming language.What happened (include command output)
Command output
What you expected to happen
I expected to be able to use crystal without needing to manually set the
PKG_CONFIG_PATH
for OpenSSL.Step-by-step reproduction instructions (by running
brew install
commands)Workaround
From crystal-lang/crystal#6875 (comment):
Setting this
PKG_CONFIG_PATH
variable (e.g. in my~/.bash_profile
) will fix this issue:What is the best way to update the crystal brew package so that this manual step is no longer necessary?
References
The text was updated successfully, but these errors were encountered: