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

[Other] source bashrc not found when used alias for multiple OpenFOAM version

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 20, 2021, 05:27
Default source bashrc not found when used alias for multiple OpenFOAM version
  #1
Member
 
Sunag R A
Join Date: Jul 2019
Location: Bangalore, India
Posts: 82
Rep Power: 7
sunagra27 is on a distinguished road
Dear all,

1. I am trying to work with multiple OpenFOAM version in Ubuntu 18.04. I am using zshrc instead of bashrc.
2. For this, for single OF version, zshrc is edited as:

Code:
source /opt/openfoam5/etc/bashrc
3. The above line works fine for single OF version and gives no error.
4. But, while using multiple OF version, the zshrc is edited as:

Code:
alias of5 ='source /opt/openfoam5/etc/bashrc'
alias of2106 = 'source /home/Of2106/etc/bashrc'
5. When the terminal is closed and re-run, the error obtained is as below:

Code:
/home/.zshrc:107: source /opt/openfoam5/etc/bashrc not found
What might be the problem?

Regards,
Sunag R A
sunagra27 is offline   Reply With Quote

Reply

Tags
bashrc, openfoam, version


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
[Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 2 June 24, 2017 06:29
[Commercial meshers] converting Fluent mesh to openfoam standard mesh deepesh OpenFOAM Meshing & Mesh Conversion 31 March 29, 2017 06:59
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44


All times are GMT -4. The time now is 05:50.