Error while executing
Opened this issue · 1 comments
Deleted user commented
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.