Re: ROOT-CONFIG Question

From: Christian Holm Christensen <cholm_at_nbi.dk>
Date: Wed, 30 Aug 2006 17:10:19 +0200


Hi Weijun,

On Wed, 2006-08-30 at 08:29 -0500, Weijun Guo wrote:
> Greetings,
>
>
>
> I installed ROOT with the 5.12/00 installer. The ROOT-CONFIG utility
> complains about the following when I tried ´root-config --cflags¡:
>
>
>
> /cygdrive/c/root/bin/root-config: line 347: test: too many arguments
>
> -MD -GR -GX -G5 -I'c:\root\include'

There's a bug in the root-config script. Instead of

         if test "$VC_MAJOR" != "" -a $VC_MAJOR -gt 13; then
        

it should be

         if test "$VC_MAJOR" != "" && test $VC_MAJOR -gt 13; then
        

Not all SH implementations like the `-a' option. Try modifying the script as above, and if that fails, make sure that VC_MAJOR is set.         

Yours,

-- 
 ___  |  Christian Holm Christensen 
  |_| |  -------------------------------------------------------------
    | |  Address: Sankt Hansgade 23, 1. th.  Phone:  (+45) 35 35 96 91
     _|           DK-2200 Copenhagen N       Cell:   (+45) 24 61 85 91
    _|            Denmark                    Office: (+45) 353  25 404
 ____|   Email:   cholm_at_nbi.dk               Web:    www.nbi.dk/~cholm
 | |
Received on Wed Aug 30 2006 - 17:11:25 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET