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

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

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 1, 2014, 09: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: 4
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 09:51. Reason: Spelling correction
mich_K is offline   Reply With Quote

Old   July 17, 2014, 14:28
Default
  #2
cdm
Member
 
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 5
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, 14:44
Default
  #3
Member
 
Michael Kruger
Join Date: Jul 2014
Location: South Africa
Posts: 38
Rep Power: 4
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, 14:56
Default
  #4
cdm
Member
 
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 5
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4foam building problem GGerber OpenFOAM Installation 54 April 24, 2015 16:02
Swak4Foam funkyDoCalc with OF2.3 massflow NiFl OpenFOAM 8 March 24, 2014 21:06
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Installation 14 April 23, 2013 13:59
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00


All times are GMT -4. The time now is 04:15.