<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi, <div><br><div>I am trying to install the NCAR Graphics on a Linux machine.</div><div><br></div><div>I have installed NCL from the precompiles binaries following the instructions at <a href="https://www.ncl.ucar.edu/Download/install.shtml">https://www.ncl.ucar.edu/Download/install.shtml</a>. </div><div>NCL version is NCAR Command Language Version <b>6.2.0</b> and the system that I am working on is Linux intel19 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux. </div><div><b><br></b></div><div><br></div><div>I could test the following command successfully. </div><div> <span style="background-color: rgb(255, 255, 255); font-family: courier; font-size: 13px; line-height: 16px;">ng4ex gsun01n -clean</span></div><div><br></div><div>However, the test for NCAR Graphics fails. When I try the execute the following: </div><div><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 13px; line-height: 16px; font-family: courier; border-style: solid; border-width: 0px 0px 15px; border-color: transparent; background-color: rgb(255, 255, 255);">ncargex cpex08 -clean</pre><div>I get error: </div></div><div><div style="margin: 0px;"><font face="Courier New">NCAR Graphics Fortran Example <cpex08></font></div><div style="margin: 0px; min-height: 20px;"><font face="Courier New"><br></font></div><div style="margin: 0px;"><font face="Courier New"> Copying cpex08.f</font></div><div style="margin: 0px; min-height: 20px;"><font face="Courier New"><br></font></div><div style="margin: 0px;"><font face="Courier New"> Copying cpexcc.f</font></div><div style="margin: 0px; min-height: 20px;"><font face="Courier New"><br></font></div><div style="margin: 0px;"><font face="Courier New">Compiling and linking...</font></div><div style="margin: 0px;"><font face="Courier New">gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O -o cpex08 cpexcc.f cpex08.f -L/home/smritip1/NOAA/new_gsi/ncl_ncarg-6.2.0/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lbz2 -lXrender</font></div><div style="margin: 0px;"><font face="Courier New"><b>/usr/bin/ld: cannot find -lbz2</b></font></div><div style="margin: 0px;"><font face="Courier New"><b>collect2: error: ld returned 1 exit status</b></font></div><div style="margin: 0px; min-height: 20px;"><font face="Courier New"><br></font></div><div style="margin: 0px;"><font face="Courier New">The compile and link failed.</font></div></div><div style="margin: 0px;"><font face="Courier New"><br></font></div><div style="margin: 0px;">I don’t quite understand how to resolve this. Is this related to the zlib library ? I have already installed zlib. Could you please guide me how to fix this?</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Thanks,</div><div style="margin: 0px;">Smriti Prathapan</div></div></body></html>