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

[OpenFOAM.org] Setting OpenFOAM Environment Variables During Installation on OpenSuse 13.2

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By m_ridzon
  • 1 Post By m_ridzon

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2015, 16:32
Default Setting OpenFOAM Environment Variables During Installation on OpenSuse 13.2
  #1
Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 11
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
elvis likes this.
m_ridzon is offline   Reply With Quote

Old   March 30, 2015, 17:56
Default
  #2
Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 11
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


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
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
Regarding OpenFOAM installation problem on OpenSUSE harsha_kulkarni OpenFOAM Installation 4 March 16, 2014 05:03
OpenFoam 2.0.0 installation Jan_Peters OpenFOAM Installation 86 April 27, 2012 05:32
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
Setting Environment Variables PETER P. CFX 1 August 3, 2008 18:33


All times are GMT -4. The time now is 10:47.