0

我刚刚为 Eclipse 安装了 SICStus Prolog 和 SPIDER IDE 插件。SPIDER 是使用更新站点安装的,我在首选项中设置了 SICStus 安装路径并进行了验证。然后我创建了一个新的工作区和一个仅包含以下文件的 Prolog 项目test.pl

test :- write('Hello World!'), nl.

当我编译(菜单:SICStus > 编译 Prolog 代码)时,我在“Toplevel”窗口中收到以下消息:

Restarting Prolog

Unknown option '--spider'.

Usage: /Users/alexraasch/sicstus/bin/sicstus [options] [-- args ...]

Options:


    -f         Fast start. Do not read initialization files.

    -i         Force interactive mode.

    -m         Use maximally compatible memory manager bottom layer.

    -r <file>  Restore <file> after booting.

    -l <file>  Ensure that <file> (containing Prolog code)

               is loaded on startup.

    --goal <goal>  Execute <goal> after loading any files.

    -Xrs       Reduced use of OS-signals (see release notes)

    --help     Show this message and exit.



    -- ...     Pass the rest of the arguments as prolog_flag(argv,X).

    -a ...     Legacy name for --.



Report bugs using http://www.sics.se/sicstus/bugreport/bugreport.html


Process ended with exit value 1

我的版本号是:

  • macOS 10.12.5
  • Java SE 1.8.0_65
  • 日食 4.6.0
  • SICStus 4.0.8
  • 蜘蛛 0.0.64

SICStus 安装是预先构建的安装。

我从未与 SICStus 合作过,因此我们将不胜感激。

4

1 回答 1

1

该版本的 SICStus Prolog 太旧,无法与 SPIDER 一起使用。

您可以从SICStus Prolog 站点下载最新 SICStus Prolog 的评估版。您可以在不卸载任何已有版本的情况下安装它。

于 2017-05-20T07:37:33.090 回答