

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Do the following:
1. The Prolog interpreter pl is installed in /usr/local/pl-4.0.10/src on our Linux system. To run pl , you will have to add the Prolog interpreter to your PATH, which can be achieved by following the instructions below. a. Add the following two lines to your. profile (e.g., add to the end of the file). The first line tells where pl is located and the second line adds the correct directory to your PATH. export PLROOT=/usr/local/pl-4.0.10/src PATH="$PATH:$PLROOT" b. Save your. profile. Logout and log back in to Linux again. 2. To start Prolog, do the following. These instructions assume that you have already performed the necessary setup to use sh , bash , or the ksh (they will not work on csh ). If not, follow the HOWTO Start bash procedure below for setting up and using bash. a. Type the following line to start bash: % exec –bash # % here is taken as the csh prompt. May be # different on your Linux system. b. Create a prolog subdirectory within your 424 subdirectory for all your Prolog programs. To start Prolog, type the following (it’s PL in lower case, not P-one): $ pl # Again $ is taken as the bash prompt. May be # different on your Linux system.