Linux Installation

# 1.5.2 Linux Installation

XTrackCAD for LINUX is shipped as a RPM file and a self-extracting archive (executable).

1. Installing from an RPM file
     After downloading the rpm file, do
     `rpm -ihv xtrkcad-setup-4.0.3a.i386.rpm`
     Replace `-ihv` with `-Uhv` to upgrade an existing XTrackCAD installation.

2. Installing from the self-extracting archive.
     After downloading open a command line then
     `./xtrkcad-setup-4.0.3a.i386.sh --prefix=/usr/local --exclude-subdir`
     This will install the executable in /usr/local/bin. A directory named `xtrkcad` will be created in /usr/local/share and all files will be unpacked into it.

If you install XTrackCAD into another directory, set the `XTRKCADLIB` environment variable to point to that directory.