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.
The following software is required to run TORQUE 4.2.0 Early Access:
Tcl/Tk version 8 or higher if you plan to build the GUI portion of TORQUE or use a Tcl based scheduler.
If you use cpusets, libhwloc 1.1 or later is required (for TORQUE 4.0.0 and later)
To install TORQUE
Install the gcc, libssl-devel, and libxml2-devel packages to build 4.2.0 Early Access. The package names may vary.
Use these commands to install the packages on the following operating systems:
RHEL, CentOS, and Scientific Linux:
[root]# yum update
[root]# yum install libxml2-devel openssl-devel gcc gcc-c++
SLES (You must have a licensed installation of SuSE and have installed the SuSE Linux Enterprise Software Development Kit and added the ISO to the repository):
[root]# zypper update
[root]# zypper install libxml-devel libopenssl-devel gcc gcc-c++
For more information on configuring ports, see Configuring Ports.
svn list https://github.com/adaptivecomputing/torque/
If you're checking source out from SVN, read the README.building-40 file in the repository.
[root]# tar -xzvf torque-4.2.0 Early Access.tar.gz
[root]# cd torque-4.2.0 Early Access/
[root]# ./configure
TORQUE must be installed by a root user. If running sudo fails, switch to root with su -.
[root]# make
[root]# make install
OSX 10.4 users need to change #define __TDARWIN in src/include/pbs_config.h to #define __TDARWIN_8.
* If Debian distribution, do the following *
[root]# cp contrib/init.d/debian.trqauthd /etc/init.d/trqauthd
* If SLES distribution, do the following *
[root]# cp contrib/init.d/suse.trqauthd /etc/init.d/trqauthd
* If RHEL distribution, do the following *
[root]# cp contrib/init.d/trqauthd /etc/init.d/
[root]# chkconfig --add trqauthd
[root]# echo /usr/local/lib > /etc/ld.so.conf.d/torque.conf
[root]# ldconfig
[root]# service trqauthd start
You will also want to scp the init.d scripts to the compute nodes and install them there.
[root]# echo <pbs_server's_hostname> > /var/spool/torque/server_name
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.
Verify you have environment variables configured so your system can find the shared libraries and binary files for TORQUE. This step is not necessary if the shared libraries are in their default locations.
To set the library path, add the directory where the TORQUE libraries are installed. For example, if your TORQUE libraries are installed in /usr/local/lib (if you changed the default library path at configure time, use that path instead.), execute the following:
[root]# echo '/usr/local/lib' > /etc/ld.so.conf.d/torque.conf
[root]# ldconfig
[root]# ./torque.setup root
While Adaptive Computing distributes the spec files to create RPMs, it doesn't support RPM installation. 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