|
[Sponsors] |
Can't find .bashrc to add environment variables |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 22, 2014, 19:10 |
Can't find .bashrc to add environment variables
|
#1 |
New Member
Jimmy Koch
Join Date: Oct 2014
Posts: 1
Rep Power: 0 |
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 |
|
October 24, 2014, 09:49 |
|
#2 |
New Member
Khiem Pham
Join Date: Nov 2013
Posts: 23
Rep Power: 13 |
Perhaps, you should type in terminal window "gedit ~/.bashrc" in order to edit bashrc file.
|
|
December 7, 2014, 12:44 |
Re: Can't find .bashrc to add environment variables
|
#3 |
New Member
Bill Martin
Join Date: Dec 2014
Posts: 1
Rep Power: 0 |
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 |
|
January 4, 2015, 04:22 |
|
#4 |
Super Moderator
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14 |
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 |
|
|
|
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 |