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

Interpret UDF in linux systems - Error

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2019, 07:42
Default Interpret UDF in linux systems - Error
  #1
Member
 
Join Date: Dec 2015
Posts: 74
Rep Power: 10
WhiteW is on a distinguished road
Hi,
I'm using an UDF in my analysis, the code works properly in a Windows system, the UDF is interpreted and I can use it inside my analysis.
Code:
/define/user-defined/interpreted-functions
"userdefined_6.c"
"cpp"
10000

no
However, when I try to do the same in a Linux environment, the UDF is not interpreted. I get this error:

Code:
Error: "userdefined_6.c": line 1: syntax error.
sh: /mypc/prod/applications/ansys/171/binary/v171/fluent/contrib/lnamd64/cpp: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
The line 1 contains:
Code:
#include "udf.h"
What could the problem be?
Thanks,
WhiteW
WhiteW is offline   Reply With Quote

Old   February 22, 2019, 06:47
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
I have no experience with Linux
from google i found that most likely your problem is in compiler: conflict in x32 and x64 versions
try
Code:
yum install glibc.i686
or
Code:
yum install glibc.i386
I recommend you to compile your UDF not interpritate

best regards
WhiteW likes this.
AlexanderZ is offline   Reply With Quote

Old   February 25, 2019, 11:51
Default
  #3
Member
 
Join Date: Dec 2015
Posts: 74
Rep Power: 10
WhiteW is on a distinguished road
Thanks AlexanderZ!
WhiteW is offline   Reply With Quote

Old   September 11, 2020, 00:33
Default error of interpreting udf on a linux system
  #4
New Member
 
Haocheng Yu
Join Date: Sep 2018
Posts: 1
Rep Power: 0
HaochengYu is on a distinguished road
Hi, WhiteW!
Recently, I encountered the same problem with you about interpreting udf on linux system. The udf also runs well on windows using the command like you. Unfortunately, when i do the same in a Linux environment, the same error occurs:

sh: /opt/software/ansys_inc/v190/fluent/contrib/lnamd64/cpp: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: "plate.c": line 1: syntax error.
sh: /opt/software/ansys_inc/v190/fluent/contrib/lnamd64/cpp: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory


The first line of my udf code is " #include "udf.h"".

Could you please teach me how you handled the problem?
Thanks in advance.

Yours,
HC Yu
HaochengYu 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.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 01:53
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 13:34
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32


All times are GMT -4. The time now is 19:06.