Re: PAC library for develop version available
Kuniaki Mukai <[email protected]> Sun, 28 Sep 2014 03:04:09 +0900
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
Hi, I met an error message while "pack_install"-ing on SWI-Prolog V7.22 via GIT on Mac OSX Mavericks: % Contacting server at http://www.swi-prolog.org/pack/query ... ok Install [email protected] from https://github.com/samer-- /prolog/raw/master/callgraph/release/callgraph-0.3.2.tgz Y/n? dyld: lazy symbol binding failed: Symbol not found: _archive_read_support_filter_all Expected in: flat namespace Rembering similar troubles in the past, I have edited the build file of the pl-develop directory so that LIBRARY_PATH and CPATH does not refer to /usr/lib : # On MacOS you need this to get some libraries from Homebrew (not Macports) if [ "`uname`" = Darwin ]; then export LIBRARY_PATH=/usr/local/Cellar/readline/6.2.4/lib:/usr/local/Cellar/gmp/5.1.3/lib:/usr/local/Cellar/libarchive/3.1.2/lib export CPATH=/usr/local/Cellar/gmp/5.1.3/include:/usr/local/Cellar/readline/6.2.4/include:/usr/local/Cellar/libarchive/3.1.2/include After this change of the build file, the pack_install has worked fine. Excluding "/usr/lib/" seems a typical workaround for Mac OSX SWI-Prolog users. I am not sure on the exact reason why such editing works, but I hope this note will be useful for mac prolog users who is suffering from similar trouble. Kuniaki > On Sep 27, 2014, at 4:15, Michael Hendricks <[email protected]> wrote: > >> On Sep 26, 2014 10:42 AM, "Kuniaki Mukai" <[email protected]> wrote: >>> I have uploaded PAC library at >>> >>> http://web.sfc.keio.ac.jp/~mukai/pac-lite.zip >> >> This sounds very useful. It would be great if you could bundle this up as a >> package as described at http://swi-prolog.org/howto/Pack.html > > Thank you for the pointer. Having visited the page, I think it is > one of the most useful and necessary information for me now. > I will learn and try the packaging system after your advice. > > Kuniaki >