CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installing OpenFOAM 2.1.1 on CentOS 5.x (http://www.cfd-online.com/Forums/openfoam-installation/107980-installing-openfoam-2-1-1-centos-5-x.html)

phuchuynh October 10, 2012 06:43

Installing OpenFOAM 2.1.1 on CentOS 5.x
 
Quote:

Originally Posted by wyldckat (Post 376283)
Code:

cd $WM_PROJECT_DIR
export WM_NCOMPPROCS=4
./Allwmake > make.log 2>&1

You can replace the 4 for the number of cores your machine has.
This is what is explained in the sections "Building the Sources" and "wmakeScheduler for faster compilation", although this last one is the generic version of second line I've shown in the code above.


Hi Bruno ,

I would like to install OpenFOAM-2.1.1 on it CentOS release 5.5 (x86_64). I use to install OpenFOAM in webpage "http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL" , but
I commanded code and had some trouble :
Code:

[phuc.ht@hpc OpenFOAM]$ source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_COMPILER=Gcc44 WM_MPLIB=SYSTEMOPENMPI
-bash: mpicc: command not found
-bash: mpicc: command not found

My PC have "mpicc" in "/opt/openmpi/bin/mpicc"


Phuc

wyldckat October 10, 2012 16:58

Greetings Phuc,

I hope you don't mind, I moved your post to a new thread and assigned this thread for those instructions at the wiki, namely there: http://openfoamwiki.net/index.php/In...HEL#CentOS_5.8

As for the reported issue: if mpicc hasn't been found, then the reason should be because the commands on step #2 were not successful. If it didn't, you can try running the following command, which is the interactive alternative:
Code:

mpi-selector-menu
Or maybe because you didn't start a new terminal, as indicated in step #4.

Nonetheless, I haven't confirmed this with CentOS 5.5, so I can't be certain. I'll only be able to look into this next weekend... I think...

Best regards,
Bruno


All times are GMT -4. The time now is 19:02.