Subject: Re: Not able to use multithreading features of prolog

From: Jan Wielemaker <[email-masked]>
Date: Wed, 5 Dec 2001 12:40:52 +0100

On Wed, 05 Dec 2001, [email-masked] wrote:
>Hi,
>
>I am not able to use multithreading features of prolog. My OS is Solaris2.7.
>
>I followed the undermentioned procedure for installing the version 4.0.11.
>
>1. After gzip and untar and going to "pl-4.0.11/src", ran "./configure
>--prefix=$HOME/SWIProlog/Prolog-4.0.11"
>2. Ran "gmake".
>3. Ran "gmake install".

The single and multi-threaded binaries are two different programs.  To
build both (advised), proceed as follows

% tar zxvf pl-4.0.11.tar.gz
% cd pl-4.0.11
% mkdir single
% cd single
% ../src/configure
% make
% make install			# this finishes the normal version
% cd ..
% mkdir multi
% ../src/configure --enable-mt
% make
% make install-mt		# this installs pl-mt in the same
				# structure as pl.

If you want to build the packages, act as below.  The --enable-mt
prepares them for multithreaded usage.

% cd ../packages
% ./configure --enable-mt
% make
% make install

The linux RPM from our site is build using this sequence.

	--- Jan