Sysadmin:Software:Prolog

From Earlham CS Department
Jump to navigation Jump to search

Prolog is used for programming languages courses.

Installation

The Prolog instructions are not complicated but they are spread all over the place on the Prolog website. This is the order of execution to install it last time. Recall we run Ubuntu on our servers.

Source: wget http://www.swi-prolog.org/download/stable/src/swipl-7.6.4.tar.gz or most recent version here. Since these are modules, you may want other versions. See this link for information on that.

Then install the prerequisites:

sudo apt-get install \
        build-essential autoconf curl chrpath pkg-config \
        ncurses-dev libreadline-dev libedit-dev \
        libunwind-dev \
        libgmp-dev \
        libssl-dev \
        unixodbc-dev \
        zlib1g-dev libarchive-dev \
        libossp-uuid-dev \
        libxext-dev libice-dev libjpeg-dev libxinerama-dev libxft-dev \
        libxpm-dev libxt-dev \
        libdb-dev \
        libpcre3-dev \
        libyaml-dev \
        openjdk-8-jdk junit

Using sudo or running as root, unzip the tarball, cd swipl-X.Y.Z/src. Then follow the Sysadmin:Environment Modules instructions including the ./configure prefix.