CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Installing OpenFOAM 1.6 on ubuntu 9.10

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2009, 16:42
Default Installing OpenFOAM 1.6 on ubuntu 9.10
  #1
New Member
 
Nabeel
Join Date: Nov 2009
Posts: 8
Rep Power: 16
nabeels is on a distinguished road
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
nabeels is offline   Reply With Quote

Old   December 28, 2009, 03:20
Default
  #2
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Hi Nabeel,

Try the tar flag xvzf, i.e.
Code:
tar -xvzf OpenFOAM-1.6.General.gtgz
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   December 28, 2009, 03:37
Default
  #3
New Member
 
Nabeel
Join Date: Nov 2009
Posts: 8
Rep Power: 16
nabeels is on a distinguished road
Quote:
Originally Posted by gwierink View Post
Hi Nabeel,

Try the tar flag xvzf, i.e.
Code:
tar -xvzf OpenFOAM-1.6.General.gtgz
I tried the command u gave me, and I got the same error message
nabeels is offline   Reply With Quote

Old   December 28, 2009, 03:48
Default
  #4
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Hmm, are you unpacking the right version (32/64 bit)? Are you on 32 or 64 bit Ubuntu?
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   December 28, 2009, 03:52
Default
  #5
New Member
 
Nabeel
Join Date: Nov 2009
Posts: 8
Rep Power: 16
nabeels is on a distinguished road
Quote:
Originally Posted by gwierink View Post
Hmm, are you unpacking the right version (32/64 bit)? Are you on 32 or 64 bit Ubuntu?
I'm on 64 bit Ubuntu!
nabeels is offline   Reply With Quote

Old   December 28, 2009, 04:13
Default
  #6
New Member
 
Nabeel
Join Date: Nov 2009
Posts: 8
Rep Power: 16
nabeels is on a distinguished road
Quote:
Originally Posted by nabeels View Post
I'm on 64 bit Ubuntu!
yes, i used the right version
nabeels is offline   Reply With Quote

Old   December 28, 2009, 04:17
Default
  #7
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Ok, time for the next stupid question ...

Are you unpacking in a directory called OpenFOAM and in the right order?
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   December 28, 2009, 13:02
Default
  #8
New Member
 
Nabeel
Join Date: Nov 2009
Posts: 8
Rep Power: 16
nabeels is on a distinguished road
Quote:
Originally Posted by gwierink View Post
Ok, time for the next stupid question ...

Are you unpacking in a directory called OpenFOAM and in the right order?
I guess so. I started unpacking OpenFOAM-1.6.General.gtgz then ThirdParty.General.gtgz and in the directory called OpenFOAM
nabeels is offline   Reply With Quote

Old   January 10, 2010, 05:27
Default
  #9
Member
 
Arina
Join Date: Oct 2009
Location: Belarus
Posts: 71
Rep Power: 17
Akuji is on a distinguished road
Send a message via ICQ to Akuji
What about tar -xzf OpenFoam-1.6.gtgz?
Akuji is offline   Reply With Quote

Old   January 10, 2010, 05:52
Default
  #10
Senior Member
 
andy
Join Date: May 2009
Posts: 288
Rep Power: 18
andy_ is on a distinguished road
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.
andy_ is online now   Reply With Quote

Old   January 10, 2010, 13:15
Default
  #11
New Member
 
Eerin
Join Date: Jan 2010
Posts: 6
Rep Power: 16
eros is on a distinguished road
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
eros is offline   Reply With Quote

Old   March 9, 2010, 04:29
Default
  #12
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16
Disco_Caine is on a distinguished road
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
Disco_Caine is offline   Reply With Quote

Old   March 9, 2010, 15:42
Default
  #13
Member
 
Arina
Join Date: Oct 2009
Location: Belarus
Posts: 71
Rep Power: 17
Akuji is on a distinguished road
Send a message via ICQ to Akuji
Quote:
Originally Posted by Disco_Caine View Post
. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
-----------------------------------------------------------------------------
As i understand right, your truubble may be in incorrect command.
try to type ./$HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
Akuji is offline   Reply With Quote

Old   March 10, 2010, 03:15
Default
  #14
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
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
and add
Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
at the end of that file and save it. Then, you need to make the shell aware of the new environment variable by sourcing it with
Code:
. $HOME/.bashrc
(notice the dot (".") at the start) or by just opening a new terminal.

Also, I'd remove the line you added to $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc.
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   March 10, 2010, 04:13
Default
  #15
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16
Disco_Caine is on a distinguished road
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?
Disco_Caine is offline   Reply With Quote

Old   March 10, 2010, 04:18
Default
  #16
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Hi Gustavo,

This line
Quote:
bash: /home/gustavo/OpenFOAM/OpenFOAM-1.6/.OpenFOAM-1.6/bashrc: No such file or directory
looks like you have the wrong line in $HOME/.bashrc. Are you sure that in $HOME/.bashrc it reads
Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
and not
Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/.OpenFOAM-1.6/bashrc
?
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   March 10, 2010, 04:33
Default
  #17
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16
Disco_Caine is on a distinguished road
Quote:
Originally Posted by gwierink View Post
Hi Gustavo,

This line
looks like you have the wrong line in $HOME/.bashrc. Are you sure that in $HOME/.bashrc it reads
Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
and not
Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/.OpenFOAM-1.6/bashrc
?

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
I copied a little more just to show that i put it way at the end of the file.

Like, i did delete everything openFOAM yesterday, perhaps there is a conflict somewhere?
Disco_Caine is offline   Reply With Quote

Old   March 10, 2010, 05:35
Default
  #18
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Quote:
Code:

if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi

. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
The above really looks like you added ". $HOME/OpenFOAM/openFOAM-1.6/etc/bashrc" to the file $HOME/OpenFOAM/openFOAM-1.6/etc/bashrc.

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
gwierink is offline   Reply With Quote

Old   March 10, 2010, 06:01
Default
  #19
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16
Disco_Caine is on a distinguished road
Quote:
Originally Posted by gwierink View Post
The above really looks like you added ". $HOME/OpenFOAM/openFOAM-1.6/etc/bashrc" to the file $HOME/OpenFOAM/openFOAM-1.6/etc/bashrc.

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!
I do not fully understand what you are telling me, because i added ". $HOME/OpenFOAM/openFOAM-1.6/etc/bashrc" to the file i opened with gedit $HOME/.bashrc, just like you said earlier.

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
At the bottom:

Code:
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi

. /$HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
So, obviously something is wrong, should i delete that line from the bashrc (the top line)?
Disco_Caine is offline   Reply With Quote

Old   March 10, 2010, 06:21
Default
  #20
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
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
Both
Code:
. ~/OpenFOAM/OpenFOAM-1.6/.OpenFOAM-1.6/bashrc
and
Code:
. /$HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
are wrong. So, I would delete ". ~/OpenFOAM/OpenFOAM-1.6/.OpenFOAM-1.6/bashrc" and ". /$HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc" from $HOME/.bashrc
and put in ". $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc" (without the parentheses of course ).
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 04:56.