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

Fails to build on macOS #93

Closed
martinffx opened this issue Mar 5, 2018 · 2 comments
Closed

Fails to build on macOS #93

martinffx opened this issue Mar 5, 2018 · 2 comments

Comments

@martinffx
Copy link

I've installed the latest Crystal via homebrew:

crystal -v
Crystal 0.24.1 (2018-01-27)

LLVM: 5.0.1
Default target: x86_64-apple-macosx

And have installed all the required libraries:

xcode-select --install
brew install \
  bdw-gc \
  gmp \
  libevent \
  libxml2 \
  libyaml \
  llvm
brew link llvm --force

And am getting the following error when running make:

$ make
/usr/local/bin/crystal build --release --no-debug -o bin/icr src/icr/cli.cr
Package libssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libssl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libssl' found
Package libcrypto was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcrypto.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcrypto' found

How do I get the required openssl libs into my PKG_CONFIG_PATH path?

@jwoertink
Copy link
Collaborator

I have this in my .bash_profile

export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig

@veelenga
Copy link
Member

Relates to crystal-lang/crystal#4745.

@jwoertink I was able to reproduce it locally and can confirm your comment solves the issue.

Thank you.

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

3 participants