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

OF 1.6 installation on Ubuntu 7.04

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2009, 17:19
Default OF 1.6 installation on Ubuntu 7.04
  #1
New Member
 
Jon Mita
Join Date: Nov 2009
Posts: 8
Rep Power: 16
mstfl is on a distinguished road
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?

Thanks
mstfl is offline   Reply With Quote

Old   November 20, 2009, 17:32
Default
  #2
Member
 
Scott Ripplinger
Join Date: Mar 2009
Posts: 30
Rep Power: 17
sripplinger is on a distinguished road
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.
sripplinger is offline   Reply With Quote

Old   November 20, 2009, 23:02
Default
  #3
New Member
 
Jon Mita
Join Date: Nov 2009
Posts: 8
Rep Power: 16
mstfl is on a distinguished road
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?
mstfl is offline   Reply With Quote

Old   November 23, 2009, 11:37
Default
  #4
Member
 
Scott Ripplinger
Join Date: Mar 2009
Posts: 30
Rep Power: 17
sripplinger is on a distinguished road
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.
sripplinger is offline   Reply With Quote

Old   November 24, 2009, 18:52
Default
  #5
New Member
 
Jon Mita
Join Date: Nov 2009
Posts: 8
Rep Power: 16
mstfl is on a distinguished road
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
/etc/bash_completion
fi

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

I really appreciate your help sripplinger as I am new to Linux.
mstfl is offline   Reply With Quote

Old   November 25, 2009, 08:42
Default
  #6
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 17
fs82 is on a distinguished road
Where have you installed the sources of OpenFoam?
fs82 is offline   Reply With Quote

Old   November 25, 2009, 14:20
Default
  #7
New Member
 
Jon Mita
Join Date: Nov 2009
Posts: 8
Rep Power: 16
mstfl is on a distinguished road
By sources are you referring to all the .gtgz files? If so they're in $HOME/OpenFOAM
mstfl is offline   Reply With Quote

Old   November 26, 2009, 02:42
Default
  #8
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 17
fs82 is on a distinguished road
You are logged in as a user?
Where do you get the .bashrc from? Was this file allready existant as you add the line
$HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc?
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

Fabian
fs82 is offline   Reply With Quote

Old   November 26, 2009, 03:31
Default
  #9
New Member
 
Jon Mita
Join Date: Nov 2009
Posts: 8
Rep Power: 16
mstfl is on a distinguished road
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.

Thanks,
Jon
mstfl is offline   Reply With Quote

Old   December 1, 2009, 15:55
Default
  #10
New Member
 
Jon Mita
Join Date: Nov 2009
Posts: 8
Rep Power: 16
mstfl is on a distinguished road
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,
Jon
mstfl is offline   Reply With Quote

Old   March 27, 2010, 08:34
Default errors when installing OF-1.6
  #11
Member
 
xianghong wu
Join Date: Mar 2009
Posts: 57
Rep Power: 17
wendywu is on a distinguished road
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.

Wendy
wendywu is offline   Reply With Quote

Old   March 27, 2010, 10:53
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Wendy,

Download the file again, because it's corrupted
To confirm it's corrupted, do:
Code:
md5sum OpenFOAM-1.6.linuxGccDPOpt.gtgz
And compare the result with the value shown in OpenFOAM's download page here.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 29, 2010, 00:18
Default
  #13
Member
 
xianghong wu
Join Date: Mar 2009
Posts: 57
Rep Power: 17
wendywu is on a distinguished road
Yeah, you are right, I have got the complete download by another try.

Thank you very much.

Wendy
wendywu 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
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
OpenFoam 1.6 Permissions in Ubuntu 9.04 AlanR OpenFOAM Installation 14 December 28, 2009 19:45
OpenFOAM Installation Ubuntu 9.04 Problems Sumontro OpenFOAM Installation 8 July 21, 2009 21:40
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 03:47.