GSI Forum - RDF feed
type: channel
description: GSI Helmholtzzentrum für Schwerionenforschung
items: jul14p3 rootconfig.sh line 44 too many arugments for [
items: Re: jul14p3 rootconfig.sh line 44 too many arugments for [

jul14p3 rootconfig.sh line 44 too many arugments for [
type: item
description: Hello, I just wanted to let you know that on Ubuntu 14.04 at some point of the installation of the fairsoft packages I got more or less the error message that in rootconfig.sh (line 44) there are too many arugments for [. I guess the files the message is refering to are tools/rootconfig.sh tools/root/rootconfig.sh Lines 44 and beyond look like this: if [ $gcc_major_version -eq 3 -a $gcc_minor_version -eq 3 -a $gcc_sub_version -eq 5 ]; then ROOFIT=" " else ROOFIT="--enable-roofit" fi The installation seemed to have worked despite of the error message. Kind regards, Martin
creator: MartinJGaluska
date: 2015-01-13T13:03:25-00:00

Re: jul14p3 rootconfig.sh line 44 too many arugments for [
type: item
description: I have just experimented a bit with Andreas Herten and I guess that the problem is that at least one of these variables are not set, but the script assumes that they are actually set. Is that possible? Edit: Ok, just checked more carefully: After running gcc_sub_version=$(gcc -dumpversion | cut -c 5) gcc_sub_version is not set and therefore producing the problem. The reason is that gcc -dumpversion gives 4.8 as a result on my machine. Edit2: Proposed fix (thanks to Andreas Herten for the idea). if [ -z $gcc_sub_version ]; then gcc_sub_version=-1; fi
creator: MartinJGaluska
date: 2015-01-13T14:15:38-00:00