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.
- Install git (example for Debian like systems: sudo apt-get install git).
- Get the source code:
- git clone git://git.code.sf.net/p/yap/yap-6.3
- cd yap-6.3
- This point is optional if you need other modules compatible with SWI-Prolog:
- git submodule init
- git submodule update
- 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)
- 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.
- 32 bit architecture: https://dl.dropboxusercontent.com/u/1141735/yap_6.3-1_i386.deb
- 64 bit architecture: https://dl.dropboxusercontent.com/u/1141735/yap_6.3-1_amd64.deb
Hello, thank you for sharing.
Dropbox links for the debian packages seems to be not reachable anymore.