ABL-HED
ABL-HED copied to clipboard
swipl-prolog install path seems to have changed
I used ppa to install swipl on Ubuntu 22.04 today, but there is nothing in /usr/local/lib/swipl/
. After searching I found it is in /usr/lib/swi-prolog/
instead. I suppose this is a change in the apt behavior or something?
To adapt to this, two places should be modifed.
- when setting environment variables, the command
cp /usr/local/lib/swipl/lib/x86_64-linux/libswipl.so $ABL_HOME/src/logic/lib/
should be changed intocp /usr/lib/swi-prolog/lib/x86_64-linux/libswipl.so $ABL_HOME/src/logic/lib/
- in
setup.py
, line 3 - 4 should be changed into
# swipl_include_dir = '/usr/local/lib/swipl/include'
# swipl_lib_dir = '/usr/local/lib/swipl/lib/x86_64-linux'
swipl_include_dir = '/usr/lib/swi-prolog/include'
swipl_lib_dir = '/usr/lib/swi-prolog/lib/x86_64-linux/'
After the modification it can now generate equations on ubuntu 22.04.