Crystal: libxml2-dev is a dependency that is missing for the .deb package

Created on 25 Apr 2018  路  3Comments  路  Source: crystal-lang/crystal

crystal spec command throws this error:

 crystal spec
/usr/bin/ld: cannot find -lxml2
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o '/home/j/.cache/crystal/crystal-run-spec.tmp'  -rdynamic  -lxml2 -lpcre -lm -lgc -lpthread /usr/share/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`

After the installation of libxml2-dev it works

I guess it a missing dependency

duplicate

Most helpful comment

If crystal spec needs libxml2-dev then it should be added to the deb package as dependency

All 3 comments

If crystal spec needs libxml2-dev then it should be added to the deb package as dependency

The proposed solution is to actually remove the dependency. Duplicate of #5662

Yeha it's a duplicate, @evandrojr we can close this issue and follow up at #5662

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asterite picture asterite  路  60Comments

farleyknight picture farleyknight  路  64Comments

HCLarsen picture HCLarsen  路  162Comments

chocolateboy picture chocolateboy  路  87Comments

asterite picture asterite  路  70Comments