Re: For whom using WRAPIT in NCL 5.2.0 on Mac intel 10.6

From: guangshan chen <gchen9_at_nyahnyahspammersnyahnyah>
Date: Fri Apr 16 2010 - 16:36:30 MDT

Hi Mary,

Thanks for the information.

Here is my though:
Using "-m32" and "-m64" actually overwrite the variable "nbits" that defined early. So I think my uncommented part can
be deleted from WRAPIT.

For the people who have no permission to modify WRAPIT, "-m32" and "-m64" options together with "-L "
option are good choice.

For the people who have permission to modify, my way is better way. After changing once, don't need change it again.
(I don't want to put the whole path of gfortran library after WRAPIT each time :)

Guangshan

On Apr 16, 2010, at 5:10 PM, Mary Haley wrote:

> Guangshan,
>
> Thanks for the heads up on WRAPIT issues for MacOS 10.6.
>
> It is possible to still use WRAPIT without having to modify it, although
> it's easier your way (if you have permissions to modify $NCARG_ROOT/bin/WRAPIT).
>
> Because it's possible for these new 10.6 Macs to be 32-bit or 64-bit mode, it
> may be necessary to include the new "-m32" or "-m64" option on the WRAPIT line:
>
> WRAPIT -m64 yourfile.f
> WRAPIT -m32 yourfile.f
>
> The DYLD_LIBRARY_PATH is not something that comes into play when compiling
> codes for WRAPIT. This is more of a runtime environment variable.
>
> You can use -L to help it find the path of the gfortran library:
>
> WRAPIT -L /path/to/libgfortran -m32 yourfile.f
>
> I'll include this information in the WRAPIT documentation page.
>
> --Mary
>
> On Apr 16, 2010, at 3:36 PM, guangshan chen wrote:
>
>> Dear all,
>>
>> Today I downloaded the NCL 5.2.0 for Mac OS (intel) 10.6 and tried it. I found there are some problems when
>> I test WRAPIT:
>>
>> Problem 1: can't find gfortran library even I had set DYLD_LIBRARY_PATH
>> Solution:
>> a. vi WRAPIT file in ${NCARG_ROOT}/bin
>> b. Searching -lgfortran
>> c. adding the specific path of gfortran library before "-lgfortran"
>>
>>
>> Problem 2: libgfortran.dylib file is not of required architecture
>> Solution:
>> a. vi WRAPIT file in ${NCARG_ROOT}/bin
>> b. uncomment the following lines:
>> #if ($OS == Linux || $OS == Darwin) then
>> # switch ("$mach")
>> # case i*64:
>> # case x*64:
>> # case p*64:
>> # set nbits = 64
>> # breaksw
>> # default:
>> # set nbits = 32
>> # breaksw
>> # endsw
>> #endif
>>
>>
>> Guangshan
>>
>>
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
Received on Fri Apr 16 16:36:35 2010

This archive was generated by hypermail 2.1.8 : Fri Apr 23 2010 - 14:40:07 MDT