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

[OpenFOAM.com] Possible $PATH issue in V2212 windows mingw installation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2023, 16:16
Default Possible $PATH issue in V2212 windows mingw installation
  #1
New Member
 
Scott Stevenson
Join Date: Jun 2023
Posts: 5
Rep Power: 2
sstevenson638 is on a distinguished road
I'm trying to get the cfdOF package in FreeCAD working. The recommended OpenFOAM install is the Windows mingw package, specifically version 2206.

I installed the latest 2212 version thinking the newer version should work. I also installed cfmesh and HISA. Unfortanately cfdOF cannot find either cfmesh or HISA to execute those commands externally. Thinking it might be a PATH issue with the external environment I executed the openfoam terminal command to check the environment $PATH variable.

OpenFOAM-v2212-MSYS2-Terminal

When I type $PATH I get the following output:

$ $PATH
bash: /home/ofuser/OpenFOAM/sstev-v2212/platforms/win64MingwDPInt32Opt/bin:/home/ofuser/OpenFOAM/OpenFOAM-v2212/site/2212/platforms/win64MingwDPInt32Opt/bin:/home/ofuser/OpenFOAM/OpenFOAM-v2212/platforms/win64MingwDPInt32Opt/bin:/home/ofuser/OpenFOAM/OpenFOAM-v2212/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Program: No such file or directory

Notice the last entry in the list "/c/Program: No such file or directory"

Looking at the source, I think the script responsible for creating the environment $PATH is
setEnvVariables-v2212.bat

The last line in this script is:
set PATH=%WM_PROJECT_DIR%\platforms\%TYPE%\bin\;%WM_PR OJECT_DIR%\platforms\%TYPE%\lib\mpi\;%WM_THIRD_PAR TY_DIR%\platforms\%TYPE_THIRDPARTY%\lib\;%PATH%

You can see the last term "%PATH%" where it is applying the windows path. This is apparently not working. Can anyone help? How to I get all the needed PATH information into the OpenFOAM terminal environment?

Thanks in advance.
sstevenson638 is offline   Reply With Quote

Old   June 21, 2023, 23:05
Default Nevermind
  #2
New Member
 
Scott Stevenson
Join Date: Jun 2023
Posts: 5
Rep Power: 2
sstevenson638 is on a distinguished road
I'm not sure what the problem was but the PATH issue cleared itself up the next time I worked in this issue. I still cannot get cfdOF to recognize cfmesh, gmesh, or hisa, but that is a separate problem that I continue to work on.
sstevenson638 is offline   Reply With Quote

Reply


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
[OpenFOAM] Installation ParaView for Windows version of openFOAM kasra karimi ParaView 14 September 8, 2018 14:06
SU2 Installation on Windows 32 bit niddaas SU2 Installation 3 May 6, 2016 17:03
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
nmake issue with Windows sega FLUENT 19 June 16, 2010 01:16
divide by zero FPE issue in OpenFOAM 141 MingW port allenzhao OpenFOAM Installation 9 September 22, 2008 17:13


All times are GMT -4. The time now is 08:12.