Message: Re: Building 4.9.5 with pre-downloaded data files Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re: Building 4.9.5 with pre-downloaded data files 

Forum: Installation and Configuration
Re: Question Building 4.9.5 with pre-downloaded data files (Michael)
Re: Note Re: Building 4.9.5 with pre-downloaded data files (Ben Morgan)
Re: Agree Re: Building 4.9.5 with pre-downloaded data files (Michael)
Date: 13 Mar, 2012
From: Ben Morgan <Ben Morgan>

On Tue, 13 Mar 2012 12:30:36 GMT, Michael wrote:
> Your suggestion sounds great. I could create a bash script and run it
> using . ./script.sh (so that the env variables stay after the script has
> run) every time I log into a terminal. I wrongly assumed that the data
> files would be used somewhere in the build...
> 
> I guess I could use the source command there as well? Do we still need
> to export LD_LIBRARY_PATH etc on Linux?

Yes, you can source your script with the data variables from your shell profile/rc file as needed. You don't need to source this to do a build of Geant4, at least, it will not affect anything. You still need to have LD_LIBRARY_PATH and so on set up so that an application can find the Geant4 libraries at runtime. That should be taken care of by sourcing the geant4.sh script as described in the Setup Chapter of the Installation Guide. If you're building applications against Geant4 using the classic Geant4 Makefiles, then you'll also need to source the geant4make.sh script (see this section of the Installation Guide). However, like the data libraries, you don't need any of the the variables set by these scripts to do a build of Geant4 itself - they are purely for post-build/install use.

Hope that helps,

Ben.

 Add Message Add Message
to: "Re: Building 4.9.5 with pre-downloaded data files"

 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 ]