参考网址:https://github.com/stp/stp
stp的默认求解器是minisat,而Cryptominisat是stp的另外一个求解器。
在安装STP环境后可采取下面的方式安装Cryptominisat,
- step1:Cryptominisat在linux系统下的安装流程如下:
$ git clone https://github.com/msoos/cryptominisat
$ cd cryptominisat
$ mkdir build && cd build
$ cmake ..
$ cmake --build .
$ sudo cmake --install .
$ command -v ldconfig && sudo ldconfig
step2:添加环境变量(类似Gurobi在linux系统下安装后添加环境变量的方法)
/home/****/cryptominisat/build/cryptominisat5
添加的路径是cryptominisat5的绝对路径(图示的图标的路径),使得可以更便捷的调用cryptominisat5。
注:打开文件所在位置,然后点击“在终端打开”,输入指令:pwd,即可查看文件的绝对路径