|
[Sponsors] |
Two different version of OF in the same machine |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 22, 2012, 06:05 |
Two different version of OF in the same machine
|
#1 |
Member
Gitesh
Join Date: Jan 2010
Location: Finland
Posts: 73
Rep Power: 16 |
Hello everyone,
I have already OF 1.7.x running in my machine. Now I want to install OF 2.1.0 version in the same machine. I need both version on the same machine. Can anyone suggest me how to do that ? With best regards, GP |
|
August 22, 2012, 10:08 |
|
#2 |
New Member
Join Date: Mar 2012
Posts: 18
Rep Power: 14 |
Hello Gitesh,
I do not think, that there will be any problems. Just install it and write into your “~/.bashrc” something like that Code:
alias startOF210='source /opt/openfoam210/etc/bashrc' alias startOF17x='source /opt/openfoam17x/etc/bashrc' I do not know, if the path for bashrc in “startOF17x” is right. |
|
August 23, 2012, 05:43 |
|
#3 |
Member
Gitesh
Join Date: Jan 2010
Location: Finland
Posts: 73
Rep Power: 16 |
Hello Anton,
Thank you for quick reply ! Here I attach my bashrc file. Where I have added last line for running OF 1.7.x. But as you suggest the two lines to add at bashrc file, but I am not getting where exactly to add those lines. Please check the file and guide me. With regards, Gitesh |
|
August 23, 2012, 06:36 |
|
#4 |
New Member
Join Date: Mar 2012
Posts: 18
Rep Power: 14 |
Hello Gitesh,
you should delete the last line (line 109: source $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc). Then insert this lines. Code:
# OpenFOAM alias startOF17x='source $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc' alias startOF210='source /opt/openfoam210/etc/bashrc' |
|
September 4, 2012, 05:49 |
|
#5 |
Member
Gitesh
Join Date: Jan 2010
Location: Finland
Posts: 73
Rep Power: 16 |
Hello Anton,
Thank you for your reply. As you said, I have to modify the following lines in ./bashrc file. alias startOF17x='source $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc' alias startOF210='source /opt/openfoam210/etc/bashrc' But, OF 1.7.x and OF 2.1.x both are at the same location (i.e., $HOME/OpenFOAM/ ...) in my computer. So do I need to change the second line for OF 2.1.x ...? What you say ? With regards, GP |
|
September 4, 2012, 15:31 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Gitesh: You can have any alias you want! Here are some additional examples: Code:
alias startOF21x='source $HOME/OpenFOAM/OpenFOAM-2.1.x/etc/bashrc' alias OF20x='source $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc' alias of201='source /opt/openfoam200/etc/bashrc' Bruno
__________________
|
|
September 10, 2012, 10:28 |
|
#7 |
Member
Gitesh
Join Date: Jan 2010
Location: Finland
Posts: 73
Rep Power: 16 |
Now it is working ...!!!
Thank you for your help With regards, Gitesh |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM on cluster: version GLIBCXX_3.4.9 and GLIBCXX_3.4.11 not found | ovie | OpenFOAM | 10 | April 19, 2021 18:06 |
wmake error | zxj160 | OpenFOAM | 0 | March 26, 2012 10:52 |
paraview installation woes | vex | OpenFOAM Installation | 15 | January 30, 2011 07:11 |
bubbleFoam validation case | balkrishna | OpenFOAM Running, Solving & CFD | 24 | August 30, 2010 04:37 |
[OpenFOAM] Problem with paraFoam on a linux-64 bit | bunni | ParaView | 4 | April 14, 2010 20:55 |