|
[Sponsors] |
bash: /opt/openfoam230/etc/bashrc: No such file or directory |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 1, 2014, 10:50 |
bash: /opt/openfoam230/etc/bashrc: No such file or directory
|
#1 |
Member
Michael Kruger
Join Date: Jul 2014
Location: South Africa
Posts: 38
Rep Power: 12 |
I am running ubuntu 14.04
I installed OpenFOAM in my home directory and it seems to be running fine. However when I open a new terminal I get the following error: bash: /opt/openfoam230/etc/bashrc: No such file or directory The directory referred to in the error is in fact empty. Has anyone had this problem before? Thanks in advance. Last edited by mich_K; July 1, 2014 at 10:51. Reason: Spelling correction |
|
July 17, 2014, 15:28 |
|
#2 |
Member
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 13 |
Not sure if you solved your troubles yet. Sounds like you are trying to source the bashrc file but it's pointing to the wrong directory.
Open up your ~/.bashrc file and check the last line. There should be a line like Code:
source /opt/openfoam230/etc/bashrc Code:
source $HOME/openfoam230/etc/bashrc However, a better approach would be to create an alias to source the OF bashrc only when you want to use it (that way the environment variables aren't always loaded and if you decide to add a newer version later there won't be conflicts). You can change the above line to something like this: Code:
alias foam230='source $HOME/openfoam230/etc/bashrc' |
|
July 17, 2014, 15:44 |
|
#3 |
Member
Michael Kruger
Join Date: Jul 2014
Location: South Africa
Posts: 38
Rep Power: 12 |
Thank you cdm. I havent yet so this is very helpful!
|
|
July 17, 2014, 15:56 |
|
#4 |
Member
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 13 |
Glad I could help. Let me know if you have any troubles with the above.
|
|
Tags |
error, installation of open foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |