How to solve this configure failure

Hi,
I am trying to set up CESM on my macbook.

Here is what I did

cd $CCSMROOT/scripts
./create_newcase -case test1
-res f45_g37
-compset B_2000
-mach ${MACH_NAME}


Then the directory "test1" was created successfully. Then
cd test1
./configure -case

I got the following errors

Generating resolved namelist, prestage, and build scripts
WARNING: Darwin does not have an option for compiling SPMD.
ERROR: generate_resolved.csh error for atm template
configure error: configure generated error in attempting to created resolved scripts

So I look at the "configure" script, and found that


if (-d $CASEBUILD) then
echo "Namelist configuration for env_case.xml and env_conf.xml has already been done...skipping"
else
./Tools/generate_resolved.csh || set quit = true ******** error was report here!!!!!
if ($?quit) then
echo "configure error: configure generated error in attempting to created resolved scripts"
rm -rf $CASEBUILD
exit -1
endif

cp env_conf.xml LockedFiles/env_conf.xml.locked
echo "Locking file env_conf.xml"
endif

So on c shell, I tried ./Tools/generate_resolved.csh
I got
CASEBUILD: Undefined variable.


So I guess that I need to define CASEBUILD somewhere. But I have no idea where shoud I do this. Please help!

Thanks
 
Back
Top