CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   OF 1.6 installation on Ubuntu 7.04 (

mstfl November 20, 2009 18:19

OF 1.6 installation on Ubuntu 7.04
Hello everyone,

I've been trying to install OpenFOAM 1.6 32bit on Ubuntu 7.04 Feisty Fawn by following the readme and all goes well until the ". $HOME/.bashrc" line.

Terminal shows the following:

mstfl@mstfl:~$ . $HOME/.bashrc
bash: /etc/bash_completion: Permission denied

Any ideas how to remedy this?


sripplinger November 20, 2009 18:32

This may or may not be your problem, but could your permissions on your OpenFOAM directory be messed up? If you used a sudo command when downloading the source package it could have ended up with root only permissions. If that is the case you'll need to go in and add permissions for your user.

mstfl November 21, 2009 00:02

I actually downloaded the files on a different computer, put them on a flash drive and then copied them to my Ubuntu computer. Might this cause problems?

sripplinger November 23, 2009 12:37

Maybe I'm leading you in the wrong direction. If you just close and open your terminal it automatically runs your .bashrc on startup making it unnecessary to source it with . $HOME/.bashrc. If you have edited the .bashrc file already as instructed in the README, try just restarting your terminal and moving to the next step, which I think is running foamInstallationTest.

mstfl November 24, 2009 19:52

When I run the foamInstallationTest terminal gives me the following:

mstfl@mstfl:~$ /home/mstfl/OpenFOAM/OpenFOAM-1.6/bin/foamInstallationTest
Executing /home/mstfl/OpenFOAM/OpenFOAM-1.6/bin/foamInstallationTest:

Checking basic setup...

FATAL ERROR: OpenFOAM environment not configured.

Please refer to the installation section of the README file:
<OpenFOAM installation dir>/OpenFOAM-1.6/README
to source the OpenFOAM environment.

Also the last few lines of my $HOME/.bashrc file looks like this

# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then

. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc

I really appreciate your help sripplinger as I am new to Linux.

fs82 November 25, 2009 09:42

Where have you installed the sources of OpenFoam?

mstfl November 25, 2009 15:20

By sources are you referring to all the .gtgz files? If so they're in $HOME/OpenFOAM

fs82 November 26, 2009 03:42

You are logged in as a user?
Where do you get the .bashrc from? Was this file allready existant as you add the line
Normaly there is no .bashrc in a users home directory as far as I know for ubuntu. So you could create a new empty file and add the line mentioned above. Than type bash in your terminal and OpenFoam should work


mstfl November 26, 2009 04:31

Hi Fabian, I am logged in as a user, "mstfl"

The /home/mstfl/.bashrc file was already there when I looked for it according to the readme.

I'll try making a new blank .bashrc file as per your instructions.


mstfl December 1, 2009 16:55

Well, making a blank .bashrc file did get rid of the "permission denied" readout but the installation test still didn't work.

I downloaded all the files again and started a new clean install and it seems to be working now.

Thanks sripplinger and Fabian,

wendywu March 27, 2010 09:34

errors when installing OF-1.6
Sorry to disturb, but I would like to know if anyone has encountered the problem.
when I "tar xzf OpenFOAM-1.6.linuxGccDPOpt.gtgz", it stopped with:
gzip: stdin:invalid compressed data--format violated
tar: unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

I can not find the problem. Is there anybody could give me some advice please? thanks a lot.


wyldckat March 27, 2010 11:53

Greetings Wendy,

Download the file again, because it's corrupted :(
To confirm it's corrupted, do:

md5sum OpenFOAM-1.6.linuxGccDPOpt.gtgz
And compare the result with the value shown in OpenFOAM's download page here.

Best regards,

wendywu March 29, 2010 00:18

Yeah, you are right, I have got the complete download by another try.

Thank you very much.


All times are GMT -4. The time now is 07:58.