Re: could not build NCL

From: sangeeta maharjan <sangeetamaharjan_at_nyahnyahspammersnyahnyah>
Date: Sat Feb 08 2014 - 23:39:56 MST

Hi,
Thanks Mary for your kind mail. I executed the command but again no
successful compile. As per Orion Poplawski, I did yum install
libXext-devel then ->ncargex cpex08 -clean

NCAR Graphics Fortran Example <cpex08>
  Copying cpex08.f
  Copying cpexcc.f
Compiling and linking...
gfortran -fPIC -fno-second-underscore -O -o cpex08 cpexcc.f cpex08.f
-L/usr/local/NCL/lib -L/usr/lib64 -lncarg -lncarg_gks -lncarg_c -lX11
-lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz
-lpthread -lbz2 -lXrender
/usr/bin/ld: cannot find -lbz2
collect2: ld returned 1 exit status

The compile and link failed.

As, the compile suggested -lbz2 cannot be found so which pacakages
contains the corresponding libraries? (yum install ...............)

Thank you.
Sangeeta Maharjan.

On 2/8/14, Mary Haley <haley@ucar.edu> wrote:
> Sangeeta,
>
> As Andy said, you can do it on the command line.
>
> Or, you can edit $NCARG_ROOT/bin/ncargf77 and $NCARG_ROOT/bin/ncargf90 using
> a UNIX editor like "vi" or "emacs" and change the line:
>
> set syslibdir = "-L/usr/X11R6/lib64"
>
> to:
>
> set syslibdir = "-L/usr/lib64"
>
> However, in general, I would think your system should be automatically
> searching in /usr/lib64 for system libraries.
>
> --Mary
>
>
> On Feb 7, 2014, at 4:03 AM, Andrew Mai <mai@ucar.edu> wrote:
>
>> On 02/06/2014 11:49 PM, sangeeta maharjan wrote:
>>
>>> Andy, where should I change "-L/usr/X11R6/lib64" to "-L/usr/lib64" ? No
>>> idea.
>>>
>>>>> Compiling and linking...
>>>>> gfortran -fPIC -fno-second-underscore -O -o cpex08 cpexcc.f cpex08.f
>>>>> -L/usr/local/NCL/lib -L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c
>>>>> -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng
>>>>> -lz -lpthread -lbz2 -lXrender
>>
>> You could run the above command by hand yourself at the shell prompt,
>> changing it there:
>>
>> % gfortran -fPIC -fno-second-underscore -O -o cpex08 cpexcc.f cpex08.f
>> -L/usr/local/NCL/lib -L/usr/lib64 -lncarg -lncarg_gks -lncarg_c -lX11
>> -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz
>> -lpthread -lbz2 -lXrender
>>
>>
>>
>> That only solves the problem for one instance. I do not know where to
>> change things to make this
>> automatic and permanent.
>>
>> Andy
>> _______________________________________________
>> ncl-install mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
Received on Sat Feb 8 23:40:02 2014

This archive was generated by hypermail 2.1.8 : Mon Mar 03 2014 - 14:27:43 MST