<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ks_c_5601-1987">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Hi Jennifer,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Thank you for your recommendations.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
As you said, I would like to try to install Grads version 2.1.1.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
One more questions, If I tried to install Grads 2.2.* with dynamic linking, Do I need to install all of supplibs shared?<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span lang="en"><span title="">I think this question is not just about Grads, but about library linking.<span lang="en"><span title=""> I just want to ask for comments.</span></span><br>
</span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Kihang<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(12, 100, 192);"><b>Kihang Youn(À±±âÇ×)</b></span> - Application Analyst | Lenovo DCG <span style="">Professional Services</span>
<div>Mobile: +82-10-9374-9396<br>
</div>
E-mail: kyoun@lenovo.com<br>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Jennifer M Adams <jadams21@gmu.edu><br>
<b>Sent:</b> Monday, May 11, 2020 21:12<br>
<b>To:</b> gradsusr@gradsusr.org <gradsusr@gradsusr.org><br>
<b>Subject:</b> [External] Re: [gradsusr] GRADS runtime error (invald ELF header in libgxpCairo.a)</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi, Kihong -- <br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
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 (<a href="ftp://cola.gmu.edu/grads/2.1/" id="LPlnk978069">ftp://cola.gmu.edu/grads/2.1/</a>).
 My recommendations for building the supplibs for the pre-2.2 builds is at <a href="http://cola.gmu.edu/grads/gadoc/supplibs.html" id="LPNoLP855777">
http://cola.gmu.edu/grads/gadoc/supplibs.html</a>.<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
--Jennifer<br>
</div>
<div>
<div id="x_appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Kihang Youn <kyoun@lenovo.com><br>
<b>Sent:</b> Monday, May 11, 2020 2:01 AM<br>
<b>To:</b> gradsusr@gradsusr.org <gradsusr@gradsusr.org><br>
<b>Subject:</b> [gradsusr] GRADS runtime error (invald ELF header in libgxpCairo.a)</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Hi all,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
I have some questions for Installation GRADS.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
I would like to install grads static only.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
First, here is my configuration.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<span></span>###<br>
<div>export CC="mpicc"<br>
</div>
<div>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"<br>
</div>
<div>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"<br>
</div>
<div>export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${libx11}/lib/pkgconfig/:${cairo}/lib/pkgconfig/:${font}/lib/pkgconfig/<br>
</div>
<div>export HDF4_CFLAGS='-I/${hdf4}/include'<br>
</div>
<div>export HDF4_LDFLAGS='-L/${hdf4}/lib'<br>
</div>
<div>export HDF4_LIBS='-lmfhdf -ldf -ljpeg -lz -lsz'<br>
</div>
<div>export HDF5_CFLAGS='-I/${hdf5}/include'<br>
</div>
<div>export HDF5_LDFLAGS='-L/${hdf5}/lib'<br>
</div>
<div>export HDF5_LIBS='-lhdf5 -lhdf5 -lhdf5_hl -ljpeg -lz '<br>
</div>
<div>export NC_LDFLAGS='-L/${netcdf}/lib'<br>
</div>
<div>export LIBS='-lmfhdf -ldf -ljpeg -lz -lsz -lm -lcurl -lhdf5_hl -lhdf5 -lpng15 -ludunits -lnetcdf -lpnetcdf -lxml2 -ljasper -lexpat'<br>
</div>
<div>./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<br>
</div>
<span></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
###<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Second, my updt file is below.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<span>###<br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<span>gxprint    GD       /${grads}/lib/libgxpGD.a<br>
</span>
<div>gxdisplay  X11      /${grads}/lib/lib/libgxdX11.a<br>
</div>
<div>gxprint    gxdummy  /${grads}/lib/lib/libgxdummy.a<br>
</div>
<div>gxdisplay  gxdummy  /${grads}/lib/lib/libgxdummy.a<br>
</div>
<div>gxprint    Cairo    /${grads}/lib/lib/libgxpCairo.a<br>
</div>
<div>gxdisplay  Cairo    /${grads}/lib/lib/libgxdCairo.a<br>
</div>
<span></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
###<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Finally, this is my error with running grads.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
###<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<span>Grid Analysis and Display System (GrADS) Version 2.2.1<br>
</span>
<div>Copyright (C) 1988-2018 by George Mason University<br>
</div>
<div>GrADS comes with ABSOLUTELY NO WARRANTY<br>
</div>
<div>See file COPYRIGHT for more information<br>
</div>
<div><br>
</div>
<div>Config: v2.2.1 little-endian readline grib2 netcdf hdf4-sds hdf5 geotiff<br>
</div>
<div>Issue 'q config' and 'q gxconfig' commands for more detailed configuration information<br>
</div>
<div>Landscape mode? ('n' for portrait):<br>
</div>
<div>GX Package Initialization: Size = 11 8.5<br>
</div>
<div>GX Package Error: dlopen failed to get a handle on gxprint plug-in named "Cairo"<br>
</div>
<div>   /${grads}/libgxpCairo.a: invalid ELF header<br>
</div>
<span>GX Package Terminated</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
###<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
More specified.<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
###<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<span></span></div>
GX Package Error: dlopen failed to get a handle on gxprint plug-in named "Cairo"<br>
</div>
<div>   /${grads}/libgxpCairo.a: invalid ELF header</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
###<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<span></span></div>
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<div><span>I googled this error and found no special way to solve.</span><br>
<span>Our system environment requires static installation, and I suspect that libcairo.a is not found in this situation.</span><br>
<span>If you know how to resolve this kind of situation, please share your opinions.</span><br>
<span><br>
</span></div>
<div><span>Thank you.</span></div>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_x_Signature">
<div></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Best Regards,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Kihang<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(12,100,192)"><b>Kihang Youn(À±±âÇ×)</b></span> - Application Analyst | Lenovo DCG <span style="">Professional Services</span>
<div>Mobile: +82-10-9374-9396<br>
</div>
E-mail: kyoun@lenovo.com<br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>