Crystal cannot open shared object file

Today I upgraded my Ubuntu to 18.04.

Compiling a file with Crystal gives me the following error:


    /root/.cache/crystal/ error while loading shared libraries: cannot open shared object file: No such file or directory

The library in question, has been superseded by => /usr/lib/x86_64-linux-gnu/

Crystal is of course aware of this and will link against the new shared library; unfortunately there are still cached files in the directory.

Therefore removing the cached files should do the trick:

rm –r /root/.cache