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

amber watch failed on "Quick Start" #971

Closed
oshybrid opened this issue Nov 2, 2018 · 5 comments
Closed

amber watch failed on "Quick Start" #971

oshybrid opened this issue Nov 2, 2018 · 5 comments

Comments

@oshybrid
Copy link

oshybrid commented Nov 2, 2018

Got this error after starting amber watch (very new to web dev)

$ amber watch
11:43:11 Watcher | (INFO) Watching 18 files (server reload)...
11:43:11 Watcher | (INFO) Building project Pet-tracker...
ld: warning: directory not found for option '-L/opt/brew/lib'
ld: warning: directory not found for option '-L/opt/brew/lib'
ld: warning: directory not found for option '-L/opt/brew/lib'
ld: warning: directory not found for option '-L/opt/brew/lib'
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/bradhutchins/pet-tracker/bin/pet-tracker' -rdynamic -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' -lyaml -lpcre -lgc -lpthread /usr/local/Cellar/crystal/0.26.1_1/src/ext/libcrystal.a -levent -liconv -ldl -L/usr/lib -L/usr/local/lib
11:43:36 Watcher | (INFO) Compile time errors detected. Shutting down...

Using...
MacBook Pro (15-inch, 2016), OSX 10.14

@faustinoaq
Copy link
Contributor

Can you compile a simple crystal program?

Try this:

crystal init app hello
cd hello
shards build
bin/hello

@faustinoaq
Copy link
Contributor

Analyzing your logs, I think this is an openssl issue on macOS, see: crystal-lang/crystal#6875

@oshybrid
Copy link
Author

oshybrid commented Nov 3, 2018

Did the trick. Thank you

@elorest
Copy link
Member

elorest commented Nov 10, 2018

Thanks.

@elorest elorest closed this as completed Nov 10, 2018
@imkgautam
Copy link

Try this:
echo 'export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig' >> ~/.bash_profile

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

4 participants