Re: installing opendap ncl 5.1.0 on Mac OS X

From: Steve Nesbitt <snesbitt_at_nyahnyahspammersnyahnyah>
Date: Thu, 5 Mar 2009 15:58:51 -0600

Hi Mary,

Thanks for your prompt reply. I believe I have those libraries
installed. I think the issue is that the path to libnc-dap.3.dylib
seems to be hardcoded in the ncl binary. When I created a directory /
Users/haley/tmp/5.1.0/lib/ on my system and placed a soft link to /opt/
local/lib/libnc-dap.3.dylib in that directory, ncl+opendap worked like
a charm (see below).

-Steve

ncl 7> url = "http://test.opendap.org/opendap/data/nc/"
ncl 8> filename = "123.nc"
ncl 9> exists = isfilepresent(url+filename)
ncl 10> f = addfile(url + filename,"r")
ncl 11> vars = getfilevarnames(f)
ncl 12> print(vars)

Variable: vars
Type: string
Total Size: 32 bytes
             8 values
Number of Dimensions: 1
Dimensions and sizes: [8]
Coordinates:
(0) l
(1) j
(2) i
(3) cross
(4) aloan
(5) shot
(6) order
(7) bears

On Mar 5, 2009, at 3:37 PM, Mary Haley wrote:

> Steve,
>
> If you install the OPeNDAP-enabled version of NCL, you also need to
> install the OPeNDAP libraries, because they are shared libraries
> that have to get loaded when NCL is executed.
>
> Please see:
>
> http://www.ncl.ucar.edu/Download/install.shtml#OPeNDAPInstructions
>
> and follow the link on the line "2. OPeNDAP libraries".
>
> If you don't need OPeNDAP capabilities, then I suggest downloading
> the non-OPeNDAP version of NCL.
>
> I can try to provide a tar of these libraries, if you can't get them
> built on your system.
>
> --Mary
>
>
> On Thu, 5 Mar 2009, Steve Nesbitt wrote:
>
>> Hello,
>>
>> I am trying to install an opendap-enabled binary of ncl on mac os x
>> 10.5. I am excited to finally have ncl w/opendap capabilities on the
>> mac!
>>
>> However, when I run ncl, I get:
>>
>> [graupel local]$ ncl
>> dyld: Library not loaded: /Users/haley/tmp/5.1.0/lib/libnc-dap.
>> 3.dylib
>> Referenced from: /usr/local/bin/ncl
>> Reason: image not found
>> Trace/BPT trap
>>
>> I have this library from macports
>> [graupel local]$ locate libnc-dap.3.dylib
>> /opt/local/lib/libnc-dap.3.dylib
>>
>> I tried
>> [graupel local]$ setenv LD_LIBRARY_PATH /opt/local/lib
>> [graupel local]$ setenv NCARG_ROOT /usr/local
>>
>> to no avail.
>>
>> Is there an option to set the path to this library explicitly?
>>
>> Cheers,
>> -Steve
>>
>>
>> --
>> Steve Nesbitt, Ph.D.
>> Assistant Professor
>> Department of Atmospheric Sciences
>> University of Illinois
>> 105 S. Gregory St., MC223
>> Urbana, IL 61801-3070 USA
>> voice : +1.217.244.3740 fax : +1.217.244.4393
>> e-mail : snesbitt_at_illinois.edu
>> web : http://www.atmos.uiuc.edu/~snesbitt
>>
>>
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>

-- 
Steve Nesbitt, Ph.D.
Assistant Professor
Department of Atmospheric Sciences
University of Illinois
105 S. Gregory St., MC223
Urbana, IL  61801-3070  USA
voice : +1.217.244.3740  fax : +1.217.244.4393
e-mail : snesbitt_at_illinois.edu
web : http://www.atmos.uiuc.edu/~snesbitt
Received on Thu Mar 05 2009 - 14:58:51 MST

This archive was generated by hypermail 2.2.0 : Thu Mar 05 2009 - 15:48:48 MST