错误:库`archive'不存在(SWI-prolog)

时间:2014-08-26 04:58:35

标签: prolog package swi-prolog

我正在尝试测试安装包如何与SWI-prolog一起使用,但得到了这个:

?- pack_install('https://github.com/propack/app/archive/app-0.0.1.zip').
%  library(ssl) compiled into ssl 0.00 sec, 43 clauses
%    library(rbtrees) compiled into rbtrees 0.01 sec, 190 clauses
%   library(thread_pool) compiled into thread_pool 0.01 sec, 238 clauses
%   http_wrapper compiled into httpd_wrapper 0.00 sec, 68 clauses
%  thread_httpd compiled into thread_httpd 0.02 sec, 407 clauses
% library(http/http_ssl_plugin) compiled into http_ssl_plugin 0.03 sec, 462 clauses

Create directory for packages
   (1) * /Users/lancejpollard/lib/swipl/pack
   (2)   /usr/local/Cellar/swi-prolog/6.6.6/libexec/lib/swipl-6.6.6/pack
   (3)   Cancel

Your choice? 1
ERROR: library `archive' does not exist
   Exception: (10) prolog_pack:pack_archive_info('/Users/lancejpollard/lib/swipl/pack/Downloads/app-0.0.1.zip', app, _G2391, _G2392) ? creep
?-

有什么想法吗?我通过Homebrew安装swi-prolog,用:

brew install swi-prolog

2 个答案:

答案 0 :(得分:5)

答案就是这样做:

brew install libarchive
brew uninstall swi-prolog
brew install swi-prolog --with-libarchive

答案 1 :(得分:0)

可能是不完整的安装。在最近的SWI-Prolog版本中,至少在当前的开发版本中,您可以通过调用check_installation/0谓词来检查安装。请注意,还有其他方法可以安装SWI-Prolog。您似乎正在使用Mac OS X.如果是这样,您也可以使用MacPorts从源代码安装,或者只是使用可重新定位的应用程序包下载Mac OS X磁盘映像。