Skip to content

Instantly share code, notes, and snippets.

@mdip
Last active April 24, 2022 10:21
Show Gist options
  • Save mdip/caab58b5b329ff02d819 to your computer and use it in GitHub Desktop.
Save mdip/caab58b5b329ff02d819 to your computer and use it in GitHub Desktop.
YAP Installation

YAP Installation

Make your own YAP build

This is a short tutorial to build YAP Prolog from latest development source code. The following instructions have been tested on Debian GNU/Linux 8.

  1. Install git (example for Debian like systems: sudo apt-get install git).
  2. Get the source code:
    • git clone git://git.code.sf.net/p/yap/yap-6.3
    • cd yap-6.3
  3. This point is optional if you need other modules compatible with SWI-Prolog:
    • git submodule init
    • git submodule update
  4. Build the program: this will be a vanilla setup (if you want to customize your build, see at http://www.dcc.fc.up.pt/~vsc/Yap/documentation.html#Install):
    • ./configure
    • make
    • sudo make install (optional)
  5. If the configure phase and the make phase have been accomplished without errors you can execute YAP:
    • ./yap if you haven't run make install
    • yap if you have installed YAP in your system using make install

####Warning On GNU/Linux be sure to have installed package like libreadline6-dev, libreadline-dev or something like readline-dev (there are different names, it depends on which distribution you are using). If you get some errors during the make phase you could try to build YAP without readline:

  • make clean
  • ./configure --with-readline=no
  • make

Disabling the GNU readline library you will not be able to interact with the command-line as you do, for instance, in Bash (command-line history and manipulations). Otherwise you could fix the source code and try to compile it with readline support.

Download .deb packages

@gokhansolak
Copy link

Hello, thank you for sharing.
Dropbox links for the debian packages seems to be not reachable anymore.

@dunatotatos
Copy link

The code is uploaded on github: https://github.com/vscosta/yap-6.3

@pierulohacker
Copy link

Hello, executing the make command I get the message "no rule to generate the objective H/dglobals.h
How can I solve the problem?

@mdip
Copy link
Author

mdip commented Oct 27, 2019

Hello, executing the make command I get the message "no rule to generate the objective H/dglobals.h
How can I solve the problem?

Hi, maybe you should use the new source code on https://github.com/vscosta/yap-6.3.

Take a look also at: https://github.com/vscosta/yap-6.3.

Anyway I will try to compile the new source code for Debian-like distros and I'll let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment