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

bash: /opt/openfoam230/etc/bashrc: No such file or directory

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2014, 10:50
Default 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
mich_K is on a distinguished road
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
mich_K is offline   Reply With Quote

Old   July 17, 2014, 15:28
Default
  #2
cdm
Member
 
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 13
cdm is on a distinguished road
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
Just change it to point to the correct location. If it's installed in your home directory as you say then it should be:

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'
Then type in foam230 in the terminal when you plan on using OpenFOAM.
cdm is offline   Reply With Quote

Old   July 17, 2014, 15:44
Default
  #3
Member
 
Michael Kruger
Join Date: Jul 2014
Location: South Africa
Posts: 38
Rep Power: 12
mich_K is on a distinguished road
Thank you cdm. I havent yet so this is very helpful!
mich_K is offline   Reply With Quote

Old   July 17, 2014, 15:56
Default
  #4
cdm
Member
 
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 13
cdm is on a distinguished road
Glad I could help. Let me know if you have any troubles with the above.
cdm is offline   Reply With Quote

Reply

Tags
error, installation of open foam


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
[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


All times are GMT -4. The time now is 07:45.