Install OpenFOAM-2.1.1 on Fedora 17
hi
I have a fedora 17 and try to install open foam-2.1.1 but I dont understan this sentences and stop in this step Building the Sources Go to the top-level source directory $WM_PROJECT_DIR and execute the top-level build script ./Allwmake. In principle this will build everything, but if problems occur with the build order it may be necessary to update the environment variables and re-execute ./Allwmake. I am do this but I am not sure is correct becuse have a error [hadi@hadi ~]$ cd $HOME/OpenFOAM/OpenFOAM-2.1.1 [hadi@hadi OpenFOAM-2.1.1]$ ./Allwmake ./Allwmake: line 4: wmakeCheckPwd: command not found Error: Current directory is not $WM_PROJECT_DIR The environment variables are inconsistent with the installation. Check the OpenFOAM entries in your dot-files and source them. |
Greetings Hadi and welcome to the forum!
That message is indicating that you should first run this command: Code:
source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc Best regards, Bruno |
thanks
I've done it and after it I got to this sentence I am acting in accordance with site instructions http://www.openfoam.org/download/source.php |
Quote:
If it's not working, do you have any other OpenFOAM installations in your machine? |
I have no other OpenFOAM installations in my notebook
I do this order: 1-mkdir $HOME/OpenFOAM copy the OpenFOAM-2.1.1.tgz and ThirdParty-2.1.1.tgz to directory 2-cd $HOME/OpenFOAM 3-tar xzf OpenFOAM-2.1.1.tgz 4-tar xzf ThirdParty-2.1.1.tgz 5-sudo yum groupinstall 'Development Tools 6-sudo yum install openmpi openmpi-devel qt-devel qt-webkit-devel zlib-devel copy the source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc in to end line of the bashrc file 8-source $HOME/.bashrc and copy these to terminal 9-export FOAM_INST_DIR=/data/app/OpenFOAM 10-foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.1.1/etc/bashrc 11-[ -f $foamDotFile ] && . $foamDotFile and then check gcc and flex version and now i dont know what to do? for example: when i do 9,10,11 have no error and I think is correct [hadi@hadi OpenFOAM]$ export FOAM_INST_DIR=/data/app/OpenFOAM [hadi@hadi OpenFOAM]$ foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.1.1/etc/bashrc [hadi@hadi OpenFOAM]$ [ -f $foamDotFile ] && . $foamDotFile |
Quote:
|
ok
now What should I do after 8 ? I did not ever work with Linux and I did not install the open foam. [QUOTE=dark lancer;376246 I do this order: 1-mkdir $HOME/OpenFOAM copy the [URL="http://downloads.sourceforge.net/foam/OpenFOAM-2.1.1.tgz?use_mirror=mesh"] OpenFOAM-2.1.1.tgz[/URL] and ThirdParty-2.1.1.tgz to directory 2-cd $HOME/OpenFOAM 3-tar xzf OpenFOAM-2.1.1.tgz 4-tar xzf ThirdParty-2.1.1.tgz 5-sudo yum groupinstall 'Development Tools 6-sudo yum install openmpi openmpi-devel qt-devel qt-webkit-devel zlib-devel copy the source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc in to end line of the bashrc file 8-source $HOME/.bashrc] |
Code:
cd $WM_PROJECT_DIR 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. |
when run these order ,no happen
[hadi@hadi ~]$ cd $WM_PROJECT_DIR When I run the command I would need to enter the desired directory but no happen? [hadi@hadi ~]$ export WM_NCOMPPROCS=7 [hadi@hadi ~]$ ./Allwmake > make.log 2>&1 [hadi@hadi ~]$ just in my HOME create a make.log file that inside: bash: ./Allwmake: No such file or directory |
OK, start a new terminal and run:
Code:
source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc But if they are identical, then continue by running: Code:
export WM_NCOMPPROCS=7 |
when run first line:
[hadi@hadi OpenFOAM]$ source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc bash: end-of-file: command not found... a question؟؟ I must copy the''source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc'' before or after the ''end-of-file'' into the bashrc file? I copy after the''end-of-file'' |
Hi Hadi,
Sorry I took so long to answer, but I didn't have sooner the computer resources for testing a Fedora 17 installation. The idea is add the line: Code:
source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc The original "~/.bashrc" on your Fedora installation should look something like this: Code:
# .bashrc Code:
# .bashrc After this, start a new terminal, so we can be certain it's s clean environment. Then run the commands I indicated in the previous post. Best regards, Bruno |
I really thank you for the time I leave.
I'm a little confused. this is my bashrc file I have not found what you were told. Quote:
|
OK, no problem.
Have you managed to edit the file "~/.bashrc" with success? And what happened after running these lines: Code:
cd $WM_PROJECT_DIR |
I do not edit my bashrc file because i do not understand where add the
Quote:
I remove the openfoam and thirdparty then you say to me what to do and Events that occur for every order I place it here. I appreciate you for this. Quote:
|
Hi Hadi,
Sorry, it'll take me a while to write up step-by-step instructions... I've been planning on doing this, but it takes time to write a full step-by-step guide. So instead, I'll write a copy-paste guide for Fedora x86_64 (and i386), based on the official instructions at http://www.openfoam.org/download/source.php A few notes before you start copy-pasting:
Code:
#package installation Code:
#package installation Bruno |
this is results:
I copy the files of openfoam and thirdparty after ''cd openfoam'' because Idownload it and then unpack Quote:
|
Hi Hadi,
Please review the instructions. I had forgotten about the "module load" feature that Fedora uses... and is requires before the last command you used. Best regards, Bruno |
hi Bruno
my fedora is 32bit and just run this order Quote:
Quote:
|
.... I've updated the post and made the instructions for 64 and 32bit more explicit...
|
All times are GMT -4. The time now is 19:11. |