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: amberframework installation fails under crystal installed with asdf-crystal #807

Closed
zenny opened this issue May 21, 2018 · 2 comments

Comments

@zenny
Copy link

zenny commented May 21, 2018

Hi,

With crystal installed with asdf-crystal (https://github.com/marciogm/asdf-crystal) plugin, amber fails to build at 'shards install':

Dependencies are satisfied
Building: ameba
Error target ameba failed to compile:
/usr/bin/ld: cannot find -levent
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o '/DATA/zenny/Downloads/gitrepos/crystal-projects/amber-stable/lib/ameba/bin/ameba'  -rdynamic  -lyaml -lpcre -lm -lgc -lpthread /home/zenny/.asdf/installs/crystal/0.24.2/share/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`

Makefile:7: recipe for target 'build' failed
make: *** [build] Error 1

Even created a request to asdf-crystal developer to create a similar plugin at asdf-community/asdf-crystal#13.

Cheers,
/z

@faustinoaq
Copy link
Contributor

Hi @zenny

Try shards install --production and shards build -v

Then copy bin/amber to your /usr/local/bin path

@robacarp
Copy link
Member

I would guess this is a problem with the crystal asdf plugin. The error is here:

/usr/bin/ld: cannot find -levent which is a problem with how the Crystal dependency on libevent is specified.

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

No branches or pull requests

3 participants