Message: Re: geant4-config assumes gawk? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: geant4-config assumes gawk? 

Forum: Installation and Configuration
Re: None geant4-config assumes gawk? (Giuseppe Vacanti)
Date: 18 Feb, 2014
From: Ben Morgan <Ben Morgan>

Hi Giuseppe,

On Mon, 17 Feb 2014 12:53:44 GMT, Giuseppe Vacanti wrote:
> I'm installing Geant4.10.00 on Ubuntu. After compilation geant4-config
> --libs outputs something like this (note the awk error):
> 
> geant4.10.00-build> /geant4.10.00/bin/geant4-config --libs awk:
> line 1: illegal reference to array array
> -L/geant4.10.00/bin/../lib -lG4Tree -lG4FR -lG4GMocren
> -lG4visHepRep -lG4RayTracer -lG4VRML -lG4vis_management -lG4modeling
> -lG4interfaces -lG4persistency -lG4analysis -lG4error_propagation
> -lG4readout -lG4physicslists -lG4run -lG4event -lG4tracking
> -lG4parmodels -lG4processes -lG4digits_hits -lG4track -lG4particles
> -lG4geometry -lG4materials -lG4graphics_reps -lG4intercoms -lG4global
> -lG4clhep
> 
> The error goes away if I install gawk (apparently the default on Ubuntu
> is mawk, awk is symlinked to one or the other). The script geant4-config
> continues on error (missing set -e), and in this case I get the answer I
> want, but with --datasets I get an empty answer instead of the expected
> list.
> 
> Is gawk a requirement I have missed?
> 
> Cheers, Giuseppe
> 

Thanks for the report - you're right, GNU awk is needed in this case because the GNU extension "length" is used. I've now fixed this in svn, and I've attached the patch in case you want to apply it now.

Cheers,

Ben

Attachment: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2014/02/18/04.42-29303-config-standard-awk.patch

 Add Message Add Message
to: "Re: geant4-config assumes gawk?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]