|
[Sponsors] |
December 27, 2009, 16:42 |
Installing OpenFOAM 1.6 on ubuntu 9.10
|
#1 |
New Member
Nabeel
Join Date: Nov 2009
Posts: 8
Rep Power: 16 |
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? Thank you in advance Nabeel |
|
December 28, 2009, 03:20 |
|
#2 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi Nabeel,
Try the tar flag xvzf, i.e. Code:
tar -xvzf OpenFOAM-1.6.General.gtgz
__________________
Regards, Gijs |
|
December 28, 2009, 03:37 |
|
#3 |
New Member
Nabeel
Join Date: Nov 2009
Posts: 8
Rep Power: 16 |
||
December 28, 2009, 03:48 |
|
#4 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hmm, are you unpacking the right version (32/64 bit)? Are you on 32 or 64 bit Ubuntu?
__________________
Regards, Gijs |
|
December 28, 2009, 03:52 |
|
#5 |
New Member
Nabeel
Join Date: Nov 2009
Posts: 8
Rep Power: 16 |
||
December 28, 2009, 04:13 |
|
#6 |
New Member
Nabeel
Join Date: Nov 2009
Posts: 8
Rep Power: 16 |
||
December 28, 2009, 04:17 |
|
#7 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Ok, time for the next stupid question ...
Are you unpacking in a directory called OpenFOAM and in the right order?
__________________
Regards, Gijs |
|
December 28, 2009, 13:02 |
|
#8 |
New Member
Nabeel
Join Date: Nov 2009
Posts: 8
Rep Power: 16 |
||
January 10, 2010, 05:27 |
|
#9 |
Member
|
What about tar -xzf OpenFoam-1.6.gtgz?
|
|
January 10, 2010, 05:52 |
|
#10 |
Senior Member
andy
Join Date: May 2009
Posts: 288
Rep Power: 18 |
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.
|
|
January 10, 2010, 13:15 |
|
#11 |
New Member
Eerin
Join Date: Jan 2010
Posts: 6
Rep Power: 16 |
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 |
|
March 9, 2010, 04:29 |
|
#12 |
Member
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16 |
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 Last edited by Disco_Caine; March 9, 2010 at 04:30. Reason: error |
|
March 9, 2010, 15:42 |
|
#13 |
Member
|
||
March 10, 2010, 03:15 |
|
#14 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
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.
__________________
Regards, Gijs |
|
March 10, 2010, 04:13 |
|
#15 |
Member
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16 |
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? |
|
March 10, 2010, 04:18 |
|
#16 | |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi Gustavo,
This line Quote:
Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/.OpenFOAM-1.6/bashrc
__________________
Regards, Gijs |
||
March 10, 2010, 04:33 |
|
#17 | |
Member
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16 |
Quote:
I am so positive it's correct, i shall copy it: Code:
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then . /etc/bash_completion fi . $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc Like, i did delete everything openFOAM yesterday, perhaps there is a conflict somewhere? |
||
March 10, 2010, 05:35 |
|
#18 | |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
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!
__________________
Regards, Gijs |
||
March 10, 2010, 06:01 |
|
#19 | |
Member
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16 |
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 # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything [ -z "$PS1" ] && return Code:
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then . /etc/bash_completion fi . /$HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc |
||
March 10, 2010, 06:21 |
|
#20 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
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 ).
__________________
Regards, Gijs |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem Installing OF 1.6 Ubuntu 9.10 (64 bit) - How to use GCC 4.4.1 | Future Science | OpenFOAM Installation | 43 | November 10, 2011 07:17 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 14:43 |
OpenFoam 1.6 Permissions in Ubuntu 9.04 | AlanR | OpenFOAM Installation | 14 | December 28, 2009 19:45 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 14:25 |