Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Luter 345 Experiments
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Installation of FLUKA
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Installation of FLUKA === In order to install the FLUKA software, one needs first to register at the [http://www.fluka.org main FLUKA website]. Once registered and approved (takes about a day), one then will have a FLUKA userid and password, and can download the Linux tarball: fluka2011.2c-linuxAA.tar.gz Put this file in your home directory. ==== Step 1: Unpack the tarball ==== <syntaxhighlight lang="bash"> cd mkdir fluka cd fluka tar -xvzf ../fluka2011.2c-linuxAA.tar.gz </syntaxhighlight> ==== Step 2: Install the Fortran Compiler ==== FLUKA requires (or at least seems to work best with) the g77 Fortran compiler, which is not included by default on most modern Linux systems (it has been replaced by gfortran). One needs, as superuser, to install the g77 compatibility rpm, with: <syntaxhighlight lang="bash"> sudo yum install compat-gcc-34-g77 </syntaxhighlight> Note: In principle, it should be possible to compile FLUKA with gfortran ... it would be good to investigate this possibility at some point. ==== Step 3: Install the appropriate i686 libraries ==== With g77, FLUKA will compile the needed binaries in 32-bit mode, even though one might be on a x86_64 (i.e 64-bit) system. Thus, it will look for 32-bit libraries at the linking stage, which probably are not installed (by default). Note that one should install the appropriate i686 version of whichever glibc-devel 64-bit libraries are installed. You can find out which version is installed on your system with: <syntaxhighlight lang="bash"> rpm -qa | grep glibc-devel </syntaxhighlight> For the jlabdaq system, version 2.12 is installed. Thus, the appropriate command to install the i686 libraries is: <syntaxhighlight lang="bash"> sudo yum install glibc-devel-2.12-1.149.el6.i686 </syntaxhighlight> ==== Step 4: Define FLUKA environment variables and update PATH ==== Edit ~/.bash_profile, and add the following lines: <syntaxhighlight lang="bash"> export FLUPRO=/home/username/fluka export FLUFOR=g77 export PATH=$FLUPRO:$FLUPRO/flutil:/usr/local/bin:$PATH </syntaxhighlight> where username is replaced with your actual user name on the system. You will need to source this file to get these defined the first time: <syntaxhighlight lang="bash"> source ~/.bash_profile </syntaxhighlight> ==== Step 5: Compile the FLUKA binaries ==== <syntaxhighlight lang="bash"> cd ~/fluka make </syntaxhighlight>
Summary:
Please note that all contributions to Luter 345 Experiments may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Luter 345 Experiments:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)