Installing OpenFOAM 1.6 on ubuntu 9.10
Hello Friend
I'm trying to install OpenFOAM 1.6 (http://www.opencfd.co.uk/openfoam/linux64.html) on my ubuntu 1.6 laptop. After downloading the files available in the above link, I tried to unpack them using the command: tar xvfo <file_name>. When I applied this command to the file OpenFOAM-1.6.General.gtgz, the process aborted in the middle and the following message appeared: tar: Exiting with failure status due to previous errors tar: OpenFOAM-1.6/doc/Doxygen/html/classFoam_1_1compressible_1_1RASModels_1_1mut SpalartAllmarasStandardRoughWallFunctionFvPatchSca larField_51218d13afa96ba17d82c deee1f2b25a_icgraph.md5: Cannot open: File name too long This error has occurred for some other files, can anyone help me with what to do to be able to unpack the file successfully?http://ubuntuforums.org/images/smilies/confused.gif Thank you in advance Nabeel |
Hi Nabeel,
Try the tar flag xvzf, i.e. Code:
tar -xvzf OpenFOAM-1.6.General.gtgz |
Quote:
|
Hmm, are you unpacking the right version (32/64 bit)? Are you on 32 or 64 bit Ubuntu?
|
Quote:
|
Quote:
|
Ok, time for the next stupid question ;) ...
Are you unpacking in a directory called OpenFOAM and in the right order? |
Quote:
|
What about tar -xzf OpenFoam-1.6.gtgz?
|
Try changing the name of the files so that they end in ".tgz". Then double clicking with the file manager and let Ubuntu do its own thing. If this does not work it is likely the file was corrupted when downloaded.
|
I think error come when tar try to write such long named file.
So broblem comes from filesystem limits. Try other filesystem there are many choices in linux. -- Eerin |
Hi, seeing as this a topic on installing openfoam in ubuntu 9.10, ill post my doubt here. I have manage to extract the files, but when it comes to sourcing the bashrc file. Nothing happens, and then when i try to run the foaminstallationtest script, nothing happens. I think tis pretty obvious, something should happen.
I guess, my actual question is, firstly, how do i run the script? As to see all the errors and post them back here. Also, this is where i put the command line on the bashrc, since it said the end of the file: # cleanup environment: # ~~~~~~~~~~~~~~~~~~~~ unset cleanEnv cleanProg foamInstall foamOldDirs unset _foamSource # . $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc ----------------------------------------------------------------------------- I hope that's fine. Thank you in advanced |
Quote:
try to type ./$HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc |
Hi GB,
It seems you have added ". $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc" at the end of the $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc file. Now . $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc is kind of sourcing itself. What you need to do is open up .bashrc in your home directory with e.g. Code:
gedit $HOME/.bashrc Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc Code:
. $HOME/.bashrc Also, I'd remove the line you added to $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc. |
Hi gijs, i did what you said, i removed what i had added to the bashrc and then i followed your steps, and i got this error:
bash: /home/gustavo/OpenFOAM/OpenFOAM-1.6/.OpenFOAM-1.6/bashrc: No such file or directory What is strange is that its looking for it OpenFOAM-1.6/OpenFOAM-1.6, ofcourse, i dont have the OpenFOAM-1.6 duplicated, that part i did right. I also get the error just by adding the /, akuji. My guess is that maybe i deleted something wrong, or its not removed, hidden there, and that's what causing it to mess up? |
Hi Gustavo,
This line Quote:
Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/.OpenFOAM-1.6/bashrc |
Quote:
I am so positive it's correct, i shall copy it: Code:
Like, i did delete everything openFOAM yesterday, perhaps there is a conflict somewhere? |
Quote:
You need to add ". $HOME/OpenFOAM/openFOAM-1.6/etc/bashrc" to the end of file $HOME/.bashrc, not to the end of file $HOME/OpenFOAM/openFOAM-1.6/etc/bashrc! :) |
Quote:
However, from what you said, i decided to look at the hidden files in the home directory, and the .bashrc (in home) says this: At the top: Code:
. ~/OpenFOAM/OpenFOAM-1.6/.OpenFOAM-1.6/bashrc Code:
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then |
Ah, right. These things can be a bit confusing sometimes at a distance via a forum :).
In the file .bashrc in the home dir ($HOME/.bashrc) there should be only one line that reads Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc Code:
. ~/OpenFOAM/OpenFOAM-1.6/.OpenFOAM-1.6/bashrc Code:
. /$HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc and put in ". $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc" (without the parentheses of course :)). |
ok gijs, i think that just about did it!
Well at least i typed this in the terminal: . $HOME/.bashrc (should i type source instead of the period?) And nothing happened, just a new line came, i think that is good. Now i have to run the foamInstallationScript. And it worked! Base configuration ok. critical systems ok. Thank you so much for your time gijs, and for your patience. I know it is hard, but you have no idea how much you have helped me! |
Fantastic! That is good to hear, I am happy it works now! Happy foaming! :)
Quote:
Quote:
|
Hi, I am installing OF-1.6 on Ubuntu 8.1.
I have extracted files successfully into the Home/<username>/OpenFoam/ But not able to source bashrc file. Also from the comments of previous forum had confused me, which file to edit bashrc i n home location or from OpenFoam/OpenFOAM-1.6/etc location. I m getting following msg after using source bashrc command.. bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/settings.sh: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/aliases.sh: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/apps/paraview3/bashrc: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/apps/ensight/bashrc: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory plz help me |
Hi Javed,
There are two bashrc files; one of OpenFOAM (that lives in ~/OpenFOAM/OpenFOAM-1.6/etc/) and one of your system (the user that is) (that lives in ~/.bashrc). Now, for a normal installation of OF (no compilation) you only need to change ~/.bashrc (notice the dot (".")) to make the shell aware of OF's environment variables. So, the recipe is as follows:
|
Thanks Gijs for the quick reply.
I followed the same procedure considering . in every single command. But still getting the error like iyer@iyer-desktop:~$ . $HOME/.bashrc bash: /home/iyer/OpenFOAM/OpenFOAM-1.6/etc/bashrc: No such file or directory want to clear two things 1) i m editing ~/.bashrc file of system and typing the command . $HOME/.bashrc in my home directory (name-/home/iyer). 2) Should i run :/$ source OpenFOAM-1.6/etc/bashrc before editing bashrc file. I need ur help. plz reply. Thanks |
Sir, One more thing, we i remove the . $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc form the ~/.bashrc file,
1) I m neither getting an error or comment see the following.(as per ur direction) iyer@iyer-desktop:~$ . $HOME/.bashrc iyer@iyer-desktop:~$ but when i check in the OpenFoam command I m getting one error as follow iyer@iyer-desktop:~/OpenFoam$ source /OpenFOAM-1.6/etc/bashrc bash: /OpenFOAM-1.6/etc/bashrc: No such file or directory I m not getting what is going on..plz help |
ok, let's get some things vlear here
Hi Javed,
Quote:
First, let's get some syntax clear:
Now, the idea behind the "environment variable and sourcing" stuff is that OF has its own bashrc file, through which OF makes the shell (the terminal where you type and calculate stuff) aware of the different parts OF needs to run. There it is stated what C++ compiler to use, where it is, what ParaView to use etc. The thing is that you need to make your "own shell" (the terminal you open to type commands) aware of these rules for OF (stated in the $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc file). To do that, you do not need to change $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc, but you need to make $HOME/.bashrc aware of $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc. This is done by adding the line Code:
. $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc Code:
. $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc When you remove the line Code:
. $HOME/OpenFoam/OpenFOAM-1.6/etc/bashrc Code:
. $HOME/.bashrc Code:
source $HOME/.bashrc So, to make a long story short, do this: Quote:
Quote:
Quote:
Quote:
Hope this clears up some things. :) |
Thanks Gijs,
I have successfully installed the openfoam, thanks a lot for the procedure(step by step:)) u sent. Can u plz do one more favour just want to know how to open GUI , or any link which can guide for further work. Thanks a lot again. Javed |
You're very welcome Javed, I'm glad it worked :).
Quote:
Quote:
|
Thanks Gijs for the encouragement..
I will start from the tuts now.. Thanks a lot again for the help.. |
Hi,
It worked for me also to set up .bashrc file. Thanks for your valuable advice. |
openfoam installation
please send me the detail procedure for installation of openfoam1.6 working on ubuntu 9.10, 32 bit system
|
Hi Venkatesh,
Quote:
|
All times are GMT -4. The time now is 00:47. |