crystal-lang / crystal_lib

Automatic binding generator for native libraries in Crystal
138 stars 30 forks source link

Error while executing #47

Closed ghost closed 7 years ago

ghost commented 7 years ago

Error:

ubuntu@ubuntu-xenial:/d/github/crystal_lib$ crystal run src/main.cr -- examples/lib_git2.cr
/usr/bin/ld: /opt/crystal/embedded/lib/../lib/libgc.a(os_dep.o): undefined reference to symbol '_end'
//usr/lib/x86_64-linux-gnu/libLLVM-3.5.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc -o "/home/ubuntu/.cache/crystal/crystal-run-main.tmp" "${@}"  -rdyn
amic  `llvm-config-3.6 --ldflags 2>/dev/null || llvm-config-3.5 --ldflags 2>/dev/null || llvm-config --ldflags 2>/dev/nu
ll` -lclang -lpcre -lgc -lpthread /opt/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`

I installed the required libaries that I found in the travis file and I have the latest crystal version that is released for ubuntu.

Sija commented 7 years ago

Duplicate of #25.