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 :)). |
All times are GMT -4. The time now is 17:59. |