[torqueusers] torque client install script problem

Garrick Staples garrick at usc.edu
Wed Jul 18 14:40:32 MDT 2007


On Wed, Jul 18, 2007 at 03:26:02PM -0400, Tony Schreiner alleged:
> 
> On Jul 18, 2007, at 3:17 PM, Garrick Staples wrote:
> 
> >On Wed, Jul 18, 2007 at 10:13:52AM -0500, Adams, Samuel D Contr  
> >AFRL/HEDR alleged:
> >>I am trying to install torque to my clients, but the
> >>torque-package-clients-linux-x86_64.sh script keeps on dieing.  I am
> >>installing on RHEL5 nodes.
> >>
> >>[root at prodnode3 torque-2.1.8]# ./torque-package-clients-linux- 
> >>x86_64.sh
> >>--install --verbose
> >>
> >>Installing TORQUE archive...
> >>
> >>tail: cannot open `+157' for reading: No such file or directory
> >>
> >>gzip: stdin: not in gzip format
> >>setting file user and group ownerships
> >>tail: cannot open `+157' for reading: No such file or directory
> >>
> >>gzip: stdin: not in gzip format
> >>Done.
> >>[root at prodnode3 torque-2.1.8]#
> >>
> >>>From the best I could find by searching the Internet, it seems the
> >>possible problem is that the script is trying to use some kind of
> >>deprecated option for tail hence the "+157" error.  Hopefully someone
> >>else has seen this problem and knows the workaround.
> >
> >Bleh.  Now we have multiple incompatible 'tail' options on different
> >platforms.
> >
> >Edit buildutils/self-extract-head-sh.in, and replace the 4  
> >instances of
> >'tail +$SKIP' with 'tail -n +$SKIP', re-run configure and make.
> >
> >I'll figure out another way to do this.
> >
> >-- 
> >Garrick Staples, GNU/Linux HPCC SysAdmin
> >University of Southern California
> 
> 
> I encountered this recently in another context.
> 
> You can set the environment variable _POSIX2_VERSION=1  to force the  
> old syntax for tail.
> This might be helpful in your script.

I think I have a good, standards-compliant replace with 'sed':
   sed -n $SKIP,\$p

Anyone have a better idea?


-- 
Garrick Staples, GNU/Linux HPCC SysAdmin
University of Southern California

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20070718/cc528e5a/attachment.bin


More information about the torqueusers mailing list