Hi,
Past year I had no time to play with Prolog but today I finally found time to get back to work on a project I had started earlier.
I was still using a Swipl version that was over a year old. Updating Swipl did not work because some certificates were no longer recognized. So I decided to download and install the latest version of Swipl (threaded, 64 bits, version 9.3.7-47-g1ff28598f) on my Fedora 40 installation.
While compiling and installing, I saw no error messages but after I started my project with swipl load.pl
I got this error message:
ERROR: /home/bengbers/lib/swipl/library/http/thread_httpd.pl:54:
ERROR: Exported procedure socket:tcp_connect/2 is not defined
ERROR: /home/bengbers/lib/swipl/library/pldoc/doc_index.pl:54:
ERROR: module/2: No permission to redefine module `pldoc_http’ (Already loaded from /home/bengbers/lib/swipl/library/ext/pldoc/doc_http.pl)
Warning: /home/bengbers/lib/swipl/library/ext/pldoc/doc_index.pl:54:
Warning: Goal (directive) failed: pldoc_index:use_module(library(doc_http),)
After adding :- use_module(library(doc_http),[]).
to load.pl, I now get the same error but with these lines added:
ERROR: /home/bengbers/Mercurial/Prolog/DrawGraph_experiment/load.pl:5:
ERROR: load_files/2: No permission to load source ‘/home/bengbers/lib/swipl/library/doc_http.pl’ (Non-module file already loaded into module pldoc_index; trying to load into user)
What should I do?
Ben
EDIT
I installed all the dependenceis (it showed that some were missing) and reinstalled swipl.
After examination of load.pl, it showed that the error was caused by this line:
:-doc_server(4000).
After deleting that line, I could restart swipl without getting errors.
But now when trying to edit a file, I get this error:
?- ERROR: /home/bengbers/lib/swipl/xpce/prolog/lib/emacs/language_mode.pl:40:
ERROR: Exported procedure socket:tcp_connect/2 is not defined
What now?
Ben