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

Can't find .bashrc to add environment variables

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2014, 19:10
Default Can't find .bashrc to add environment variables
  #1
New Member
 
Jimmy Koch
Join Date: Oct 2014
Posts: 1
Rep Power: 0
ApplePie137 is on a distinguished road
I am brand new to using linux, linux-mint, and compiling programs for myself and tried to compile/install SU2 a couple days ago. The online installation directions and video from the 2013 webinar were very helpful, although I can't read what's on the screen during the installation part of the video. I downloaded the code from github and did the ./configure, make, make install commands and I believe all of that worked. I didn't specify a prefix to make it install in a specific folder because I just wanted to try a simple installation first.


My problem and question is where do I add the environment variables to? The video talked about a ".bashrc" file but I cannot find that on my computer. Where is that located or do I have to make it somehow?


The SU2_CFD, SU2_DEF, SU2_DOT, SU2_GEO, SU2_IDE, SU2_MSH, SU2_PRT, SU2_PY, SU2_SOL modules are located in the directory, "/home/myname/su2".



I found a file named "bash.bashrc" in the "/etc" directory, is this the .bashrc file that was mentioned in the video?



In that "/etc" directory I also found a file titled "environment" that had this writen inside of it:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
Is that where I am supposed to add the environment variables?


Side question, do I have to install NumPy and SciPy before configuring and installing SU2?


I hope this lets you know what my problem is and where I am going wrong. I am a little lost with all of this.



Thank you for your help,
ApplePie137

ApplePie137 is offline   Reply With Quote

Old   October 24, 2014, 09:49
Default
  #2
New Member
 
Khiem Pham
Join Date: Nov 2013
Posts: 23
Rep Power: 13
Bachduong is on a distinguished road
Perhaps, you should type in terminal window "gedit ~/.bashrc" in order to edit bashrc file.
Bachduong is offline   Reply With Quote

Old   December 7, 2014, 12:44
Default Re: Can't find .bashrc to add environment variables
  #3
New Member
 
Bill Martin
Join Date: Dec 2014
Posts: 1
Rep Power: 0
wmartin is on a distinguished road
Just make a new .bashrc file in your home directory "~", and place your env vars there.
No need to edit the system-wide /etc file! It will include your personal .bashrc file when you log in.
I know this is a very late reply, probably solved already, but just in case it comes up in a later search...
-bill
wmartin is offline   Reply With Quote

Old   January 4, 2015, 04:22
Default
  #4
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14
economon is on a distinguished road
Hi all,

Just to follow up on the side question: no, you do not need NumPy and SciPy before configuring and installing the C++ SU2 modules! These packages are only needed if you plan to use the provided Python scripts for automating tasks, such as running the shape_optimization.py script.

Hope this helps,

Thomas D. Economon
SU2 Lead Developer
economon 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
UDF¡ªwhere find the variables for phase velocities eric FLUENT 8 April 15, 2020 14:30
'Set Environment Variables' for Fluent 12 DarrenC Fluent UDF and Scheme Programming 2 May 25, 2011 16:51
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30


All times are GMT -4. The time now is 14:25.