|Message: error while loading shared libraries: libxerces-c-3.1.so||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I am using a Macbook with MacOS X 10.5.8 with VMWARE Fusion 3.1.2 running a Scientific Linux 5.5 virtual machine. I have gcc version 4.1.2 on the Scientific Linux. I am installing geant4 in the Scientific Linux Virtual machine.
I am using a attempting to get a GEANT4.9.2.p01 installation to work with GDML.
With Geant4 removed from the system for a clean install I downloaded the xerces-c-3.1.1 source from http://xerces.apache.org/xerces-c/download.cgi. With that I then built it using
./configure --prefix /programs/xerces-c-3.1.1
sudo make install
I set the environment variables
CLHEP was built in the /programs/CLHEP folder with
./configure --prefix /programs/CLHEP
with those in places I unpacked the geant4.9.2.p01.tar.gz, and the data files for it. All of this went into the /programs/geant4.9.2.p01 folder. From that folder I ran the commands
I pointed out the CLHEP folder when requested, told it to use OpenGL and Raytracer, and indicated yes to build GDML, it could not find Xerces-c in the default location so I told it to look in /programs/xerces-c-3.1.1 . This stage reported no errors.
I next ran ./Configure to get the env.sh file generated.
I set the environment variables
To test if it would work I copied the N01 and G01 to the g4work folder. Both of them will make without errors, but when I attempt to run the file as shown below it says libxerces-c-3.1.1.so cannot be found.
[Mark@localhost G01]$ make clean
Cleaning up ...
[Mark@localhost G01]$ make
Making dependency for file load_gdml.cc ...
Making dependency for file src/PrimaryGeneratorAction.cc ...
Making dependency for file src/PhysicsList.cc ...
Compiling PhysicsList.cc ...
Compiling PrimaryGeneratorAction.cc ...
Creating/replacing object files in /home/Mark/g4work/tmp/Linux-g++/load_gdml /libload_gdml.a ...
ar: creating /home/Mark/g4work/tmp/Linux-g++/load_gdml/libload_gdml.a
Compiling load_gdml.cc ...
load_gUsing granular libraries ...
Linking load_gdml ...
[Mark@localhost G01]$ load_gdml axes.gdml
load_gdml: error while loading shared libraries: libxerces-c-3.1.so: cannot open shared object file: No such file or directory
If on the command line I type locate libxerces-c-3 it I get
[Mark@localhost ~]$ locate libxerces-c-3
so the file is present. Following advice found online I copied the .so in question to /usr/lib and /usr/local/lib and still the file is not found when I try to run the N01 or G01 even if the the example are rebuilt.
Does anyone have any advice as to why this could be happening?
|Inline Depth:||Outline Depth:||Add message:|