|
[Sponsors] |
[OpenFOAM.org] Install OpenFOAM-2.1.1 on Fedora 17 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 9, 2012, 05:49 |
Install OpenFOAM-2.1.1 on Fedora 17
|
#1 |
Member
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 14 |
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. |
|
August 9, 2012, 07:21 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
August 9, 2012, 09:29 |
|
#3 |
Member
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 14 |
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 |
|
August 9, 2012, 11:04 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
If it's not working, do you have any other OpenFOAM installations in your machine?
__________________
|
||
August 9, 2012, 11:36 |
|
#5 |
Member
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 14 |
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 |
|
August 9, 2012, 11:44 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Uhm... those steps are just an example if you want to install OpenFOAM in a different folder. You don't need them if you're installing in "$HOME/OpenFOAM".
__________________
|
|
August 9, 2012, 12:43 |
|
#7 |
Member
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 14 |
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] |
|
August 9, 2012, 12:52 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Code:
cd $WM_PROJECT_DIR export WM_NCOMPPROCS=4 ./Allwmake > make.log 2>&1 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.
__________________
|
|
August 10, 2012, 05:41 |
|
#9 |
Member
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 14 |
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 |
|
August 10, 2012, 06:48 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
OK, start a new terminal and run:
Code:
source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc cd $WM_PROJECT_DIR pwd echo $HOME/OpenFOAM/OpenFOAM-2.1.1 But if they are identical, then continue by running: Code:
export WM_NCOMPPROCS=7 ./Allwmake > make.log 2>&1
__________________
|
|
August 10, 2012, 07:43 |
|
#11 |
Member
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 14 |
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'' |
|
August 10, 2012, 09:58 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions Code:
# .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/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
__________________
|
|
August 10, 2012, 10:54 |
|
#13 | |
Member
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 14 |
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:
|
||
August 10, 2012, 10:58 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 pwd echo $HOME/OpenFOAM/OpenFOAM-2.1.1
__________________
Last edited by wyldckat; August 10, 2012 at 11:04. Reason: forgot "what" in "And what happened" |
|
August 10, 2012, 11:29 |
|
#15 | ||
Member
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 14 |
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:
|
|||
August 10, 2012, 13:01 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 sudo yum groupinstall 'Development Tools' sudo yum install openmpi openmpi-devel qt-devel qt-webkit-devel zlib-devel cmake #OpenFOAM downloading and installation cd ~ mkdir OpenFOAM cd OpenFOAM wget "http://downloads.sourceforge.net/foam/OpenFOAM-2.1.1.tgz?use_mirror=mesh" -O OpenFOAM-2.1.1.tgz wget "http://downloads.sourceforge.net/foam/ThirdParty-2.1.1.tgz?use_mirror=mesh" -O ThirdParty-2.1.1.tgz tar xzf OpenFOAM-2.1.1.tgz tar xzf ThirdParty-2.1.1.tgz #forcefully load Open-MPI into the environment module load openmpi-x86_64 #here you can change 4 to the number of cores you've got source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI echo "module load openmpi-x86_64" >> $HOME/.bashrc echo "source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc $FOAM_SETTINGS" >> $HOME/.bashrc #forgot that we need to go into OpenFOAM's main folder as well cd OpenFOAM-2.1.1 # This next command will take a while... somewhere between 30 minutes to 3-6 hours. ./Allwmake > make.log 2>&1 #Run it a second time for getting a summary of the installation ./Allwmake > make.log 2>&1 #Edit the file "make.log" and check if there are any error messages #Create a tarball in case you've seen any errors and attach the file "make.log.tar.gz" to your next post. tar -czf make.log.tar.gz make.log Code:
#package installation sudo yum groupinstall 'Development Tools' sudo yum install openmpi openmpi-devel qt-devel qt-webkit-devel zlib-devel cmake #OpenFOAM downloading and installation cd ~ mkdir OpenFOAM cd OpenFOAM wget "http://downloads.sourceforge.net/foam/OpenFOAM-2.1.1.tgz?use_mirror=mesh" -O OpenFOAM-2.1.1.tgz wget "http://downloads.sourceforge.net/foam/ThirdParty-2.1.1.tgz?use_mirror=mesh" -O ThirdParty-2.1.1.tgz tar xzf OpenFOAM-2.1.1.tgz tar xzf ThirdParty-2.1.1.tgz #forcefully load Open-MPI into the environment module load openmpi-i386 #here you can change 4 to the number of cores you've got source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI WM_ARCH_OPTION=32 echo "module load openmpi-i386" >> $HOME/.bashrc echo "source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc $FOAM_SETTINGS" >> $HOME/.bashrc #forgot that we need to go into OpenFOAM's main folder as well cd OpenFOAM-2.1.1 # This next command will take a while... somewhere between 30 minutes to 3-6 hours. ./Allwmake > make.log 2>&1 #Run it a second time for getting a summary of the installation ./Allwmake > make.log 2>&1 #Edit the file "make.log" and check if there are any error messages #Create a tarball in case you've seen any errors and attach the file "make.log.tar.gz" to your next post. tar -czf make.log.tar.gz make.log Bruno
__________________
Last edited by wyldckat; August 11, 2012 at 11:48. Reason: Fedora uses "module load"... I had forgotten about it... and added explicit instructions for i386... |
|
August 10, 2012, 18:25 |
|
#17 | |
Member
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 14 |
this is results:
I copy the files of openfoam and thirdparty after ''cd openfoam'' because Idownload it and then unpack Quote:
|
||
August 10, 2012, 19:53 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
August 11, 2012, 05:08 |
|
#19 | ||
Member
hadi abdollahzadeh
Join Date: Aug 2012
Location: Iran-yasouj
Posts: 59
Rep Power: 14 |
hi Bruno
my fedora is 32bit and just run this order Quote:
Quote:
|
|||
August 11, 2012, 07:02 |
|
#20 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
.... I've updated the post and made the instructions for 64 and 32bit more explicit...
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
install openfoam in fedora | Ahmed Khattab | OpenFOAM Installation | 32 | September 23, 2011 12:11 |