CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Installation (https://www.cfd-online.com/Forums/su2-installation/)
-   -   Can't find .bashrc to add environment variables (https://www.cfd-online.com/Forums/su2-installation/143366-cant-find-bashrc-add-environment-variables.html)

ApplePie137 October 22, 2014 18:10

Can't find .bashrc to add environment variables
 
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


Bachduong October 24, 2014 08:49

Perhaps, you should type in terminal window "gedit ~/.bashrc" in order to edit bashrc file.

wmartin December 7, 2014 11:44

Re: Can't find .bashrc to add environment variables
 
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

economon January 4, 2015 03:22

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


All times are GMT -4. The time now is 16:38.