-
Notifications
You must be signed in to change notification settings - Fork 40
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
icr on Mac Mojave #110
Comments
Do you have this set?
|
not sure… should probably let you know i’m a noob and only been coding Ruby
for >1year
…On Fri, Aug 23, 2019 at 5:37 PM Jeremy Woertink ***@***.***> wrote:
Do you have this set?
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#110?email_source=notifications&email_token=AJAQ75KGE5WRBL5HYLLQBD3QGBRA3A5CNFSM4IPEGNL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5BPUOQ#issuecomment-524483130>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJAQ75L5RIU552O5C7WNBL3QGBRA3ANCNFSM4IPEGNLQ>
.
|
just run that in console?
On Fri, Aug 23, 2019 at 5:37 PM Brandon Goodman <brandongoodman615@gmail.com>
wrote:
… not sure… should probably let you know i’m a noob and only been coding
Ruby for >1year
On Fri, Aug 23, 2019 at 5:37 PM Jeremy Woertink ***@***.***>
wrote:
> Do you have this set?
>
> export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#110?email_source=notifications&email_token=AJAQ75KGE5WRBL5HYLLQBD3QGBRA3A5CNFSM4IPEGNL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5BPUOQ#issuecomment-524483130>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AJAQ75L5RIU552O5C7WNBL3QGBRA3ANCNFSM4IPEGNLQ>
> .
>
|
Ah. Well then welcome! This env var is a little strange. It's more of a crystal thing than it is a ICR thing. Check this out. Just open up your
Then restart your terminal, and 🤞 hope that works. If not, then we can try something else. |
ok I think I did what you’re asking
I’m not real good with the terminal yet honestly
I did:
$ cd ~/
$ open -e .bash_profile
added the line you sent to the bottom, (I only have 2 other lines in that
file)
restarted terminal
navigated to my firstapp (my crystal app name)
$ cd icr
$ make
then get same errors
Sorry, but I have to go step by step as I don’t want to waste your time.
…On Fri, Aug 23, 2019 at 5:40 PM Jeremy Woertink ***@***.***> wrote:
Ah. Well then welcome! This env var is a little strange. It's more of a
crystal thing than it is a ICR thing. Check this out
<https://crystal-lang.org/reference/installation/on_mac_osx_using_homebrew.html>
.
Just open up your ~/.bash_profile, and add this to the bottom.
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
Then restart your terminal, and 🤞 hope that works. If not, then we can
try something else.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#110?email_source=notifications&email_token=AJAQ75PZ2C4Q6EGRX3MTC3DQGBROPA5CNFSM4IPEGNL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5BPZNY#issuecomment-524483767>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJAQ75IU6BPJZSFBN2QSQUTQGBROPANCNFSM4IPEGNLQ>
.
|
It's all good. If you get stuck, come hop in the chat https://gitter.im/crystal-lang/crystal someone can help walk you through it. Then if there is an actual bug, we can get a good idea on what it is and how to fix it. |
I'm getting the same error even with ➜ icr git:(master) sudo make install
/usr/local/bin/shards build --release
Dependencies are satisfied
Building: icr
Error target icr failed to compile:
ld: library not found for -lssl (this usually means you need to install the development package for libssl)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `cc "${@}" -o '/Users/andrey/projects/icr/bin/icr' -rdynamic -lreadline -lyaml -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` -lpcre /usr/local/Cellar/crystal/0.31.1/embedded/lib/libgc.a -lpthread /usr/local/Cellar/crystal/0.31.1/src/ext/libcrystal.a -levent -liconv -ldl -L/usr/local/Cellar/crystal/0.31.1/embedded/lib -L/usr/lib -L/usr/local/lib`
make: *** [build] Error 1 Some other outputs that might be useful ➜ icr git:(master) echo $PKG_CONFIG_PATH
/usr/local/opt/openssl/lib/pkgconfig
➜ icr git:(master) command -v pkg-config > /dev/null && pkg-config --libs libssl
-L/usr/local/Cellar/openssl/1.0.2t/lib -lssl
➜ icr git:(master) command -v pkg-config > /dev/null && pkg-config --libs libcrypto
-L/usr/local/Cellar/openssl/1.0.2t/lib -lcrypto So it seems like the right linking but it still doesn't work. I've already tried reinstalling the crystal compiler and running it one more time. |
I'm running into this issue on macOS Mojave 10.14.16 btw |
This is related to crystal-lang/crystal#6875 |
Can be closed it seems. |
When trying to build or install I get errors, package is installed and reinstalled.
The text was updated successfully, but these errors were encountered: