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

Error: execution of command failed with exit status 1 #62

Closed
kukula opened this issue Sep 8, 2023 · 3 comments
Closed

Error: execution of command failed with exit status 1 #62

kukula opened this issue Sep 8, 2023 · 3 comments

Comments

@kukula
Copy link

kukula commented Sep 8, 2023

Hi! Love your work on the framework! Great design decisions!
I've tried to install and run on local, and run into trouble:

$ crystal -v
Crystal 1.9.2 [1908c816f] (2023-07-19)

LLVM: 15.0.7
Default target: aarch64-apple-darwin

$ shards install
Resolving dependencies
Fetching https://github.com/grip-framework/grip.git
Fetching https://github.com/luislavena/radix.git
Fetching https://github.com/crystal-loot/exception_page.git
Fetching https://github.com/sija/backtracer.cr.git
Using radix (0.4.1)
Using backtracer (1.2.2)
Using exception_page (0.3.1)
Using grip (2.0.2)

$ crystal run src/demo.cr
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 exit status 1: cc "${@}" -o /Users/tolik.kukul/.cache/crystal/crystal-run-demo.tmp  -rdynamic -L/Users/tolik.kukul/.asdf/installs/crystal/1.9.2/embedded/lib -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'` -lpcre2-8 -lgc -levent -liconv

I've reinstalled openssl and tried to set the var like they suggest on Crystal website, but still error. Please help! Thank you!

@grkek
Copy link
Member

grkek commented Sep 9, 2023

Seems like you are using the ASDF package manager, it has a lot of issues on Apple machines with the ARM processor, install everything through Homebrew package manager and it should work.

@kukula
Copy link
Author

kukula commented Sep 9, 2023

oh I didn't know that. Thank you @grkek ! worked as a charm.
Does ASDF has problems with Crystal on ARM or in general?

@kukula kukula closed this as completed Sep 9, 2023
@grkek
Copy link
Member

grkek commented Sep 12, 2023

oh I didn't know that. Thank you @grkek ! worked as a charm. Does ASDF has problems with Crystal on ARM or in general?

ARM in general, it has not adapted to it yet

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