[gradsusr] [External] Re: GRADS runtime error (invald ELF header in libgxpCairo.a)

Kihang Youn kyoun at lenovo.com
Mon May 11 21:02:10 EDT 2020


Hi Jennifer,

Thank you for your recommendations.
As you said, I would like to try to install Grads version 2.1.1.
One more questions, If I tried to install Grads 2.2.* with dynamic linking, Do I need to install all of supplibs shared?
I think this question is not just about Grads, but about library linking. I just want to ask for comments.

Best Regards,
Kihang

Kihang Youn(윤기항) - Application Analyst | Lenovo DCG Professional Services
Mobile: +82-10-9374-9396
E-mail: kyoun at lenovo.com
________________________________
From: gradsusr <gradsusr-bounces at gradsusr.org> on behalf of Jennifer M Adams <jadams21 at gmu.edu>
Sent: Monday, May 11, 2020 21:12
To: gradsusr at gradsusr.org <gradsusr at gradsusr.org>
Subject: [External] Re: [gradsusr] GRADS runtime error (invald ELF header in libgxpCairo.a)

Hi, Kihong --
The more recent versions of GrADS (2.2.*) require dynamic linking because of the switch to handling the graphics code as plug-ins. If static linking is a hard requirement, then you'll have to drop back to version 2.1.1 (ftp://cola.gmu.edu/grads/2.1/). My recommendations for building the supplibs for the pre-2.2 builds is at http://cola.gmu.edu/grads/gadoc/supplibs.html.
--Jennifer

________________________________
From: gradsusr <gradsusr-bounces at gradsusr.org> on behalf of Kihang Youn <kyoun at lenovo.com>
Sent: Monday, May 11, 2020 2:01 AM
To: gradsusr at gradsusr.org <gradsusr at gradsusr.org>
Subject: [gradsusr] GRADS runtime error (invald ELF header in libgxpCairo.a)


Hi all,

I have some questions for Installation GRADS.
I would like to install grads static only.

First, here is my configuration.
###
export CC="mpicc"
export LDFLAGS="-L/${expat}/lib -L/${xml}/lib -L/${font}/lib -L/${szip}/lib -L/${pnetcdf}/lib -L/${curl}/lib -L/${jasper}/lib -L/${jpeg}/lib -L/${zlib}/lib -L/${gdlib}/lib -L/${tiff}/lib -L/${ftype}/lib -L/${cairo}/lib -L/${png}/lib -L/${ncurses}/lib -L/${rline}/lib -L/${gtiff}/lib -L/${gclib}/lib -L/${udunits}/lib -L/${libx11}/lib -L/${hdf5}/lib -L/${hdf4}/lib -L/${netcdf}/lib"
export CFLAGS="-I/${expat}/include -I/${xml}/include -I/${font}/include -I/${szip}/include -I/${pnetcdf}/include -I/${curl}/include -I/${jasper}/include -I/${jpeg}/include -I/${zlib}/include -I/${gdlib}/include -I/${tiff}/include -I/${ftype}/include/freetype2 -I/${cairo}/include/cairo -I/${png}/include -I/${ncurses}/include -I/${rline}/include -I/${gtiff}/include -I/${gclib}/include -I/${udunits}/include -I/${libx11}/include -I/${hdf5}/include -I/${hdf4}/include -I/${netcdf}/include"
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${libx11}/lib/pkgconfig/:${cairo}/lib/pkgconfig/:${font}/lib/pkgconfig/
export HDF4_CFLAGS='-I/${hdf4}/include'
export HDF4_LDFLAGS='-L/${hdf4}/lib'
export HDF4_LIBS='-lmfhdf -ldf -ljpeg -lz -lsz'
export HDF5_CFLAGS='-I/${hdf5}/include'
export HDF5_LDFLAGS='-L/${hdf5}/lib'
export HDF5_LIBS='-lhdf5 -lhdf5 -lhdf5_hl -ljpeg -lz '
export NC_LDFLAGS='-L/${netcdf}/lib'
export LIBS='-lmfhdf -ldf -ljpeg -lz -lsz -lm -lcurl -lhdf5_hl -lhdf5 -lpng15 -ludunits -lnetcdf -lpnetcdf -lxml2 -ljasper -lexpat'
./configure --prefix=$idir --enable-static --disable-shared --with-x --with-geotiff=${gtiff}  --with-hdf4=${hdf4} --with-netcdf=${netcdf} --with-hdf5=${hdf5} --with-udunits=${udunits} >& configure.log
###

Second, my updt file is below.
###
gxprint    GD       /${grads}/lib/libgxpGD.a
gxdisplay  X11      /${grads}/lib/lib/libgxdX11.a
gxprint    gxdummy  /${grads}/lib/lib/libgxdummy.a
gxdisplay  gxdummy  /${grads}/lib/lib/libgxdummy.a
gxprint    Cairo    /${grads}/lib/lib/libgxpCairo.a
gxdisplay  Cairo    /${grads}/lib/lib/libgxdCairo.a
###

Finally, this is my error with running grads.
###
Grid Analysis and Display System (GrADS) Version 2.2.1
Copyright (C) 1988-2018 by George Mason University
GrADS comes with ABSOLUTELY NO WARRANTY
See file COPYRIGHT for more information

Config: v2.2.1 little-endian readline grib2 netcdf hdf4-sds hdf5 geotiff
Issue 'q config' and 'q gxconfig' commands for more detailed configuration information
Landscape mode? ('n' for portrait):
GX Package Initialization: Size = 11 8.5
GX Package Error: dlopen failed to get a handle on gxprint plug-in named "Cairo"
   /${grads}/libgxpCairo.a: invalid ELF header
GX Package Terminated
###

More specified.
###
GX Package Error: dlopen failed to get a handle on gxprint plug-in named "Cairo"
   /${grads}/libgxpCairo.a: invalid ELF header
###

I googled this error and found no special way to solve.
Our system environment requires static installation, and I suspect that libcairo.a is not found in this situation.
If you know how to resolve this kind of situation, please share your opinions.

Thank you.



Best Regards,
Kihang

Kihang Youn(윤기항) - Application Analyst | Lenovo DCG Professional Services
Mobile: +82-10-9374-9396
E-mail: kyoun at lenovo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200512/295d5870/attachment-0001.html>


More information about the gradsusr mailing list