|
[Sponsors] |
February 20, 2019, 07:42 |
Interpret UDF in linux systems - Error
|
#1 |
Member
Join Date: Dec 2015
Posts: 74
Rep Power: 11 |
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 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 Code:
#include "udf.h" Thanks, WhiteW |
|
February 22, 2019, 06:47 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
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 Code:
yum install glibc.i386 best regards |
|
February 25, 2019, 11:51 |
|
#3 |
Member
Join Date: Dec 2015
Posts: 74
Rep Power: 11 |
Thanks AlexanderZ!
|
|
September 11, 2020, 00:33 |
error of interpreting udf on a linux system
|
#4 |
New Member
Haocheng Yu
Join Date: Sep 2018
Posts: 1
Rep Power: 0 |
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 |
|
|
|
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 |