[Attempto] make_exe.sh

Kaarel Kaljurand kaljurand at gmail.com
Thu Mar 5 13:48:24 CET 2009


Hi Juri,

On Thu, Mar 5, 2009 at 11:21 AM, Juri Luca De Coi <decoi at l3s.de> wrote:
>
> Now the generated "ape.exe" file seems to work. However during the
> generation process I still get a couple of errors (cf. attached trace).
>
> -bash: swipl: command not found
> -bash: swipl: command not found

This means that make_exe.sh first tried to use 'swipl' but such an
executable was not found.

> %  prologfeatures compiled into prologfeatures 0.00 sec, 14,172 bytes
> Reading "sorts.fit"
> Reading "grammar.fit"
[...]

This means that make_exe.sh successfully found 'pl' and used that to
compile the sources.

> ERROR: (/home/zerr/apache-tomcat-6.0.14/webapps/ape/ape.pl:374):
>        source_sink `library(http/http_dispatch)' does not exist
> Warning: (/home/zerr/apache-tomcat-6.0.14/webapps/ape/ape.pl:374):
>        Goal (directive) failed: user:use_module(library(http/http_dispatch))
> %   http_client compiled into http_client 0.00 sec, 16,792 bytes
> %    library(mime) compiled into mime 0.00 sec, 1,516 bytes
> %   http_mime_plugin compiled into http_mime_plugin 0.01 sec, 3,964 bytes
> %  library(http/http_parameters) compiled into http_parameters 0.01 sec,
> 29,872 bytes
> ERROR: (/home/zerr/apache-tomcat-6.0.14/webapps/ape/ape.pl:383):
>        catch/3: Undefined procedure: http_handler/3
> Warning: (/home/zerr/apache-tomcat-6.0.14/webapps/ape/ape.pl:383):
>        Goal (directive) failed: user:http_handler(/, ape, [])

These errors might mean that you don't have the http-package installed.
The APE download page (http://attempto.ifi.uzh.ch/site/downloads/) says that

"""In order to use APE, you must install SWI-Prolog and its packages
(minimally: clib, sgml and http) first. Recent versions of SWI-Prolog
(5.6.46 and higher) should be OK."""

You can get away with not installing the http-package because this is only
needed if you run APE as an HTTP service (as "./ape.exe -httpserver").
So for your purposes, these error messages are harmless.

But I think it's a good idea to update your SWI-Prolog version to
higher or equal
than 5.6.46 (why not even the latest, v5.7.7).
APE might contain predicate calls that don't work in earlier version.

--
kaarel


More information about the attempto mailing list