Problem 1726

Summary: g4py instructions don't work for me at CERN (lxplus)
Product: Environments Reporter: Gunter.Folger
Component: g4pyAssignee: Koichi Murakami <Koichi.Murakami>
Status: CLOSED WONTFIX    
Severity: major    
Priority: P5    
Version: 10.0   
Hardware: All   
OS: Linux   

Description Gunter.Folger 2015-03-23 18:08:13 CET
in order to get started with using g4py, I try to follow the instructions given here:
https://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/apas07.html
...but it fails. Seems to be something wrong with "boost"...
This is what I do:

source /afs/cern.ch/sw/lcg/external/geant4/10.0.p03/x86_64-slc6-gcc47-opt/bin/geant4.csh

cd /afs/cern.ch/sw/lcg/external/geant4/10.0.p03/share/environments/g4py

./configure linux64 --with-g4install-dir=/afs/cern.ch/sw/lcg/external/geant4/10.0.p03/x86_64-slc6-gcc47-opt/
Checking for system type ... linuxx8664gcc
Checking for prefix ... /afs/cern.ch/sw/lcg/external/geant4/10.0.p03/share/environments/g4py
Checking for lib dir ... /afs/cern.ch/sw/lcg/external/geant4/10.0.p03/share/environments/g4py/lib
Checking for G4 include dir ... /afs/cern.ch/sw/lcg/external/geant4/10.0.p03/x86_64-slc6-gcc47-opt//include/Geant4
Checking for G4 lib dir ... /afs/cern.ch/sw/lcg/external/geant4/10.0.p03/x86_64-slc6-gcc47-opt//lib64
Checking for G4 libs are shared libraray ... ok
Checking for Python include dir (pyconfig.h) ... /usr/include/python2.6
Checking for Python lib dir ... /usr/lib64
Checking for Boost include dir (boost/python.hpp) ... /usr/include
Checking for Boost version ... ./configure: line 301: conftest.cc: Read-only file system
./configure: line 312: ./conftest: No such file or directory
rm: cannot remove `conftest.cc': No such file or directory
rm: cannot remove `conftest': No such file or directory
boost version >= 1.32.00 is required.

Thanks for helping.
Massi

========================================================
Comments so far:
Gunter Folger added a comment - 25/Nov/14 3:55 PM

Hello Massi,

This is a hopefully small documentation bug. Obviously, you cannot write into the Geant4 installation on afs. So please copy g4py to a local directory, and then re-run:
cd (some local directory)
cp -R /afs/cern.ch/sw/lcg/external/geant4/10.0.p03/share/environments/g4py g4py
cd g4py

and then re-run
Massimiliano Ferro-Luzzi added a comment - 25/Nov/14 5:03 PM

OK, now goes further down, but problem with xercesc... see below.
Where is it ?

thanks Massi

[massi@lxplus0227 g4py]$ pwd
/afs/cern.ch/work/m/massi/g4py
[massi@lxplus0227 g4py]$ ./configure linux64 --with-g4install-dir=/afs/cern.ch/sw/lcg/external/geant4/10.0.p03/x86_64-slc6-gcc47-opt/
Checking for system type ... linuxx8664gcc
Checking for prefix ... /afs/cern.ch/user/m/massi/work/g4py
Checking for lib dir ... /afs/cern.ch/user/m/massi/work/g4py/lib
Checking for G4 include dir ... /afs/cern.ch/sw/lcg/external/geant4/10.0.p03/x86_64-slc6-gcc47-opt//include/Geant4
Checking for G4 lib dir ... /afs/cern.ch/sw/lcg/external/geant4/10.0.p03/x86_64-slc6-gcc47-opt//lib64
Checking for G4 libs are shared libraray ... ok
Checking for Python include dir (pyconfig.h) ... /usr/include/python2.6
Checking for Python lib dir ... /usr/lib64
Checking for Boost include dir (boost/python.hpp) ... /usr/include
Checking for Boost version ... ok
Checking for Boost lib dir ... /usr/lib64
Checking for Boost Python lib name ... libboost_python.so
Checking for OpenGL support ...yes
Checking for GL2PS support ...yes
Checking for GDML support ...yes
Checking for Xerces-C include dir ...no

            /usr/include/xercesc does not exist.
            Try --with-xercesc-incdir option.

Gunter Folger added a comment - 25/Nov/14 6:56 PM

Please try the following, this got me past th econfigure step, but fails in compilation:
./configure linux64 --with-g4install-dir=/afs/cern.ch/sw/lcg/external/geant4/10.0.p03/x86_64-slc6-gcc47-opt/ --with-xercesc-incdir=/afs/cern.ch/sw/lcg/external/XercesC/3.1.1p2/x86_64-slc6-gcc47-opt/include --with-xercesc-libdir=/afs/cern.ch/sw/lcg/external/XercesC/3.1.1p2/x86_64-slc6-gcc47-opt/lib/
Massimiliano Ferro-Luzzi added a comment - 26/Nov/14 8:10 AM

Dear Gunter
yes, indeed, I tried and I passed the configure. Then, both make and make install generate about 10'000 error messages.
(so many that I decided not to post them here...). Is g4py still supposed to work after that ?
Massi