admin管理员组文章数量:1279015
I installed cryptominisat using the following command (given at ):
sudo apt-get install build-essential cmake libgmp-dev
# not required but very useful
sudo apt-get install zlib1g-dev
git clone
cd cadical
git checkout mate-only-libraries-1.8.0
./configure
make
cd ..
git clone
cd cadiback
git checkout mate
./configure
make
cd ..
git clone
cd cryptominisat
mkdir build && cd build
cmake ..
make
sudo make install
sudo ldconfig
It was installed without any error.
However, later on when I ran the code under anaconda environment, e.g., conda activate sage && sage -n jupyter
I am getting the following issues:
FeatureNotPresentError: pycryptosat is not available.
Importing Solver failed: /home/satyam/anaconda3/envs/sage/lib/python3.12/site-packages/pycryptosat.cpython-312-x86_64-linux-gnu.so: undefined symbol: _ZN5CMSat6Solver12oracle_vivifERb
No equivalent system packages for pip are known to Sage.
Earlier I resolved same issue, by exploring either ChatGpt or some answer on internet. As i remember, first i deleted all files related to cryptominisat i.e., at the location /usr/local/bin/, /usr/local/bin/, /usr/local/include, /usr/local/lib/, /usr/local/share/
. Aterwards, I do not remember the process. I also want to test my program with many SAT solver. So removing all files of minisat each times I install a new SAT solver, seems too lengthy.
- Is there any way to resolve the above error?
- If I want to install many SAT solver (just for performance comparison) can I create an environment where packages does not clash with each other?
Update : 1st problem got resolved. I followed the following steps:
- Remove all the files related to minisat/cryptominisat.
sudo rm -rf /usr/local/bin/minisat*
sudo rm -rf /usr/local/lib/minisat*
sudo rm -rf /usr/local/include/minisat*
sudo rm -rf /usr/local/share/minisat*
- Use anaconda-navigator to install cryptominisat
It will show the conflict if any. In my case, it was that the current available version of cryptominisat was not compatible with the latest version of Python i.e. python 3.12 So I created a new environment and installed using ananconda-navigator
本文标签: linuxUndefined symbol error while installing cryptominisatStack Overflow
版权声明:本文标题:linux - Undefined symbol error while installing cryptominisat - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741301762a2371128.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论