12.4.1 Specifying a file search path from the command line
Suppose the system administrator has installed the SWI-Prolog runtime
environment in /usr/local/lib/rt-pl-3.2.0
. A user wants to
install gnat
, but gnat
will look for its
configuration in
/usr/local/lib/rt-pl-3.2.0/gnat
where the user cannot
write.
The user decides to install the gnat
runtime files in
/users/bob/lib/gnat
. For one-time usage, the user may
decide to start gnat
using the command:
% gnat -p gnatdir=/users/bob/lib/gnat