Open topic with navigation
The default location for installing DMExpress is C:\Program Files\DMExpress on Windows, and /usr/dmexpress on UNIX/Linux. However, it can be installed in any directory, and on UNIX/Linux systems, it can be installed in more than one location.
There are several methods for finding the installation directory for DMExpress, depending on the operating system.
On a Windows system, only a single installation of DMExpress is permitted. The default location is C:\Program Files\DMExpress, but it can be installed anywhere.
The location can be found by looking at the target path of the shortcut for one of the DMExpress programs, as follows:
On UNIX/Linux systems, DMExpress can be installed in multiple locations. The default DMExpress installation location is /usr/dmexpress, but it is also commonly installed in /usr/local/dmexpress or /opt/dmexpress.
There are two environment variables that determine which installation is currently being used, and both should refer to the same installation of DMExpress:
The respective DMExpress directories may be added to these environment variables in the system shell start-up script for all users, or in specific users’ shell start-up scripts.
The which, locate, and find commands can be used to find the DMExpress installation location(s). The output results will be of the following form, where the DMExpress installation directory is the part of the path preceding /bin:
To determine the DMExpress installation location currently being used based on the PATH setting, run the following command at the command prompt:
If the PATH contains a DMExpress directory, the result will be a single line.
If multiple DMExpress directories have been added to the PATH (which can happen, for example, if one was added by both the system and the user’s shell start-up scripts), this command will only return the first one found.
If there is no DMExpress directory in the PATH, or if more than one version of DMExpress is installed, you can find the installation(s) using the locate command, which searches a pre-built database of file names. To force it to return only files that match the name dmexpress, run it as follows:
locate –b '\dmexpress'
where the -b option forces a full-word-only match, the backslash (\) suppresses implied wildcards at the beginning and end of the search string, and the quotes ('') prevent the shell from consuming the backslash. The result will include one line for each installation directory found.
The database searched by locate is maintained by the UNIX updatedb utility, which scans all directories except certain excluded ones. This scan is normally run daily by cron, but if it is not, and has not been run either manually or by some other scheduler, the database may be missing or incorrect, resulting in incorrect or empty results when running locate.
If the locate command is unsuccessful, you can use the find command as follows, but this may take a long time because it does a full search of the entire system:
find / -name dmexpress –print
If you know that DMExpress would be installed only under /usr or /opt, you can limit the search by specifying one of those directories instead of root (/) as the first argument to find. The result will include one line for each installation directory found.
It may be useful or necessary to have more than one version of DMExpress installed on UNIX/Linux systems, for example
However, only one instance of the DMExpress server daemon, which accepts requests to run jobs from the GUI, can be running at one time.
Copyright © 2016 Syncsort All rights reserved.