Installation touble在Linux上安装SWI Prolog
我遵循SWI Prolog网站的安装说明。我在一台Linux机器上 首先,我将repo和cd克隆到swipl-devel中 接下来,我运行以下命令:Installation touble在Linux上安装SWI Prolog,installation,prolog,swi-prolog,Installation,Prolog,Swi Prolog,我遵循SWI Prolog网站的安装说明。我在一台Linux机器上 首先,我将repo和cd克隆到swipl-devel中 接下来,我运行以下命令: git submodule update --init mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX="${install_under}/swipl" -G Ninja .. ninja 一切进展顺利 接下来,当我运行ctest-j4时,我返回: 98% tests pas
git submodule update --init
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="${install_under}/swipl" -G Ninja ..
ninja
一切进展顺利
接下来,当我运行ctest-j4
时,我返回:
98% tests passed, 1 tests failed out of 66
Total Test time (real) = 15.23 sec
The following tests FAILED:
24 - swipl:xsb/nonmt_tests (Failed)
Errors while running CTest
[12/13] Install the project...
-- Install configuration: "RelWithDebInfo"
-- Set runtime path of "/home/nick/prolog/swipl-devel/build/install_under: command not found/swipl/lib/swipl/bin/x86_64-linux/swipl" to "/home/nick/prolog/swipl-devel/build/install_under: command not found/swipl/lib/swipl/lib/x86_64-linux"
-- Set runtime path of "/home/nick/prolog/swipl-devel/build/install_under: command not found/swipl/lib/swipl/lib/x86_64-linux/libswipl.so.8.3.6" to "/home/nick/prolog/swipl-devel/build/install_under: command not found/swipl/lib/swipl/lib/x86_64-linux"
-- Set runtime path of "/home/nick/prolog/swipl-devel/build/install_under: command not found/swipl/lib/swipl/bin/x86_64-linux/swipl-ld" to "/home/nick/prolog/swipl-devel/build/install_under: command not found/swipl/lib/swipl/lib/x86_64-linux"
CMake Error at src/cmake_install.cmake:509 (EXECUTE_PROCESS):
EXECUTE_PROCESS given unknown argument "command".
Call Stack (most recent call first):
cmake_install.cmake:70 (include)
FAILED: CMakeFiles/install.util
cd /home/nick/prolog/swipl-devel/build && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
然后我成为root用户并运行忍者安装
。以下是我得到的反馈:
98% tests passed, 1 tests failed out of 66
Total Test time (real) = 15.23 sec
The following tests FAILED:
24 - swipl:xsb/nonmt_tests (Failed)
Errors while running CTest
[12/13] Install the project...
-- Install configuration: "RelWithDebInfo"
-- Set runtime path of "/home/nick/prolog/swipl-devel/build/install_under: command not found/swipl/lib/swipl/bin/x86_64-linux/swipl" to "/home/nick/prolog/swipl-devel/build/install_under: command not found/swipl/lib/swipl/lib/x86_64-linux"
-- Set runtime path of "/home/nick/prolog/swipl-devel/build/install_under: command not found/swipl/lib/swipl/lib/x86_64-linux/libswipl.so.8.3.6" to "/home/nick/prolog/swipl-devel/build/install_under: command not found/swipl/lib/swipl/lib/x86_64-linux"
-- Set runtime path of "/home/nick/prolog/swipl-devel/build/install_under: command not found/swipl/lib/swipl/bin/x86_64-linux/swipl-ld" to "/home/nick/prolog/swipl-devel/build/install_under: command not found/swipl/lib/swipl/lib/x86_64-linux"
CMake Error at src/cmake_install.cmake:509 (EXECUTE_PROCESS):
EXECUTE_PROCESS given unknown argument "command".
Call Stack (most recent call first):
cmake_install.cmake:70 (include)
FAILED: CMakeFiles/install.util
cd /home/nick/prolog/swipl-devel/build && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
我不确定我错过了什么。确实出了问题 我从来没有让
swipl:xsb/nonmt_测试失败过(不管它们是什么)
运行上述程序时,是否正确设置了
下的shell变量install\u
例如,我总是在一个目录下安装,比如/usr/local/logic/swipl
,所以这里您必须说
-DCMAKE\u INSTALL\u PREFIX=/usr/local/logic/swipl
或
export install\u under=/usr/local/logic/
在您的情况下(不确定是否需要导出,它会设置一个环境变量)。运行cmake-DCMAKE\u INSTALL\u PREFIX=“/usr/local/logic”-G Ninja..
完成了这个技巧。我的个人构建脚本是hewre: