Re: -lcairo

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Nov 14 2012 - 15:00:48 MST

Hi again,

Rick Brownrigg pointed out something I should have mentioned here: you may already have the necessary libraries on your system, but you will have to find them and then include a "-L option on your compile line.

First, you can try finding the necessary files with commands like this:

   locate libcairo
   locate libfontconfig
   etc

On my machine, they are in:

   /opt/local/lib

You can now edit $NCARG_ROOT/bin/ncargf77 (or make your own copy of this file) and add this path to the end of the "syslibdir" variable:

set syslibdir = "-L/usr/X11R6/lib -L/opt/local/lib"

--Mary

On Nov 14, 2012, at 2:46 PM, Mary Haley wrote:

> Hi Rosemarie,
>
> cairo is ancillary software that is now required in NCL V6.1.0. Please see:
>
> http://www.ncl.ucar.edu/current_release.shtml#CompilationChanges6.1.0
>
> This will give you information about where you can get the required software.
>
> It should be pretty straightforward:
>
> Linux:
>
> yum install libcairo-devel
> yum install libpixman-devel
>
> or
>
> apt-get install libcairo-devel
> etc.
>
> MacOS:
>
> port install libcairo-devel
> etc.
>
> Under Cygwin, you would need to rerun "setup.exe" and make sure the cairo and required packages are installed.
> There's more info here: http://www.ncl.ucar.edu/Download/cygwin.shtml#InstallCygwinX
>
> Let me know if this doesn't help.
>
> --Mary
>
> On Nov 14, 2012, at 11:58 AM, Rosemarie Drummond wrote:
>
>> The Admin people recently installed ncl6.1.0
>> I have a "legacy program" in fortran using NCAR routines that I would
>> like to be able to recompile.
>> When I try it finds ncargf77 OK but returns an error "/usr/bin/ld:
>> cannot find -lcairo"
>> Is this part of the package that they have not installed or an ancillary
>> software?
>> ( I guess I would like to be a bit more helpful than just sending a
>> message "it doesn't work")
>> Thanks
>> Rosemarie
>>
>> --
>> Dr Rosemarie Drummond
>> rmarie@atmosp.physics.utoronto.ca
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Nov 14 15:00:57 2012

This archive was generated by hypermail 2.1.8 : Wed Nov 21 2012 - 11:16:05 MST