[ncl-install] Library problem - a script in NCL

Negin Moghaddam negin.f.moghaddam at gmail.com
Thu Jul 16 19:19:58 MDT 2015


Hello Orion,

I installed all the following missing libraries but I got another error
which I think relates to cairo.

Could you please help me to solve this issue. Thank you.

libraries installed:

libX11-devel
libX11
libXt
libXext-devel
cairo-devel
libpng
expat-devel
bzip2-devel

The error is:

[neginm at civ-1215x ~]$ ncargex cpex08 -clean

NCAR Graphics Fortran  Example <cpex08>

  Copying cpex08.f

  Copying cpexcc.f

Compiling and linking...
/usr/bin/gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O
-o cpex08 cpexcc.f cpex08.f -L/usr/local/ncl-6.3.0/lib -L/usr/X11R6/lib64
-lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1
-lfreetype -lexpat -lpng -lz -lpthread -lXrender -lbz2
/usr/local/ncl-6.3.0/lib/libncarg_gks.a(cro.o): In function
`cro_OpenWorkstation':
cro.c:(.text+0x3efd): undefined reference to
`cairo_recording_surface_create'
/usr/local/ncl-6.3.0/lib/libncarg_gks.a(cro.o): In function
`cro_ClearWorkstation':
cro.c:(.text+0x4be5): undefined reference to
`cairo_recording_surface_create'
collect2: ld returned 1 exit status

The compile and link failed.

I even tried this based on the website :

[neginm at civ-1215x ~]$ sudo yum install libcairo-devel
[sudo] password for neginm:
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security,
              : subscription-manager
This system is not registered to Red Hat Subscription Management. You can
use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
No package libcairo-devel available.
Error: Nothing to do


Thank you.

Negin
















On Fri, Jul 17, 2015 at 9:36 AM, Negin Moghaddam <
negin.f.moghaddam at gmail.com> wrote:

> Hi Orion,
>
> Thank you. I will to install that package.
>
> Best Regards
> Negin
>
> On Fri, Jul 17, 2015 at 7:29 AM, Orion Poplawski <orion at cora.nwra.com>
> wrote:
>
>> On 07/16/2015 02:42 PM, negin.f.moghaddam at gmail.com wrote:
>> > Hi Orion,
>> > Thank you for your response
>> > My OS is RedHat and as I mentioned the libXext-devel was already
>> installed.
>>
>> I believe you mentioned libXext being installed, but not libXext-devel.
>> It's
>> clearly what is missing.
>>
>> >
>> > Regards
>> > Negin
>> >
>> > Sent from my iPhone
>> >
>> >> On 17 Jul 2015, at 2:24 am, Orion Poplawski <orion at cora.nwra.com>
>> wrote:
>> >>
>> >>> On 07/15/2015 10:07 PM, Negin Moghaddam wrote:
>> >>> Dear NCL group,
>> >>>
>> >>> I have a problem with running script which is written in NCL/NCAR
>> >>>
>> >>> As you can see I tried to run this script but I had an error with the
>> >>> libraries. I have already got the X11 and Xext on my PC and I dont
>> know where
>> >>> the problem is and how to fix it.
>> >>>
>> >>> Thank you for your response and help
>> >>> Negin
>> >>>
>> >>> [negin@ Modelling]$ ncargf77 -o plot_points.x plot_points.f
>> >>> /usr/bin/gfortran -fPIC -fno-second-underscore -fno-range-check
>> -fopenmp -O -o
>> >>> plot_points.x plot_points.f -L/usr/local/ncl-6.3.0/lib
>> -L/usr/X11R6/lib64
>> >>> -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig
>> -lpixman-1
>> >>> -lfreetype -lexpat -lpng -lz -lpthread -lXrender -lbz2
>> >>> /usr/bin/ld: cannot find -lXext
>> >>> collect2: ld returned 1 exit status
>> >>>
>> >>> The IT told me to reconfigure ncargf77 but I dont know how to do that?
>> >>
>> >> It would help if you indicated what OS you were running.  But you need
>> the
>> >> libXext development package installed.  On RHEL/CentOS/Fedora this is
>> >> libXext-devel.
>> >>
>> >>
>> >> --
>> >> Orion Poplawski
>> >> Technical Manager                     303-415-9701 x222
>> >> NWRA, Boulder/CoRA Office             FAX: 303-415-9702
>> >> 3380 Mitchell Lane                       orion at nwra.com
>> >> Boulder, CO 80301                   http://www.nwra.com
>>
>>
>> --
>> Orion Poplawski
>> Technical Manager                     303-415-9701 x222
>> NWRA, Boulder/CoRA Office             FAX: 303-415-9702
>> 3380 Mitchell Lane                       orion at nwra.com
>> Boulder, CO 80301                   http://www.nwra.com
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20150717/bceb6d55/attachment-0001.html 


More information about the ncl-install mailing list