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

Error trying to install 2.1.x on Ubuntu 12.04

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 25, 2012, 22:46
Default Error trying to install 2.1.x on Ubuntu 12.04
  #1
New Member
 
Join Date: Jun 2012
Posts: 5
Rep Power: 13
Tetragramm is on a distinguished road
Hi everyone. I've gotten stuck at the part where I'm supposed to source the bashrc. When I input
Code:
source /opt/OpenFOAM-2.1.x/etc/bashrc
I get a string of errors saying
Code:
-su: /root/OpenFOAM/OpenFOAM-2.1.x/<Stuff>: No such file or directory
where <Stuff> is things like /bin/foamEtcFile or /etc/config/settings.sh
All told there are 11 files or directories not found.

Any ideas what I'm doing wrong?

Thanks.
Tetragramm is offline   Reply With Quote

Old   June 26, 2012, 02:34
Default
  #2
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 Tetragramm,

Building OpenFOAM (or almost anything else) as root is not a good idea, because one wrong key push and you might damage your OS installation... and with luck, spend an additional 30 or more minutes reinstalling it.

If you still want to take that risk, then you should have read the whole installation instructions page - http://www.openfoam.org/download/git.php - more specifically section "Setting environment variables for alternative locations":
Quote:
Code:
export FOAM_INST_DIR=/data/app/OpenFOAM 
foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.1.x/etc/bashrc 
[ -f $foamDotFile ] && . $foamDotFile
If you don't understand this example, then perhaps you better not do these instructions as root

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 26, 2012, 07:21
Default
  #3
New Member
 
Join Date: Jun 2012
Posts: 5
Rep Power: 13
Tetragramm is on a distinguished road
That was it, thanks. I'm not too worried about messing up. It's running on a VM with a restore image ready just before I started the install process. Also, because I'm using this to set up a LiveCD, I don't have a choice but to run in root, because that's how UCK works.

I'm being very careful not to make any typos, the problem comes when I don't understand something, or worse, misunderstand it. In this case, I thought that was going to be an output directory and had it set somewhere that didn't exist.

Thanks for you help.
Tetragramm is offline   Reply With Quote

Reply


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
Errors while installing openfoam on ubuntu 12.04 AND 11.10 fshak92 OpenFOAM Installation 27 May 1, 2021 12:10
[foam-extend.org] OpenFOAM-1.6-ext on Ubuntu 12.04 install errors benk OpenFOAM Installation 37 August 8, 2016 11:48
Openfoam 2.1 installation in ubuntu 12.04 jsm OpenFOAM Installation 11 May 7, 2012 04:56
how to install openfoam on ubuntu 1.4 ? seyedashraf OpenFOAM Installation 8 August 23, 2011 05:50
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 14:43


All times are GMT -4. The time now is 03:26.