[m-users.] Path independence?

Julien Fischer jfischer at opturion.com
Sat Jul 27 02:28:12 AEST 2013


On Fri, Jul 26, 2013 at 6:05 PM, Julien Fischer <jfischer at opturion.com>wrote:

>
> The paths are not hard-wired into the executable.  They are set by
> various shell scripts (or batch files) plus a configuration file.
>
> On Unix-like system the mmc batch file (the actual compiler exectuable
> is called mercury_compile), sets the following environment variables:
>
>     MERCURY_COMPILER
>     MERCURY_CONFIG_DIR
>
> The former says where to find the mercury_compile executable; the latter
> specifies the location of the file Mercury.config whose contents
> describe the other details of the installation.  You can override these
> settings in the environment if you wish.
>
> The mercury.bat file does a similar thing to the mmc script on Windows.
> (You'll have to edit that file to change the settings though.)
>
> The Mercury.config files resides in <INSTALL-PREFIX>/lib/mercury/**conf.
> Some of the setting therein can be overridden in the environment, the
> main one of interest being MERCURY_STDLIB_DIR, which tells the compiler
> where to find the standard library.
>

It's probably also worth pointing out that this is covered in the
``Environment variables''
chapter of the user's guide.

Cheers,
Julien.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20130727/7608f0af/attachment.html>


More information about the users mailing list