Skip to content
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

ld: library not found for -lssl (this usually means you need to install the development package for libssl) #134

Open
universato opened this issue Nov 4, 2022 · 2 comments

Comments

@universato
Copy link

Hi, what should I do to install icr?
How do I install the install the development package for libssl?

$ sudo make install  
Password:
~/.asdf/shims/shards build 
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 ~/oss/crystals/icr/bin/icr  -rdynamic -L~/.asdf/installs/crystal/1.6.1/embedded/lib -lreadline -L/usr/local/Cellar/libyaml/0.2.5/lib -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 -lgc -L/usr/local/Cellar/libevent/2.1.12/lib -levent -liconv`
@jwoertink
Copy link
Collaborator

Hi, this is most likely due to using asdf as your Crystal manager. I'd recommend just installing crystal directly https://crystal-lang.org/install/ for your OS.

Also, in case you're not aware, Crystal officially has a built-in REPL/Interpreter. You can build Crystal from source and compile with interpreter support, then just use crystal i to enter the REPL.

@universato
Copy link
Author

Thanks!

Indeed, the error was avoided by directly installed Crystal.
And, I can use crystal -i.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants