I am trying to compile the last development version of Yap Prolog in OSX (Mountain Lion). The first time I tried I saw this message:
##################################################################
# ERROR: Could not find library archive (-larchive). Dropped
# library(archive). Library archive is available from
# http://code.google.com/p/libarchive/
#
# Most Unix/Linux distributions are shipped with binaries. Make
# sure to have the development library installed. E.g.
#
# Debian/Ubuntu/Mint: aptitude install libarchive-dev
# Fedora/... yum install libarchive-devel
# MacOS (Macports): port install libarchive
##################################################################
So I installed libarchive using mac ports as suggested with sudo port install libarchive
.
The installation was successful.
However, after compiling again it keeps saying that libarchive is missing. I tried to find a libarchive file in my system and I found an alias /opt/local/lib/libarchive.dylib
pointing to /opt/local/lib/libarchive.2.dylib
.
Just in case I set the environment variable DYLD_LIBRARY_PATH
to /opt/local/lib
but the problem is still there.
Does someone have a clue how I can solve this ?
/opt/local/include
is correct (lib
was my typo). I've updated the answer with a brief explanation. – peterph Dec 06 '12 at 16:37