1.0 Installation and configuration > 1.1 TORQUE installation overview > Installing TORQUE

Installing TORQUE

Build the distribution on the machine that will act as the TORQUE server - the machine which monitors and controls all compute nodes by running the pbs_server daemon.

The built distribution package works only on compute nodes of a similar architecture. Nodes with different architecture must have the installation package built on them individually.

To install TORQUE

  1. Download the TORQUE distribution file from http://www.adaptivecomputing.com/support/download-center/torque-download/. You can also download source code using Subversion from the repository at https://github.com/adaptivecomputing/torque/. Use the following command to display all branches:
  2. svn list https://github.com/adaptivecomputing/torque/

  3. Extract the packaged file and navigate to the unpackaged directory.
  4. > tar -xzvf torque-2.3.4.tar.gz

    > cd torque-2.3.4/

  5. Do the following to configure the package:
    1. By default, make install installs all files in /usr/local/bin, /usr/local/lib, /usr/local/sbin, /usr/local/include, and /usr/local/man . You can specify an installation prefix other than /usr/local by using --prefix as an argument to ./configure. Note that TORQUE cannot be installed into a directory path that contains a space.
    2. ./configure --prefix=$home

    3. Verify that you have environment variables configured so your system can find the shared libraries and binary files for TORQUE.
    4. To set the library path, add the directory where the TORQUE libraries will be installed. For example, if your TORQUE libraries are installed in /opt/torque/lib, execute the following:

      > set LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):/opt/torque/lib

      > ldconfig

      Adaptive Computing recommends that the TORQUE administrator be root.

      For information about customizing the build at configure time, see Customizing the install.

      > ./configure

  6. Run make and make install.
  7. TORQUE must be installed by a root user.

    > make

    > sudo make install

    OSX 10.4 users need to change #define __TDARWIN in src/include/pbs_config.h to #define __TDARWIN_8.

    After installation, verify that you have the PATH environment variable configured to include /usr/local/bin/ and /usr/local/sbin/.

    By default, make install creates a directory at /var/spool/torque. This directory is referred to as TORQUE_HOME. TORQUE_HOME has several sub-directories, including server_priv/, server_logs/, mom_priv/, mom_logs/, and other directories used in the configuration and running of TORQUE.

    TORQUE 2.0.2 and later includes a torque.spec file for building your own RPMs. You can also use the checkinstall program to create your own RPM, tgz, or deb package.

While Adaptive Computing distributes the RPM files as part of the build, it does not support those files. Not every Linux distribution uses RPM. Adaptive Computing provides a single solution using make and make install that works across all Linux distributions and most UNIX systems. We recognize the RPM format provides many advantages for deployment but it is up to the individual site to repackage the TORQUE installation to match their individual needs.

Related topics