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

Crystal edge from Snap failed #11511

Closed
mamantoha opened this issue Nov 30, 2021 · 2 comments · Fixed by #11513
Closed

Crystal edge from Snap failed #11511

mamantoha opened this issue Nov 30, 2021 · 2 comments · Fixed by #11513
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:infrastructure

Comments

@mamantoha
Copy link
Contributor

Crystal snap from latest/edge channel fails after today's update.

➜ ~ snap list| grep crystal
crystal            1.3.0-dev                   985    latest/edge    crystal-lang*  classic

➜ ~ crystal -v

  It seems that some libraries are missing in your host.
  The following are the suggested packages to be able to use the whole standard library capabilities.

    $ sudo apt-get install gcc pkg-config git tzdata \
                           libpcre3-dev libevent-dev libyaml-dev \
                           libgmp-dev libssl-dev libxml2-dev

  You can find more detailed information in:

    * https://crystal-lang.org/reference/installation/on_debian_and_ubuntu.html
    * https://github.com/crystal-lang/crystal/wiki/All-required-libraries

/snap/crystal/985/bin/crystal: error while loading shared libraries: libLLVM-10.so: cannot open shared object file: No such file or directory

From latest/stable works fine.

@mamantoha mamantoha added the kind:bug A bug in the code. Does not apply to documentation, specs, etc. label Nov 30, 2021
@Blacksmoke16
Copy link
Member

Blacksmoke16 commented Nov 30, 2021

Probably related to crystal-lang/distribution-scripts#171, should/maybe be resolved via #11509. Can keep this open for now and ensure that PR also solves this snap case before closing.

@cyangle
Copy link
Contributor

cyangle commented Nov 30, 2021

Docker nightly-alpine image is also broken:

$ docker run --rm -it crystallang/crystal:nightly-alpine sh
/ # crystal -v
Error loading shared library libLLVM-10.so: No such file or directory (needed by /usr/bin/crystal)

While nightly-alpine-build image is working:

$ docker run --rm -it crystallang/crystal:nightly-alpine-build sh
/ # crystal -v
Crystal 1.3.0-dev [6eb0bb135] (2021-11-29)

LLVM: 10.0.0
Default target: x86_64-alpine-linux-musl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants