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

lyaml dependency inexplicit #60

Open
almereyda opened this issue Oct 17, 2018 · 1 comment
Open

lyaml dependency inexplicit #60

almereyda opened this issue Oct 17, 2018 · 1 comment

Comments

@almereyda
Copy link

almereyda commented Oct 17, 2018

When following the installation instructions, shards fails with

Building: ameba
Error target ameba failed to compile:
/usr/bin/ld: -lyaml kann nicht gefunden werden
collect2: Fehler: ld gab 1 als Ende-Status zurück
Error: execution of command failed with code: 1: `cc "${@}" -o '/home/yala/src/crystallabs/fluence/lib/ameba/bin/ameba'  -rdynamic  -lyaml -lpcre -lm -lgc -lpthread /usr/share/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`

make: *** [Makefile:8: bin/ameba] Fehler 1

This can be circumvented by installing luarocks for your system, and then installing lyaml, i.e. for Fedora 28:

dnf install luarocks libyaml-devel
luarocks --server=http://rocks.moonscript.org install lyaml

Then shards will complete as expected.


Thank you for this beautiful, simple wiki.

@docelic
Copy link
Owner

docelic commented Oct 17, 2018

Hey @almereyda , wonderful, love to hear you like it :)

Yeah, for libyaml, there are a couple C libraries which need to exist on the system, such as libgc, libxml2 and libyaml.

We thought of maybe mentioning this in the install steps, but the thing is that different Linux distributions may or may not install these by default, or these packages may already be installed due to some other packages which the user needed.

So for now we've decided not to mention this part at all. I will see if there exists a simple way in which this note can be included in the README.

Thanks!

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