Re: Unable to read or compile a file
Daniel Diaz <[email protected]> Fri, 28 May 2021 19:16:43 +0200
| Newsgroups | gmane.comp.gnu.prolog.bugs |
|---|---|
| Message-ID | <[email protected]> |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<div class="moz-cite-prefix">Hi,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Once you have installed gprolog, there
is a subdirectory called bin which contains all executables (gplc,
pl2wam,...).<br>
</div>
<div class="moz-cite-prefix"><br>
<div class="moz-cite-prefix">You need to add this bin directory to
your PATH environment variable. <br>
</div>
<div class="moz-cite-prefix">E.g., under Mac, suppose gprolog is
installed in /Users/foo/gprolog :</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">then test the PATH with</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">$ PATH=$PATH:/Users/foo/gprolog/bin</div>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">then a command like</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">$ type pl2wam</div>
<div class="moz-cite-prefix">should return
/Users/foo/gprolog/bin/pl2wam</div>
<p>You can now run gprolog and consult a file.</p>
<p>Once the test is OK it is a good idea to add this PATH
declaration in your shell's profile file.<br>
</p>
Daniel<br>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Le 5/28/21 à 10:38 AM, Domicile a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:[email protected]">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
Hi
<div class="">I work on an iMac 10.14.6</div>
<div class=""><br class="">
</div>
<div class="">I have installed the GNU Prolog.</div>
<div class=""><br class="">
</div>
<div class="">When I try to compile a file (for example queens.pl)
by<b class=""> [queens].</b> I get the message :</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 11px;
line-height: normal; font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">uncaught
exception: error(system_error('error trying to execute
pl2wam (maybe not found)'),consult/1)</span></div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">Same if I try to compile by
./gplc queens.pl from the directory where gprolog and gplc
are located.</span></div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">And no INSTALL file found.</span></div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">Thank you for the reply</span></div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures" class=""><br class="">
</span></div>
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; word-wrap: break-word;
-webkit-nbsp-mode: space; -webkit-line-break:
after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; word-wrap: break-word;
-webkit-nbsp-mode: space; -webkit-line-break:
after-white-space;" class="">Yves Tourmen<br class="">
<br class="">
<br class="">
</div>
</div>
</div>
<br class="">
</div>
</blockquote>
<p><br>
</p>
</body>
</html>