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

'nmake' is not recognized as an internal or external command ...

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 25, 2020, 15:34
Default
  #21
New Member
 
Alexander
Join Date: Dec 2020
Posts: 8
Rep Power: 5
Alexander00 is on a distinguished road
Quote:
Originally Posted by kailash007 View Post
I wanted to answer my own question if someone is facing this issue. The solution provided in this link worked for me. Need to create a LIB system variable and copy the path where Kernel32.lib is present
could you please elaborate the steps of the procedure?
it would really be helpful. Thankyou.
Alexander00 is offline   Reply With Quote

Old   December 25, 2020, 15:37
Default
  #22
New Member
 
Alexander
Join Date: Dec 2020
Posts: 8
Rep Power: 5
Alexander00 is on a distinguished road
Quote:
Originally Posted by adambarfi View Post
OK! I solved it.
I Installed the VS and ran the Fluent in its command prompt.
I have actually tried this and the code is compiling but are the results easily accessible?
Alexander00 is offline   Reply With Quote

Old   December 27, 2020, 23:47
Default
  #23
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Quote:
are the results easily accessible?
what do you mean? which results are you talking about?
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   March 25, 2021, 03:23
Default
  #24
New Member
 
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 5
umeralizuberi is on a distinguished road
still the same issue if i load it with command prompt it give nmake error and if i load it directly (after following all the steps ) it give fatal errror C1083
umeralizuberi is offline   Reply With Quote

Old   March 25, 2021, 04:52
Default
  #25
New Member
 
Alexander
Join Date: Dec 2020
Posts: 8
Rep Power: 5
Alexander00 is on a distinguished road
Quote:
Originally Posted by umeralizuberi View Post
still the same issue if i load it with command prompt it give nmake error and if i load it directly (after following all the steps ) it give fatal errror C1083
use ANSYS 2021 R1, udf is compiling easily. Also, it has built-in compiler.
Alexander00 is offline   Reply With Quote

Old   March 25, 2021, 05:39
Default
  #26
New Member
 
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 5
umeralizuberi is on a distinguished road
can you send me download link? and is there any other way of doing it(without installing this new version)?

thanks in advance
umeralizuberi is offline   Reply With Quote

Old   March 25, 2021, 06:20
Default
  #27
New Member
 
Alexander
Join Date: Dec 2020
Posts: 8
Rep Power: 5
Alexander00 is on a distinguished road
Quote:
Originally Posted by umeralizuberi View Post
can you send me download link? and is there any other way of doing it(without installing this new version)?

thanks in advance
https://shareappscrack.com/ansys-pro...token=54980498

and no i couldn't find any other solution for my laptop.
Alexander00 is offline   Reply With Quote

Old   March 25, 2021, 09:02
Default
  #28
New Member
 
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 5
umeralizuberi is on a distinguished road
thanks for your time
umeralizuberi is offline   Reply With Quote

Old   April 15, 2021, 21:21
Default
  #29
New Member
 
jiangsu
Join Date: Nov 2020
Posts: 5
Rep Power: 5
Romu is on a distinguished road
Quote:
Originally Posted by k_ina View Post
Hello~
I have encountered the same problem regarding nmake. Adding it to the windows environment variables path and running Fluent without command prompt gave me another error (Fatal Error C1083). After some searching, I managed to solve it and now UDFs can be compiled without running from command prompt! So I wanted to share my steps to hopefully help others:

1) Install Visual Studio (version 2019 for me)

2) Go to "C:\Program Files (x86)\Microsoft Visual Studio\2019" and type in the search bar "nmake" to find where nmake is located.
For me, it's located in "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bi n\Hostx64\x64". This is your nmake location.

3) Go to Control Panel->Settings->System Settings->Environment Variables->System Variables
and find "Path", then click on "Modify"

4) Click "new" and add your nmake location to the path. Then click ok.

5) Open Fluent, open a Fluid Flow (Fluent) component, and right click on "Setup" -> Edit.
Click "+Show more Options", then go to "Environment".
Copy the udf.bat location (for me it's "C:\Program Files\ANSYS Inc\v182\fluent/ntbin\win64/")
and paste it in the explorer to open it.

6) Right click on "udf.bat"->Open with Notepad++ (as administrator).

7) Paste the following text (but make sure the folder paths and VS version are correct for your own computer). Careful to paste the following texts in their appropriate locations:

Paste this text before "echo "No MSVC compiler detected!""

echo trying to find MS C compiler, version 19....

set MSVC_DEFAULT=%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build
if exist "%MSVC_DEFAULT%\vcvarsall.bat" set MSVC=%MSVC_DEFAULT%
if not "%MSVC%" == "" goto msvc_env19


and further below you paste this text before ":ms_c_end":

:msvc_env19
set MSVC_VERSION=19
call "%MSVC%\vcvarsall.bat" x86_amd64
goto ms_c_end



8) Save the udf.bat file, and restart Fluent. Now you should be able to directly compile codes without any problems and without having to run through command prompt
sir, i am getting this error but i get confused while i am following your solution:
explain to me here plz"5) Open Fluent, open a Fluid Flow (Fluent) component, and right click on "Setup" -> Edit.
Click "+Show more Options", then go to "Environment".
Copy the udf.bat location (for me it's "C:\Program Files\ANSYS Inc\v182\fluent/ntbin\win64/")
and paste it in the explorer to open it."
Romu is offline   Reply With Quote

Old   April 15, 2021, 22:47
Default
  #30
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Quote:
Originally Posted by Romu View Post
sir, i am getting this error but i get confused while i am following your solution:
explain to me here plz"5) Open Fluent, open a Fluid Flow (Fluent) component, and right click on "Setup" -> Edit.
Click "+Show more Options", then go to "Environment".
Copy the udf.bat location (for me it's "C:\Program Files\ANSYS Inc\v182\fluent/ntbin\win64/")
and paste it in the explorer to open it."
this is solution for fluent version up to v19.2
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   April 17, 2021, 03:10
Default
  #31
New Member
 
jiangsu
Join Date: Nov 2020
Posts: 5
Rep Power: 5
Romu is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
this is solution for fluent version up to v19.2
thanks,

yes I am using also v195, I think that it should be solved, can you try to explain again this statement you wrote while solving this issue<<Copy the udf.bat location (for me it's "C:\Program Files\ANSYS Inc\v182\fluent/ntbin\win64/")
and paste it in the explorer to open it.>>

when I reach at this step, I get lost. thanks
Romu is offline   Reply With Quote

Old   April 19, 2021, 22:55
Default
  #32
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
that's not my guide, whatever

5) Open Fluent, open a Fluid Flow (Fluent) component, and right click on "Setup" -> Edit.
Click "+Show more Options", then go to "Environment".
Copy the udf.bat location (for me it's "C:\Program Files\ANSYS Inc\v182\fluent/ntbin\win64/")

go to this directory, find there file "udf.bat"

6) Right click on "udf.bat"->Open with Notepad++ (as administrator).

7) Paste the following text (but make sure the folder paths and VS version are correct for your own computer). Careful to paste the following texts in their appropriate locations:

Paste this text before "echo "No MSVC compiler detected!""

echo trying to find MS C compiler, version 19....

set MSVC_DEFAULT=%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build
if exist "%MSVC_DEFAULT%\vcvarsall.bat" set MSVC=%MSVC_DEFAULT%
if not "%MSVC%" == "" goto msvc_env19

and further below you paste this text before ":ms_c_end":

:msvc_env19
set MSVC_VERSION=19
call "%MSVC%\vcvarsall.bat" x86_amd64
goto ms_c_end


8) Save the udf.bat file, and restart Fluent. Now you should be able to directly compile codes without any problems and without having to run through command prompt
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   September 13, 2021, 08:00
Default
  #33
New Member
 
Join Date: Sep 2019
Posts: 6
Rep Power: 6
Boyboy is on a distinguished road
Quote:
Originally Posted by antoinetonee View Post
Tried your suggestion, it still doesn't work. The 'nmake' is still not recognized. I think I need to reinstall everything afterall.

In all fairness, I see this problem has been around since quite a long time and sadly ANSYS hasn't done anything about it despite tons of complaints. A more simplified and robust compiler should do, but alas it seems they simply don't want to bother.
I can fully relate to what you are feeling. I felt the same way, before following what k_ina posted. Make sure you've installed the C++ related workload. (In VS, go Tools menu=>Get Tools and Features=>Install the Desktop Development With C++ workload). It's only then, you will see the nmake.exe file and also the vcvarsall.bat file. After installation, you can then follow what @k_ina posted
Boyboy 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
8x icoFoam speed up with Cufflink CUDA solver library kmooney OpenFOAM Running, Solving & CFD 42 November 6, 2012 11:37
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 04:41
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 21:45
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26


All times are GMT -4. The time now is 17:49.