[ncl-install] could not build NCL
sangeeta maharjan
sangeetamaharjan at gmail.com
Sat Feb 8 23:39:56 MST 2014
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 at 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 at 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
>
More information about the ncl-install
mailing list