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/

    Read the README.building-40 if you're checking source out from SUN.

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

    > cd torque-4.0.0/

  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 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 /usr/local/lib, execute the following:

      > echo '/usr/local/lib' > /etc/ld.so.conf.d/torque.conf

      > ldconfig

      If the default library path is changed, use the new path instead.

      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. If running sudo fails, switch to root with su -.

    > make

    > sudo make install

    You may need the package libssl-dev to build 4.0.0. The package name may vary.

    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.

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