2.2. Environment Variables

This section will outline the environment variables that are used by Qore.

Table 2.1. Qore Environment Variables

Environment Variable

Description

QORE_AUTO_MODULE_DIR

This environment variable should contain a colon-separated list of directories which will be searched for Qore modules when Qore starts. If any modules are found, they are loaded automatically before any parsing starts.

QORE_MODULE_DIR

This environment variable should contain a colon-separated list of directories which will be searched when modules are loaded with the %requires parse directive

QORE_INCLUDE_DIR

This variable should be a colon-separated list of directories where the Qore binary should look for include files

QORE_CHARSET

If this variable is set, then the default character encoding name for the process will be the value of this variable. This variable takes precedence over the LANG variable, but can be overridden by the command line using option --charset (see Qore Strings and Character Encoding for more information on this option)

LANG

If this variable is set and includes a character encoding specification, then, if the QORE_CHARSET variable is not set (and no character encoding was specified on the command line), this character encoding will be the default for the process.