Torqueの2.5.13を料理します.
管理ノード/計算ノードはCentOS 7でジョブ発行ノードにmacOS Sierraを採用します

2.5.13

入手先はhttps://github.com/adaptivecomputing/torqueにて.
左側の「Branch: master」ボタンを押下して「2.5.13」を選びます
2017y08m27d_165041628.png
そして、右側の「Clone or download」ボタンを押下して、「Download ZIP」を選びます。
これでTorque-2.5.13のzipファイルを入手できる
2017y08m27d_165305267.png

rpmファイル作成

管理ノード/計算ノードらへの配布はrpm形式で行うのが楽なので.

[root@c ~]# mkdir -p rpmbuild/{SPECS,SOURCES}
 
[root@c ~]# cd src
[root@c src]# unzip torque-2.5.13.zip
[root@c src]# cp torque-2.5.13/buildutils/torque.spec.in ~/rpmbuild/SPECS/torque.spec
[root@c src]# tar czf ~/rpmbuild/SOURCES/torque-2.5.13.tar.gz ./torque-2.5.13

これでSPECファイルとSOURCEファイルが準備完了。
SPECファイルを調整します

[root@c ~]# yum --enablerepo=epel -y install munge-devel
[root@c ~]# cp -p rpmbuild/SPECS/torque.spec rpmbuild/SPECS/torque.spec.orig
[root@c ~]# vi rpmbuild/SPECS/torque.spec
[root@c ~]# diff -u rpmbuild/SPECS/torque.spec.orig rpmbuild/SPECS/torque.spec
--- rpmbuild/SPECS/torque.spec.orig     2017-08-27 17:03:24.702888870 +0900
+++ rpmbuild/SPECS/torque.spec  2017-08-27 17:51:38.105353949 +0900
@@ -21,11 +21,11 @@
 %bcond_with    cpuset
 %bcond_with    drmaa
 %bcond_with    gui
-%bcond_with    munge
 %bcond_with    pam
+%bcond_with    ha
 
 ### Features enabled by default
-%bcond_without ha
+%bcond_without munge
 %bcond_without scp
 %bcond_without spool
 %bcond_without syslog
@@ -37,7 +37,7 @@
 %define ac_with_drmaa   --%{?with_drmaa:en}%{!?with_drmaa:dis}able-drmaa
 %define ac_with_gui     --%{?with_gui:en}%{!?with_gui:dis}able-gui --with%{!?with_gui:out}-tcl
 %define ac_with_ha      --%{?with_ha:en}%{!?with_ha:dis}able-high-availability
-%define ac_with_munge   --%{?with_munge:en}%{!?with_munge:dis}able-munge-auth
+%define ac_with_munge   --%{?with_munge:en}%{!?with_munge:dis}able-munge-auth --%{?with_munge:en}%{!?with_munge:dis}able-munge-library
 %define ac_with_pam     --with%{!?with_pam:out}-pam%{?with_pam:=/%{_lib}/security}
 %define ac_with_scp     --with-rcp=%{?with_scp:scp}%{!?with_scp:pbs_rcp}
 %define ac_with_spool   --%{?with_spool:en}%{!?with_spool:dis}able-spool
@@ -51,7 +51,7 @@
 
 ### Macro variables
 %{!?torque_user:%global torque_user torque}
-%{!?torque_home:%global torque_home %{_var}/spool/%{name} }   *
+%{!?torque_home:%global torque_home %{_var}/lib/%{name} }   *
 %{!?torque_server:%global torque_server localhost}
 %{!?sendmail_path:%global sendmail_path %{_sbindir}/sendmail}
 
@@ -59,7 +59,7 @@
 #define __os_install_post /usr/lib/rpm/brp-compress
 
 ### Handle logic for snapshots
-%define tarversion @SPEC_VERSION@
+%define tarversion 2.5.13
 #define snap 0
 %if %{?snap}0
 %{expand:%%define version %(echo %{tarversion} | sed 's/-snap\..*$//')}
@@ -70,7 +70,7 @@
 %endif
 
 Summary: Tera-scale Open-source Resource and QUEue manager
-Name: @SPEC_NAME@
+Name: torque
 Version: %{version}
 Release: %{release}
 License: OpenPBS License (ASF-like)
[root@c ~]#

*「*」の箇所は、表示上の不具合のため本来「}}」であるところを間にスペースを入れて「} }」にしてます
他でもrpmbuildが必要になるかもしれないので「-ba」オプションで rpm と srpm を作成

[root@c ~]# rpmbuild -ba rpmbuild/SPECS/torque.spec

作ったrpm/srpmファイルはこちら

[root@c ~]# ls -l rpmbuild/RPMS/x86_64/
合計 3100
-rw-r--r-- 1 root root  662220  8月 27 17:54 torque-2.5.13-1.cri.x86_64.rpm
-rw-r--r-- 1 root root  161756  8月 27 17:54 torque-client-2.5.13-1.cri.x86_64.rpm
-rw-r--r-- 1 root root 1908412  8月 27 17:54 torque-debuginfo-2.5.13-1.cri.x86_64.rpm
-rw-r--r-- 1 root root  111096  8月 27 17:54 torque-devel-2.5.13-1.cri.x86_64.rpm
-rw-r--r-- 1 root root   43164  8月 27 17:54 torque-scheduler-2.5.13-1.cri.x86_64.rpm
-rw-r--r-- 1 root root  274884  8月 27 17:54 torque-server-2.5.13-1.cri.x86_64.rpm
[root@c ~]#
[root@c ~]# ls -l rpmbuild/SRPMS/
合計 5660
-rw-r--r-- 1 root root 5795073  8月 27 17:54 torque-2.5.13-1.cri.src.rpm
[root@c ~]#

インストール/設定

こちらを参照に TORQUETORQUE/2.4.17

macOS向け

macOS Sierra向けのコンパイルを記す

mini:~ supervisor$ cd src/
mini:src supervisor$ unzip -q torque-2.5.13.zip && cd torque-2.5.13
mini:torque-2.5.13 supervisor$ ./configure \
--disable-server --disable-mom --disable-gui \
--with-server-home=/var/lib/torque --without-tcl --without-tk \
--enable-munge-auth --enable-munge-library --disable-unixsockets
 :
 :
Building components: server=no mom=no clients=yes
                     gui=no drmaa=no pam=no
PBS Machine type: darwin
Remote copy: /usr/bin/scp -rpB
PBS home: /var/lib/torque
Default server: mini.sybyl.local
Unix Domain sockets: yes
Tcl: disabled
Tk: disabled
 
Ready for 'make'.
 
mini:torque-2.5.13 supervisor$
最新の60件
2026-09-05 2026-08-31 2026-08-27 2026-08-24 2026-08-20 2026-08-18 2026-08-17 2026-08-16 2026-08-15 2026-08-13 2026-08-12 2026-08-11 2026-08-09 2026-07-30 2026-07-25 2026-07-24 2026-07-20 2026-07-18 2026-07-17 2026-07-16 2026-07-08 2026-07-07 2026-07-06 2026-07-04 2026-07-02 2026-06-27 2026-06-24 2026-06-21 2026-06-17 2026-06-14 2026-06-13 2026-06-09 2026-06-08 2026-06-05 2026-06-04 2026-06-03

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2017-08-27 (日) 18:26:14