}

Build fails on debian (libunibilium.so: No such file or directory)

Created:

You wanted to re-build after update the git repo, but you keep getting this error. All the dependencies are installed on my system, I don't know if it's a software problem or mine.

The command

$ make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX:PATH=$HOME/neovim"

The error

[ 89%] Built target lpeg
gcc: error: /home/user/workspace/neovim/.deps/usr/lib/libunibilium.so: No such file or directory
Makefile:71: recipe for target 'libtermkey.la' failed
make[4]: **\* [libtermkey.la] Error 1
make[4]: Leaving directory '/home/jeremie/workspace/neovim/.deps/build/src/libtermkey'
CMakeFiles/libtermkey.dir/build.make:73: recipe for target 'build/src/libtermkey-stamp/libtermkey-install' failed
make[3]: **\* [build/src/libtermkey-stamp/libtermkey-install] Error 2
make[3]: Leaving directory '/home/user/workspace/neovim/.deps'
CMakeFiles/Makefile2:179: recipe for target 'CMakeFiles/libtermkey.dir/all' failed
make[2]: **\* [CMakeFiles/libtermkey.dir/all] Error 2
make[2]: Leaving directory '/home/user/workspace/neovim/.deps'
Makefile:83: recipe for target 'all' failed
make[1]: **\* [all] Error 2
make[1]: Leaving directory '/home/user/workspace/neovim/.deps'
Makefile:70: recipe for target 'deps' failed
make: **\* [deps] Error 2

Solution 1

If you are sure that the lib libunibilium-dev was installed, then try:

bash make distclean && make

Solution 2 (ubuntu, debian, etc)

Install the required lib with the following commands:

bash make distclean && make sudo apt-get install libunibilium-dev