Re: NCL from MacPorts

From: Rob Nicholas <rnicholas_at_nyahnyahspammersnyahnyah>
Date: Wed Oct 28 2009 - 10:05:00 MDT

Hi Mary,

MacPorts doesn't distribute binaries -- rather, it's a
build-from-source system. So, for example, if I issue the command

     sudo port install nco

on my machine, MacPorts downloads the NCO source code from the NCO
home page (i.e. the NCO SourceForge site), applies any patches needed
to make it work correctly on a Mac, builds NCO from the patched
source, and then installs everything in /opt/local. If there are any
required dependencies (e.g. the NetCDF libraries) that aren't yet
installed, those are built from source first.

It ends up being a little more difficult than this for NCL because you
happen to have the NCL source code sequestered inside ESG, which means
the user has to download the source manually and place it in the
appropriate port directory before building, but otherwise it works the
same way. Which means that a MacPorts version of NCL should play
nicely with one's system... except when it doesn't.

Perhaps if the maintainer of the 'ncarg' port is on the list, he or
she could weigh in here...


On Wed, Oct 28, 2009 at 7:23 AM, Mary Haley <> wrote:
> Hi Rob,
> We haven't done a port to Snow Leopard yet, and certainly not a 64-bit port.
> I'm not sure where you got this 5.1.1 version, but it may have been compiled
> under Leopard under 32-bit, and I can't make any guarantees about whether
> this should work under  SL.
> Another user is going to attempt a native build of 5.1.1 under Snow Leopard
> and I'll see if we can make that available when it's done.
> --Mary
> On Oct 27, 2009, at 11:31 PM, Rob Nicholas wrote:
>> Hi NCLers,
>> Do any of you have experience using NCL installed via MacPorts,
>> especially on Snow Leopard?  I recently installed the NCL version
>> 5.1.1 via MacPorts (the port name is actually "ncarg") and it
>> generally seems to work fine -- that is, until I try to plot
>> something, at which point I get a segmentation fault.
>> I don't believe the scripts I'm trying to run are to blame -- they
>> work fine running on the NCL binary package that can be downloaded
>> from ESG and I was able to replicate the segfault behavior using some
>> of the stock example scripts (xy_1.ncl and ce_1.ncl) from the NCL
>> website.
>> I'll file a bug report with MacPorts if nobody else has run into this,
>> but I thought I'd check here first.
>> ~Rob
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Oct 28 10:04:58 2009

This archive was generated by hypermail 2.1.8 : Thu Oct 29 2009 - 10:19:30 MDT