Interprolog 和 SWI-Prolog
我已按照此处的说明在我的 Linux 计算机上设置并安装了 interprolog 和 swi prolog :Interprolog Linux 上的 SWI 指令
我已经编辑了 unixVariables.sh 以包含我的计算机上的 java 和 swi-prolog(pl) 可执行文件的路径,并且我的 unixVariables.sh 看起来像:
# This is a typical environment for Linux, see elsewhere for Mac OS X
JAVA_BIN=/usr/lib/jvm/java-6-sun-1.6.0.16/bin
XSB_BIN_DIRECTORY=/home/YOUR_NAME/XSB271/config/i686-pc-linux-gnu/bin
SWI_BIN_DIRECTORY=/usr/local/bin
YAP_BIN_DIRECTORY=/usr/bin
现在当我执行 ./runSWISPListener 时.sh 在 interprolog 文件夹中,我得到的只是:
./runSWISPListener.sh
Welcome xx to InterProlog 2.1.2 on Java 1.6.0_16 (Sun Microsystems Inc.), Linux 2.6.28-11-generic
现在没有其他事情发生,根据说明,应该弹出一个带有 swiprolog 引擎侦听器的 java 窗口。
谁能帮助我吗?我知道它非常抽象,没有人真正使用 interprolog,但感谢任何帮助 谢谢
I have set up and installed both interprolog and swi prolog on my linux machine following the instructions here :Interprolog with SWI instructions on Linux
I have edited the unixVariables.sh to contain the path of java and swi-prolog(pl) executables on my machine and that my unixVariables.sh looks like:
# This is a typical environment for Linux, see elsewhere for Mac OS X
JAVA_BIN=/usr/lib/jvm/java-6-sun-1.6.0.16/bin
XSB_BIN_DIRECTORY=/home/YOUR_NAME/XSB271/config/i686-pc-linux-gnu/bin
SWI_BIN_DIRECTORY=/usr/local/bin
YAP_BIN_DIRECTORY=/usr/bin
Now when I go to do ./runSWISPListener.sh in the interprolog folder, all i get is this:
./runSWISPListener.sh
Welcome xx to InterProlog 2.1.2 on Java 1.6.0_16 (Sun Microsystems Inc.), Linux 2.6.28-11-generic
and now nothing else happens, where as according to the instructions a java window should popup with a swiprolog engine listener.
can anyone help me? I know its quite abstract and no one really uses interprolog but any help is appreciated
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
SWI-Prolog 和 Yap Prolog 支持 JPL(Java-to-Prolog 接口);您可能想使用它: http://www.swi-prolog .org/packages/jpl/java_api/index.html
SWI-Prolog and Yap Prolog support JPL (Java-to-Prolog interface); you may want to use it: http://www.swi-prolog.org/packages/jpl/java_api/index.html
我最终只使用了 XSB prolog,工作得很好
i ended up just using XSB prolog, worked fine
根据下载页面,InterProlog 已知 SWI-Prolog 版本 5.10 存在问题:
(来自 http://www .declarativa.com/interprolog/INSTALL.htm)
尝试早期版本的 SWI-Prolog?
According to the download page, InterProlog has known issues with SWI-Prolog Version 5.10:
(from http://www.declarativa.com/interprolog/INSTALL.htm)
Try an earlier version of SWI-Prolog?