[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to read or compile a file

From: Daniel Diaz
Subject: Re: Unable to read or compile a file
Date: Fri, 28 May 2021 19:16:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1


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.


Le 5/28/21 à 10:38 AM, Domicile a écrit :
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

[Prev in Thread] Current Thread [Next in Thread]