Problems with Running WRFSI on SUN machine - Repost

Having problems running WRFSI?

Problems with Running WRFSI on SUN machine - Repost

Postby malonso » Sun Nov 30, 2008 1:00 am

I followed the instructions for compiling WRFSI on a Sun workstation given in the post, "Problems installing WRFSI on Sun machine" under the forum, "WRF Standard Initialization" originally posted by pshafer after encountering the same problems. I found that those instructions allowed me to compile, but WRFSI would not run. Specifically, when I tried to run the Perl script:

"./window_domain_rt.pl -w wrfsi -t $INSTALLROOT/templates/hampton -c -s $SOURCE_ROOT"

I got the error:

ld.so.1: a.out: fatal: libucb.so.1: open failed: No such file or
> directory Killed.

I found on a Solaris user forum and confirmed by Wrfhelp that I can issue the command:

setenv LD_LIBRARY_PATH /usr/lib:/usr/local/lib:/usr/ucblib

to get around this problem. But, then I get the error:

"ERROR in getting domain name from
/disk-c/kovacs/WRFV2/wrfsi/domains/hampton/static/
Error returned from find_domain_name
Error returned: get_config

I traced the error back to getfilenames_c.c. Apparently, according to Wrfhelp sun does not have the library dirent.h. So, the following fixed the problem:

Comment out or erase the line, #include <dirent.h>
Add, the line #include "/usr/ucbinclude/sys/dir.h"
Change the line struct dirent **namelist; to struct direct **namelist;
And if you added it, remove the line extern int alphasort ();
malonso
Site Admin
 
Posts: 158
Joined: Sun Mar 02, 2008 9:48 pm

Re: Problems with Running WRFSI on SUN machine - Repost

Postby kwthomas » Sun Nov 30, 2008 1:01 am

If you use add "-R/usr/ucblib" after "-L/usr/ucblib", then you don't have to worry about LD_LIBRARY_PATH. This assumes Sun compilers.

Kevin Thomas
Center for Analysis and Prediction of Storms
University of Oklahoma
Norman, Oklahoma
Kevin W. Thomas
Center for Analysis and Prediction of Storms
University of Oklahoma
kwthomas
 
Posts: 208
Joined: Thu Aug 07, 2008 6:53 pm


Return to Runtime Problems

Who is online

Users browsing this forum: No registered users and 1 guest