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
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
Most helpful comment
If
crystal specneedslibxml2-devthen it should be added to the deb package as dependency