Message: Re: How to configure the envirennement Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to configure the envirennement 

Forum: Installation and Configuration
Re: Sad How to configure the envirennement (Arewa)
Date: 02 Feb, 2009
From: Dragos Constantin <Dragos Constantin>

Hi Arewa,
You have to specify where your libraries are installed. Let's say you use bash as your shell, then you should add this in your '.bash_profile' file (you will find this file in your home directory):

export LD_LIBRARY_PATH=/path/to/your/geant4/lib:$LD_LIBRARY_PATH

save the file, logout and login again. Now you should be able to run your application without errors.

You might want to enforce this for every user. To do this you must login as root. On RHEL for example you add a file, let's call it 'geant4.9.2.conf', in '/etc/'. This file will contain the path to your libraries, e.g.


and after you save the file you run 'ldconfig'. For more information you can read the manual for ldconfig with, 'man ldconfig'.

I hope this helps!

Best regards,

On Sat, 10 Jan 2009 09:38:43 GMT, Arewa wrote:
> I use GEANT4 under vimwar and as I'm beginner to GEANT4 so as linux I do
> not know if I have congigure the envirennement correctly. When I execut
> the example N03 (compilation is done) I have this messege :
> [ root@localhost N03]# $G4WORKDIR/bin/Linux-g++/exampleN03
> /home/local1/geant4/work/bin/Linux-g++/exampleN03: error while loading
> shared libraries: cannot open shared object
> file: No such file or directory [ root@localhost N03]#
> I think that the problem is in the configuration of the enverement. So,
> there are some one who can tell me step by step how to configure the
> envirennement ? I need the help
> Arewa

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Sad: Re: How to configure the envirennement   (Arewa - 23 Feb, 2009)
(_ None: Re: How to configure the envirennement   (John Allison - 24 Feb, 2009)
 Add Message Add Message
to: "Re: How to configure the envirennement"

 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 ]