HI Jan,
Thank you very much for your valuable input. I tried removing the initialization(cp_server, main) (I am using ClioPatria framework). It loads without issue, and issue cp_server at the prlog prompt and it works.
through debug, it seems stops at the
http_server(http_dispatch,
[ port(Port),
workers(Workers)
| HTTPOptions
]),
Then I tested with ClioPatria - nothing added. The run.pl looks like:
% @HASHBANG@@SWIPL@ @LOADOPTIONS@
:- initialization(cp_server, main).
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This file provides a skeleton startup file. It can be localized by running
% ./configure (Unix)
% Double-clicking win-config.exe (Windows)
After that, the system may be customized by copying or linking
customization files from config-available to config-enabled. See
config-enabled/README.txt for details.
To run the system, do one of the following:
* Running for development
Run ./run.pl (Unix) or open run.pl by double clicking it (Windows)
* Running as Unix daemon (service)
See daemon.pl
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
% Setup search path for cliopatria. We add both a relative and absolute
% path. The absolute path allow us to start in any directory, while the
% relative one ensures that the system remains working when installed on
% a device that may be mounted on a different location.
add_relative_search_path(Alias, Abs) :-
is_absolute_file_name(Abs), !,
prolog_load_context(file, Here),
relative_file_name(Abs, Here, Rel),
assertz(user:file_search_path(Alias, Rel)).
add_relative_search_path(Alias, Rel) :-
assertz(user:file_search_path(Alias, Rel)).
%file_search_path(cliopatria, '@CLIOPATRIA@').
%:- add_relative_search_path(cliopatria, '@CLIOPATRIA@').
file_search_path(cliopatria, '/Project/CP/ClioPatria').
:- add_relative_search_path(cliopatria, '/Project/CP/ClioPatria').
/*******************************
* LOAD CODE *
*******************************/
% Use the ClioPatria help system. May be commented to disable online
% help on the source-code.
:- use_module(cliopatria('applications/help/load')).
% Load ClioPatria itself. Better keep this line.
:- use_module(cliopatria(cliopatria)).
From DOS, run:
swipl-win -g cp_server run.pl.
Then
qsave_program('cp.p').
halt.
Now at DOS,
swipl-win -x cp.p
I will get the error window popup.
Your advise to get more information is appreciated. Sorry our code size is pretty large, plus half the code is done while learning prolog especially the part of managing modules. the cross reference is pretty messy. So that’s all I can dig.
Thanks as always, You are the best.
By the way, the ultimate goal is to compile and qsave cliopatria with our code to a unix daemon service. (I am on windows simply because we are using eclipse with PDT - seems more stable than the Linux counter part).
Nan