[GE users] Possible problem in 6.1 util/arch command
Dan.Gruhn at groupw.com
Mon May 7 21:26:44 BST 2007
[ The following text is in the "ISO-8859-1" character set. ]
[ Your display is set for the "ISO-8859-10" character set. ]
[ Some special characters may be displayed incorrectly. ]
I have heard from a FedoraCore6 user, and the library string there is
"GNU C Library stable release version 2.5, by Roland McGrath et al."
so the same problem will occur. This can be easily fixed by changing
the "tr" command to
tr " ," '\n'
I have done this for my local copy of util/arch and it seems to work
just fine. My only question would be should there be more characters
along with comma and space?
Dan Gruhn wrote:
> I am running into a problem getting 6.1 util/arch to recognize my
> FedoraCore5 system properly. It runs fine with the 6.0u9 I have
> currently. Here is what I am seeing:
> # uname -s
> # uname -m
> # uname -r
> # strings /lib/libc.so.6 | grep "GNU C Library"
> GNU C Library development release version 2.4, by Roland McGrath et al.
> I think the problem is coming in because of the comma (",") after the
> 2.4 version number of the GNU C libraries. Here is a "bash -x
> util/arch" output:
> + SAFE_PATH=/bin:/usr/bin:/usr/sbin
> + PATH=/bin:/usr/bin:/usr/sbin
> + ARCH=UNKNOWN
> + '[' -x /bin/uname ']'
> + UNAME=/bin/uname
> ++ /bin/uname -s
> + ossysname=Linux
> ++ /bin/uname -m
> + osmachine=i686
> ++ /bin/uname -r
> + osrelease=2.6.18-1.2200.fc5smp
> + case $ossysname in
> + unsupported=
> + case $osmachine in
> + lxmachine=x86
> + case $osrelease in
> + case $osrelease in
> ++ dirname util/arch
> + ROOT_DIR=util/..
> + '[' /direct/sgeadmin/SunGridEngine '!=' '' -a -d
> /direct/sgeadmin/SunGridEngine/bin/lx26-x86 ']'
> + '[' /direct/sgeadmin/SunGridEngine = '' -a -d util/../bin/lx26-x86 ']'
> + lxrelease=24
> + case $lxmachine in
> ++ strings /lib/libc.so.6
> ++ grep 'GNU C Library'
> + libc_string='GNU C Library development release version 2.4, by
> Roland McGrath et al.'
> + '[' 0 -ne 0 ']'
> ++ echo GNU C Library development release version 2.4, by Roland
> McGrath et al.
> ++ tr ' ' '\n'
> ++ grep '2\.'
> ++ cut -f 2 -d .
> + libc_version=4,
> + case $libc_version in
> + unsupported=UNSUPPORTED-
> + lxrelease=24-GLIBC-2.4,
> + ARCH=UNSUPPORTED-lx24-GLIBC-2.4,-x86
> + '[' '' = -m -o '' = -mt -o '' = -lib ']'
> + echo UNSUPPORTED-lx24-GLIBC-2.4,-x86
> You can see that near the end "libc_version=4," is not right. The
> "tr" and the "cut" are not filtering out that comma (",") and "4," is
> not matching with any of the libc versions. Am I reading things properly?
More information about the gridengine-users