How to install OpenMC on Linux Redhat?

Hi, I’m using OpenMC on windows7, and it works perfectly, but I’m trying to install it on Linux redhat.

Since there is no information about redhat, how can I install??

Thanks.

forgot to post to list

I’m sorry, I’m totally new to Linux, so I have no clue how to install from A to Z…

2013년 6월 7일 금요일 오후 1시 7분 0초 UTC+9, Kyungkwan Noh 님의 말:

Hi Kyungwan,

There are detailed instructions on how to compile the code at http://mit-crpg.github.io/openmc/usersguide/install.html#building-from-source. Give that a look and if you have any problems with one of the steps, feel free to ask for help here.

Best regards,
Paul

You might want to take a look at an introductory guide to linux or something in that case. Also, Linux Users Groups (LUGS) are a great source of support. You can google for one in your area.

Hi Kyungwan,

I had access to a Red Hat Enterprise Linux 6 (RHEL) machine so I tried out the install instructions to see how they would work.
First off, OpenMC does not compile with the version of gfortran supplied with RHEL (Version 4.4). So as a first step, check the version you have available by typing:

gfortran -v
from the command line.
This command will tell you the version of the Gnu Compiler Collection, GCC. If this is less than 4.6, you will need to talk to a system administrator about seeing if other compilers are available. As a quick check, some production machines do have multiple compilers available, you will just need to switch between them with the ‘module load’ command. You can try this real quick. On the command line, type:

module avail gcc

If you have this module system on your RHEL machine, you may see options for different version of gcc. On the machine I am using, the output is as follows:

`
$ module avail gcc

---------------------------- /usr//misc/modules ----------------------------
gcc/4.4.6 gcc/4.7.0(default)
`

This tells me gcc 4.7 is available (which provides gfortran 4.7). To load this use:

module load gcc/4.7.0

You should be all set, but run the gfortran -v command again to make sure the version is now 4.7.0.

After running the ‘make’ command, you will have an openmc executable in the src/ directory. You can do what you would like with this program, and running the ‘sudo make install’ command may not work as you’d expect if you do not have root privileges. I’ll leave the decision of what to do about that up to you and your system admin.

Hope this helps,
Adam