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

udf and unix for help.

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 14, 2004, 05:17
Default udf and unix for help.
  #1
Gong W T
Guest
 
Posts: n/a
Hi! everybody, I meet a question when using udf function of Fluent, my machine is unix system and IBM workstation.when I load library file appear error "open_udf_library:No such file or directory". But I am success in PC win2000 system. Please give me a way to solve it, Thanks very much.

the question furture description:

1) the information in the file /scratch/wqgong/ufd/log produced when compile is

for d in aix51_64/[23]*; do ( cd $d; for f in ../../src/*.[ch] ../../src/makefile; do if [ ! -f `basename $f` ]; then echo "# linking to" $f "in" $d; ln -s $f .; fi; done; echo ""; echo "# building library in" $d; make -k>makelog 2>&1; cat makelog; ) done # linking to ../../src/wall_pressure_2D.c in aix51_64/2d # linking to ../../src/makefile in aix51_64/2d

# building library in aix51_64/2d

2) the error information in the file /scratch/wqgong/ufd/libudf/aix51_64/2d/makelog is

# Generating udf_names.c because of makefile wall_pressure_2D.c

make libudf.so "CFLAGS=-O -q64 -qnolm -qalign=natural" "LDFLAGS=-b64" "LD=makeshared" # Compiling udf_names.o because of udf_names.c

cc -O -q64 -qnolm -qalign=natural -I/usr/local/Fluent.Inc/fluent6.1.22/`expr \`pwd\` : '.*/\(.*\)/[23].*'`/`basename \`pwd\`` -I/usr/local/Fluent.Inc/fluent6.1.22/src -I/usr/local/Fluent.Inc/fluent6.1.22/cortex/src -I/usr/local/Fluent.Inc/fluent6.1.22/client/src -I/usr/local/Fluent.Inc/fluent6.1.22/tgrid/src -I/usr/local/Fluent.Inc/fluent6.1.22/multiport/src -c udf_names.c /bin/sh: cc: not found. make: 1254-004 The error code from the last command is 127. (continuing) # Compiling wall_pressure_2D.o because of wall_pressure_2D.c

cc -O -q64 -qnolm -qalign=natural -I/usr/local/Fluent.Inc/fluent6.1.22/`expr \`pwd\` : '.*/\(.*\)/[23].*'`/`basename \`pwd\`` -I/usr/local/Fluent.Inc/fluent6.1.22/src -I/usr/local/Fluent.Inc/fluent6.1.22/cortex/src -I/usr/local/Fluent.Inc/fluent6.1.22/client/src -I/usr/local/Fluent.Inc/fluent6.1.22/tgrid/src -I/usr/local/Fluent.Inc/fluent6.1.22/multiport/src -c wall_pressure_2D.c /bin/sh: cc: not found. make: 1254-004 The error code from the last command is 127. (continuing) Target "libudf.so" did not make because of errors. make: 1254-004 The error code from the last command is 4. (continuing) make: 1254-004 The error code from the last command is 2. (continuing)

  Reply With Quote

Old   August 14, 2004, 07:21
Default Re: udf and unix for help.
  #2
Rob Hart
Guest
 
Posts: n/a
It doesn't look like you have a c compiler installed.

The bit where it says "/bin/sh: cc: not found" is the important bit.

  Reply With Quote

Old   August 20, 2004, 05:30
Default Re: udf and unix for help.
  #3
Gong WT
Guest
 
Posts: n/a
Thanks Rob's help very much, but my manchine is installed a c complier at /usr/vac/bin. I want to know how to do for me?

Gong WT.
  Reply With Quote

Old   August 20, 2004, 05:58
Default Re: udf and unix for help.
  #4
Gong WT
Guest
 
Posts: n/a
Thank you very much, According to your advice I solved my problem by placing the C complier location directory in the .cshrc file.

  Reply With Quote

Old   August 28, 2004, 07:45
Default Re: udf and unix for help.
  #5
Tim
Guest
 
Posts: n/a
Hi Gong!

I have posted a message (seehttp://www.cfd-online.com/Forum/fluent.cgi?read=21676) similar to your message, but there isn't this part "/bin/sh: cc: not found"... ???

Could you explain how have you solved your problem going into detail?

Thanks

Tim
  Reply With Quote

Old   August 29, 2004, 04:40
Default Re: udf and unix for help.
  #6
Gong Wt
Guest
 
Posts: n/a
Hi!, Tim, I think maybe your issue is different from mine, my question just is the C complier executable file path not connected, but I still hope have a help. I put the path into the file ".cshrc ". the detail step is:

1)after % in unix, input the commond: vi .cshrc open the file .cshrc

2) then add the following path in this file:

set path = ( /usr/vac/bin )

then use flunet udf funtion again, all is ok.

  Reply With Quote

Old   August 29, 2004, 09:57
Default Re: udf and unix for help.
  #7
Tim
Guest
 
Posts: n/a
Hi Gong!!!

Thank you for your fast reply!!! I've finally found my stupid mistake:

I 've created 3d directory in libudf, while my mesh was 2d !!!I hope this could be useful for someone else.

Tim

  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 32 May 8, 2015 06:05
UDF works in windows workstation but not in UNIX w J Fernandes FLUENT 0 November 19, 2008 18:45
UDF problem lichun Dong FLUENT 1 April 26, 2005 14:46
UDF WIN vs UNIX LE FLUENT 1 July 18, 2004 08:19
compile the UDF Li Jingping FLUENT 2 April 14, 2003 21:18


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