Error in install step building from source on Ubuntu

Hi

I am trying to (re)build from source on Ubuntu as per SWI-Prolog -- Installation on Linux, *BSD (Unix)

All was fine up until the final step (install):

mike@middleton:~/swipl-devel/build$ ninja install
[40/41] Install the project…
– Install configuration: “PGO”
– Set non-toolchain portion of runtime path of “/home/mike/lib/swipl/bin/x86_64-linux/swipl” to “/home/mike/lib/swipl/lib/x86_64-linux”
– Set non-toolchain portion of runtime path of “/home/mike/lib/swipl/lib/x86_64-linux/libswipl.so.9.3.22” to “/home/mike/lib/swipl/lib/x86_64-linux”
CMake Error at src/cmake_install.cmake:160 (file):
file INSTALL cannot find
“/home/mike/swipl-devel/build/home/library/system.qlf”: No such file or
directory.
Call Stack (most recent call first):
cmake_install.cmake:70 (include)

FAILED: CMakeFiles/install.util
cd /home/mike/swipl-devel/build && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.

Thanks
Mike

Hi Mike,

A lot of stuff has changed recently. AFAIK, all builds fine, but you may need to make sure the build tree is clean and has no dangling old objects. It may also be wise to delete the old installed tree. When using git, provided you have no personal files in the tree, you can clean it using

git clean -xfd
git submodule foreach git clean -xfd

Be aware that this deletes all files not checked into git

You can remove the installed system using

rm -r $(swipl --home)

Please first check swipl --home returns the correct directory!