[torqueusers] Compiling xpbsmon
Martin Siegert
siegert at sfu.ca
Thu Jan 12 13:49:52 MST 2006
On Thu, Jan 12, 2006 at 12:11:08PM -0800, Garrick Staples wrote:
> On Wed, Jan 11, 2006 at 03:05:13PM -0300, Diego Vadell alleged:
> > Hi all,
> > I was asked to install xpbsmon. We use Rocks and xpbsmon does not come
> > with it, so I downloaded torque's sources. My idea was to compile all
> > torque and then only install xpbsmon, but however I run ./configure,
> > xpbsmon does not get compiled or installed. I tried with
> >
> > ./configure --prefix=/tmp/pbs-temp \
> > --set-server-home=/tmp/pbs-temp/spool/PBS \
> > --with-tclx
> >
> > But when I run make and make install, xpbsmon does not get installed in
> > /tmp/pbs-temp . I tried also adding --enable-clients and --with-gui,
> > although I read that they were defaults. No sign of in configure's output
> > that could tell me that tcl or tclx has been disabled.
> > I went to src/tools and ran make and make install there, and it worked
> > (with some minor glitches). xpbsmon *is* running now, but it let me with a
> > bad taste in my mouth... is there an easier way of compiling torque
> > including xpbsmon? Is it that xpbsmon is no longer an active part of
> > torque (i.e. nobody is using it and nobody complains when it breaks)? Are
> > there any instructions?
> >
> > I was using torque-1.2.0p6 in an x86_64 machine.
>
> The configure script doesn't find the tcl/tk libs on x86_64 machines.
I attach a patch to configure that corrects this - at least this works
for me on Linux powerpc64. I am using the configure options
--enable-tcl-qstat \
--x-libraries=/usr/X11R6/lib64 \
--enable-gui
I do not use --with-tclx; for reasons I've never figured out completely
that does not work for me.
> But xpbsmon sucks anyways. It is definitely not maintained anymore.
> There are also reports of it breaking on newer TCL versions.
I actually like xpbsmon ... for small clusters it gives a quick overview
of how busy the cluster is. For a 1000 node cluster it is certainly useless.
And yes, you should not click on any of the node buttons - this does
not work anymore with tcl/tk versions 8.4 and later; it crashes xpbsmon.
> Use pbstop instead :)
>
> --
> Garrick Staples, Linux/HPCC Administrator
> University of Southern California
Cheers,
Martin
--
Martin Siegert
Head, HPC at SFU
WestGrid Site Manager
Academic Computing Services phone: (604) 291-4691
Simon Fraser University fax: (604) 291-4242
Burnaby, British Columbia email: siegert at sfu.ca
Canada V5A 1S6
-------------- next part --------------
--- torque-2.0.0p3/configure.tcltk Tue Nov 29 17:04:49 2005
+++ torque-2.0.0p3/configure Thu Dec 1 12:01:28 2005
@@ -932,7 +932,7 @@
ac_LL_PATH=`echo "$PATH" | sed -e 's/:/ /g'`
for ac_libpath in $ac_LL_PATH /__XqqFrobozz ; do
ac_libpath=`echo $ac_libpath | sed -e 's;/bin$;;'`
- if test `/bin/ls ${ac_libpath}/lib/libtclx*.* 2> /dev/null | wc -l` -gt 0; then
+ if test `/bin/ls ${ac_libpath}/lib*/libtclx*.* 2> /dev/null | wc -l` -gt 0; then
tclx_dir="$ac_libpath"
break;
fi
@@ -967,7 +967,7 @@
ac_LL_PATH=`echo "$PATH" | sed -e 's/:/ /g'`
for ac_libpath in $ac_LL_PATH /__XqqFrobozz ; do
ac_libpath=`echo $ac_libpath | sed -e 's;/bin$;;'`
- if test `/bin/ls ${ac_libpath}/lib/libtcl*.* 2> /dev/null | wc -l` -gt 0; then
+ if test `/bin/ls ${ac_libpath}/lib*/libtcl*.* 2> /dev/null | wc -l` -gt 0; then
tcl_dir="$ac_libpath"
break;
fi
@@ -984,7 +984,7 @@
ac_LL_PATH=`echo "$PATH" | sed -e 's/:/ /g'`
for ac_libpath in $ac_LL_PATH /__XqqFrobozz ; do
ac_libpath=`echo $ac_libpath | sed -e 's;/bin$;;'`
- if test `/bin/ls ${ac_libpath}/lib/libtcl*.* 2> /dev/null | wc -l` -gt 0; then
+ if test `/bin/ls ${ac_libpath}/lib*/libtcl*.* 2> /dev/null | wc -l` -gt 0; then
tcl_dir="$ac_libpath"
break;
fi
@@ -996,7 +996,7 @@
TCL=1
TCL_DIR="$tcl_dir"
- count=`/bin/ls ${tcl_dir}/lib/libtk* 2> /dev/null | wc -l`
+ count=`/bin/ls ${tcl_dir}/lib*/libtk* 2> /dev/null | wc -l`
if test "$count" -gt 0 -a -n "$GUI"; then
TK=1
fi
@@ -1043,10 +1043,10 @@
{ echo "configure: error: cannot find Tcl version in $tcl_h" 1>&2; exit 1; };
TCL_LIB_VER="$TCL_VER"
- count=`/bin/ls -d $TCL_DIR/lib/libtcl${TCL_LIB_VER}.* 2> /dev/null | wc -l`
+ count=`/bin/ls -d $TCL_DIR/lib*/libtcl${TCL_LIB_VER}.* 2> /dev/null | wc -l`
if test "$count" -lt 1; then
TCL_LIB_VER=`echo $TCL_LIB_VER | sed -e 's/\.//'`
- count=`/bin/ls $TCL_DIR/lib/libtcl${TCL_LIB_VER}.* | wc -l`
+ count=`/bin/ls $TCL_DIR/lib*/libtcl${TCL_LIB_VER}.* | wc -l`
if test "$count" -lt 1; then
{ echo "configure: error: cannot find a Tcl library for version $TCL_VER" 1>&2; exit 1; }
fi
@@ -1084,10 +1084,10 @@
{ echo "configure: error: cannot find Tk version in $tk_h" 1>&2; exit 1; };
TK_LIB_VER="$TK_VER"
- count=`/bin/ls $TCL_DIR/lib/libtk${TK_LIB_VER}.* 2> /dev/null | wc -l`
+ count=`/bin/ls $TCL_DIR/lib*/libtk${TK_LIB_VER}.* 2> /dev/null | wc -l`
if test "$count" -lt 1; then
TK_LIB_VER=`echo $TK_LIB_VER | sed -e 's/\.//'`
- count=`/bin/ls $TCL_DIR/lib/libtk${TK_LIB_VER}.* | wc -l`
+ count=`/bin/ls $TCL_DIR/lib*/libtk${TK_LIB_VER}.* | wc -l`
if test "$count" -lt 1; then
{ echo "configure: error: cannot find a Tk library for version $TK_VER" 1>&2; exit 1; }
fi
More information about the torqueusers
mailing list