Problem 372 - Problems when compiling geant 4 applications
Summary: Problems when compiling geant 4 applications
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: 4.0
Hardware: PC Linux
: P1 minor
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2002-05-16 11:36 CEST by metere
Modified: 2002-05-16 12:50 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description metere 2002-05-16 11:36:09 CEST
I've a Linux RedHat 7.2 kernel 2.4.9-13SGI_XFS_1.0.2 and i have a little trouble
when i try to compile geant examples or any other geant application, i get an
error, because the makefile can't locate CLHEP libraries. Well, i've tried to
check the path ...I'll report you terminal output
[root@vesta examples]# uname -a
Linux vesta.fisica.unisi.it 2.4.9-13SGI_XFS_1.0.2 #1 Thu Nov 15 11:38:50 CST
2001 i686 unknown
[root@vesta examples]# echo $CLHEP
/root
[root@vesta examples]# export CLHEP=/cern/include
[root@vesta examples]# echo $CLHEP
/cern/include
[root@vesta examples]# pwd
/cern/geant4.4.0/examples
[root@vesta examples]# ls /cern/include
CLHEP
[root@vesta examples]#
gmake
../../../tmp/Linux-egcs/exampleN01/ExN01DetectorConstruction.d:1: *** missing
separator.  Stop.
../../../tmp/Linux-egcs/exampleN02/ExN02TrackerSD.d:1: *** missing separator.
Stop.
../../../tmp/Linux-egcs/exampleN03/exe/exampleN03.d:1: *** missing separator.
Stop.
../../../tmp/Linux-egcs/exampleN04/exe/exampleN04.d:1: *** missing separator.
Stop.
Making dependency for file exampleN05.cc...
In file included from ../../../source/global/management/include/G4ios.hh:37,
                 from ../../../source/global/management/include/globals.hh:47,
                 from include/ExN05RunAction.hh:31,
                 from exampleN05.cc:41:
../../../source/global/management/include/G4Types.hh:41:32:
CLHEP/config/CLHEP.h: No such file or directory

etc ...
[root@vesta examples]#

Well, how is it possible that it can't find include CLHEP files even when they
are installed and PATHed correctly?

I think it's not a big trouble ... but i can't solve it, i'm sorry: help me.

Alfredo Metere
Physics Department - Siena University (ITALY)
Comment 1 Gabriele Cosmo 2002-05-16 12:50:59 CEST
Please, have a look at our FAQ page on web:
   http://cern.ch/geant4/support/faq.html
item #2 of "Installation" and please, read carefully the installation manual.
You're setting an environment variable "CLHEP" which does not mean anything !
You probably intended "CLHEP_BASE_DIR" instead.
CLHEP_BASE_DIR should point to the area where headers and CLHEP library are
installed in your system, i.e. (for standard installations of CLHEP):
$ ls -F $CLHEP_BASE_DIR
include/ lib/
$ ls -F $CLHEP_BASE_DIR/include
CLHEP		<--- headers
$ ls -F $CLHEP_BASE_DIR/lib
libCLHEP.a	<--- library