ABL-HED icon indicating copy to clipboard operation
ABL-HED copied to clipboard

swipl-prolog install path seems to have changed

Open ZJsheep opened this issue 2 years ago • 0 comments

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.

  1. 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 into cp /usr/lib/swi-prolog/lib/x86_64-linux/libswipl.so $ABL_HOME/src/logic/lib/
  2. 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.

ZJsheep avatar Oct 12 '22 13:10 ZJsheep