Problem 301

Summary:
Product: Geant4 Reporter: sudeb
Component: configAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P2    
Version: 3.2   
Hardware: PC   
OS: Linux   

Description sudeb 2001-09-18 01:05:57 CEST
Dear Sir

I am trying to install geant4 as a stand alone mode in a
Pc running under RedHat 6.2. I am a newcomer in this field.
I have downloaded and installed the following files from geant4
home page :

geant4.3.2.tar.gz
gcc egcs-2.91.66(egcs1.1.2)
relevant version of CLHEP

However, while installing the following error message was received
after it compiled for nearly 1 and half hrs. :

/Configure: ./hints: No such file or directory
ls: *.sh: No such file or directory
src/G4MuNuclearInteraction.cc: In method `G4double
G4MuNuclearInteraction::ComputeMicroscopicCrossSection(const class
G4ParticleDefinition *, G4double, G4double, G4double)':
src/G4MuNuclearInteraction.cc:218: warning: assignment to `G4int' from `double'
src/G4ReactionDynamics.cc: In method `G4int
G4ReactionDynamics::Poisson(G4double)':
src/G4ReactionDynamics.cc:2565: warning: assignment to `G4int' from `double'
src/G4LENeutronInelastic.cc: In method `void G4LENeutronInelastic::Cascade(class
G4FastVector<G4ReactionProduct,128> &, G4int &, const class G4DynamicParticle *,
class G4ReactionProduct &, class G4ReactionProduct &, G4bool &, G4bool &, G4bool
&)':
src/G4LENeutronInelastic.cc:362: warning: initialization to `G4int' from
`double'
src/G4LEProtonInelastic.cc: In method `void G4LEProtonInelastic::Cascade(class
G4FastVector<G4ReactionProduct,128> &, G4int &, const class G4DynamicParticle *,
class G4ReactionProduct &, class G4ReactionProduct &, G4bool &, G4bool &, G4bool
&)':
src/G4LEProtonInelastic.cc:279: warning: initialization to `G4int' from `double'
gmake[1]: cernlib: Command not found
h@h@gmake[1]: cernlib: Command not found
h@h@  Reading library name map file...
  Reading dependency files...
  Checking for circular dependencies...
  Reordering according to dependencies...
  Writing new library map file...
gmake[1]: cernlib: Command not found
h@h@/home/geant/geant4/config/architecture.gmk:36: /etc/.mk: No such file or
directory
gmake[1]: *** No rule to make target `/etc/.mk'.  Stop.
gmake: *** [includes] Error 2

Can you please help me in identifying the problem and how to
overcome it. Where  do I get the cernlib command ?

with regards

sudeb bhattacharya
Comment 1 Gabriele Cosmo 2001-09-18 10:43:59 CEST
It looks like you're listing a summary of warnings and messages
from the build. However, it's not clear at which stage the error:
  "..../home/geant/geant4/config/architecture.gmk:36: /etc/.mk:
   No such file or directory"
occurs.
Can you please specify the commands you issued for the installation ?
It looks like you used the 'Config' script to install the Geant4
libraries (command: "Config -install"), and the libraries did build
correctly, despite of some known warnings.
The message:
  gmake[1]: cernlib: Command not found
shows that you don't have the 'cernlib' command installed in your system;
'cernlib' is a command from the CERN program library (cernlib) returning
a list of libraries needed to link a cernlib application. This command is
only used in the 'g3tog4' module, however, if you do not make use of the
'g3tog4' tool, it's harmless.
The cernlib script (and the needed cernlib libraries) are available from
http://cern.ch/cernlib