|
[Sponsors] |
[OpenFOAM.com] Can gcc changed with source ing different openfoam version etc/bashrc |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 14, 2021, 22:05 |
Can gcc changed with source ing different openfoam version etc/bashrc
|
#1 |
New Member
Xuxiang Cao
Join Date: Jun 2016
Posts: 11
Rep Power: 10 |
hi guys.
i installed openfoam-6 with linux system gcc, etc/bashrc (export WM_COMPILER_TYPE=system), the gcc version is 4.8.0; now i want install openfoam-v2106. there are some errors in compiled ADIOS2 with gcc-4.8.5, so i changed to gcc-7.5(etc/bashrc export WM_COMPILER_TYPE=ThirdParty), it works well. my question is: when i open a new terminal, source openfoam-6/etc/bashrc, the gcc version is 4.8.5; then i source openfoam-v2016/etc/bashrc, the gcc version is 7.5.0; but then i source openfoam-6/etc/bashrc again, the gcc version still is 7.5.0; is there has a way, when i source the different openfoam version the gcc can changed rightly? many thanks. xuxiang |
|
December 15, 2021, 13:25 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Not really sure what they are using in openfoam6 for setting/clearing things, but you need to check what is still set. Use the command "env" to display your settings.
Code:
env Code:
echo "$PATH" | tr ':' '\n' Of course, depending on how you have switched between versions (edited your ~/.bashrc file, placed extra setup files elsewhere), it could be that you are causing the problem yourself but just don't recognize where. |
|
December 16, 2021, 03:41 |
|
#3 |
New Member
Xuxiang Cao
Join Date: Jun 2016
Posts: 11
Rep Power: 10 |
thanks olesen
now i creat a .sh file in special version path, the file contains the loaded environment modules. i was installed of in hpc cluster. and i changed all export WM_COMPILER_TYPE=system this can also be solved. xuxiang |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 15:24 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 18:34 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 10:17 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |
Source Pack Installation OpenFOAM Version 2.1.0 on Redhat Linux | Indrajit | OpenFOAM Installation | 1 | April 1, 2012 05:39 |