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

Setting OpenFOAM Environment Variables During Installation on OpenSuse 13.2

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

Like Tree1Likes
  • 1 Post By m_ridzon

Reply
 
LinkBack Thread Tools Display Modes
Old   March 30, 2015, 16:32
Default Setting OpenFOAM Environment Variables During Installation on OpenSuse 13.2
  #1
New Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 20
Rep Power: 3
m_ridzon is on a distinguished road
I am following the instructions to install OpenFOAM 2.3.1 on my Linux OpenSuse 13.2 system. At this following website, I am stuck at "Setting Environment Variables."

http://www.openfoam.org/download/source.php

I sense that my struggle is elementary because I'm new to Linux and keep getting stuck on the simple things.

I am installing in my user Home directory:

/Home/Matt/OpenFOAM

Therein, I un-tarred/un-zipped the OpenFOAM and ThirdParty compressed files. With "zypper," I installed the dependent packages listed at the above website for OpenSuse. I am now stuck trying to set the environment variables. Per the instructions, I opened bashrc in GEdit and appended the end of the file with the very final "source" line; the end of the file is as such:

Quote:
# cleanup environment:
# ~~~~~~~~~~~~~~~~~~~~
unset cleaned foamClean foamInstall foamOldDirs
unset _foamSource _foamEval

# ----------------------------------------------------------------- end-of-file
source $HOME/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc
In the terminal window, I then issue:

Code:
source $HOME/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc
and get a long repetitive string that looks like this:
Code:
mpicc: command not found
mpicc: command not found
mpicc: command not found
mpicc: command not found
mpicc: command not found
mpicc: command not found
Can anybody tell me what I'm doing wrong? I'm new to Linux, so please provide answers in simple terms with clear explanation, since I'm trying to learn and get a better understanding.

Thanks,
M Ridzon
m_ridzon is offline   Reply With Quote

Old   March 30, 2015, 17:56
Default
  #2
New Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 20
Rep Power: 3
m_ridzon is on a distinguished road
Update: I figured out how to set the environment variables after further digging. The installation instructions say to edit the final line of
Quote:
.bashrc
(note the '.' before filename)
with
Quote:
source $HOME/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc
My error was because I didn't realize .bashrc was a hidden file in the $HOME directory. Instead, I was incorrectly editing the final line of bashrc (without the preceding '.') in the OpenFOAM directory:
Quote:
$HOME/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc
Bottom line...They both have the same file name and I didn't realize the period preceding the file name meant anything special.

Now I'm moving onto the next step.
wyldckat likes this.
m_ridzon is offline   Reply With Quote

Reply

Tags
environment variables, installation, openfoam 2.3.1, opensuse 13.2

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
Installation of OpenFOAM 1.7.x on openSUSE 11.4 alberto OpenFOAM Installation 7 May 10, 2011 04:23
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
Critical errors during OpenFoam installation in OpenSuse 11.0 amscosta OpenFOAM 5 May 1, 2009 14:06
Setting Environment Variables PETER P. CFX 1 August 3, 2008 18:33


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