Hi,

Once you have installed gprolog, there is a subdirectory called bin which contains all executables (gplc, pl2wam,...).

You need to add this bin directory to your PATH environment variable.
E.g., under Mac, suppose gprolog is installed in /Users/foo/gprolog :

then test the PATH with

$ PATH=$PATH:/Users/foo/gprolog/bin

then a command like

$ type pl2wam
should return /Users/foo/gprolog/bin/pl2wam

You can now run gprolog and consult a file.

Once the test is OK it is a good idea to add this PATH declaration in your shell's profile file.

Daniel

Le 5/28/21 à 10:38 AM, Domicile a écrit :
Hi
I work on an iMac 10.14.6

I have installed the GNU Prolog.

When I try to compile a file (for example queens.pl) by [queens]. I get the message :
uncaught exception: error(system_error('error trying to execute pl2wam (maybe not found)'),consult/1)

Same if I try to compile by ./gplc queens.pl from the directory where gprolog and gplc are located.

And no INSTALL file found.

Thank you for the reply

Yves Tourmen




Reply via email to