GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » External Packages » jul14p3 line 44 too many arugments for [
Re: jul14p3 line 44 too many arugments for [ [message #17745 is a reply to message #17743] Tue, 13 January 2015 15:15 Go to previous message
MartinJGaluska is currently offline  MartinJGaluska
Messages: 203
Registered: March 2010
Location: Germany
first-grade participant
From: *
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 ]; 

[Updated on: Tue, 13 January 2015 15:49]

Report message to a moderator

Read Message
Read Message
Previous Topic: Problems with FairSoft (libpng) and Fedora 20
Next Topic: New external packages apr13p1
Goto Forum:

Current Time: Thu Jul 25 15:08:32 CEST 2024

Total time taken to generate the page: 0.00851 seconds