<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div><span><br></span></div><div class="yahoo_quoted" style="display: block;">Having trouble with ncl ncargf90 compilation as given below (plz see the appended e-mail exchanges)<br><div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"><div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"><div class="y_msg_container"><div id="yiv9608691262"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande',
sans-serif; background-color: transparent; font-style: normal;"><span><br clear="none"></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>On:</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br clear="none"></span></div><div style="font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="color:rgb(101, 33, 145);">locate libX11</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent;
font-style: normal;"><span><br clear="none"></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>I get the following:</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br clear="none"></span></div><div style="font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="color:rgb(101, 33, 145);">/usr/X11R6/libx11.so</span></div><div style="font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span
style="color:rgb(101, 33, 145);">/usr/lib/libx11.so<br clear="none"></span></div><div style="font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="color:rgb(101, 33, 145);">/usr/lib/libx11.so.6<br clear="none"></span></div><div style="font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="color:rgb(101, 33, 145);"><span>/</span><span style="font-size:10pt;">usr/lib/libx11.so.6.2.0</span></span></div><div style="color: rgb(0, 0, 0); font-size: 10pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="font-size:10pt;"><br clear="none"></span></div><div style="font-size: 13px; font-family: HelveticaNeue, 'Helvetica
Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span style="color:rgb(0, 0, 0);font-size:10pt;">but not "</span><span style="font-family: monospace; font-size: 10pt;">/usr/lib64/<span style="font-weight:bold;color:rgb(205, 35, 44);">libX11.a</span>". Plz note libX11<span style="color:rgb(205, 35, 44);">.a (as was suggested by Dr Mary)</span></span></div><div style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal; color: rgb(205, 35, 44);"><span style="font-family: monospace; font-size: 10pt;"><br clear="none"></span></div><div style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal;">Further on compiling as:</div><div style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal;"><br clear="none"></div><div style="font-size: 13px; font-family: monospace;
background-color: transparent; font-style: normal;"><span style="color:rgb(101, 33, 145);">ncargf90 -L/usr/lib name.f</span></div><div style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal; color: rgb(0, 0, 0);"><br clear="none"></div><div style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal; color: rgb(0, 0, 0);">I get the following:</div><div style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal;"><span style="color:rgb(101, 33, 145);">gfortran -fPIC -fnosecond-underscore -fno-range-check -O -L/usr/lib name.f -L/usr/local/ncl-5.2.1/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXest</span></div><div style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal;"><span style="color:rgb(101, 33, 145);"><br clear="none"></span></div><div style="font-size: 13px; font-family:
monospace; background-color: transparent; font-style: normal;"><span style="color:rgb(101, 33, 145);">/usr/bin/ld: cannot find -lX11</span></div><div style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal;"><span style="color:rgb(101, 33, 145);"><br clear="none"></span></div><div style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal;"><span style="color:rgb(101, 33, 145);">collect2: ld returned 1 exit status</span></div><div style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal; color: rgb(0, 0, 0);"><br clear="none"></div><div style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal; color: rgb(0, 0, 0);">Kindly advice.</div><div style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal; color: rgb(0, 0, 0);"><br clear="none"></div><div
style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal; color: rgb(0, 0, 0);">regards,</div><div style="font-size: 13px; font-family: monospace; background-color: transparent; font-style: normal; color: rgb(0, 0, 0);">D. Swain</div><div class="yiv9608691262yqt6064315825" id="yiv9608691262yqt70896"><div class="yiv9608691262yahoo_quoted" style="display: block;"> <br clear="none"> <br clear="none"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Tuesday, December 10, 2013 10:15 PM, Mary Haley <haley@ucar.edu> wrote:<br clear="none"> </font> </div> <div class="yiv9608691262y_msg_container">When you type:<br clear="none"><br clear="none">locate libX11<br
clear="none"><br clear="none">What does it report?<br clear="none"><br clear="none">If it reports something like:<br clear="none"><br clear="none">/usr/lib64/libX11.so<br clear="none">/usr/lib64/libX11.a<br clear="none"><br clear="none">then this means you need to include "-L/usr/lib64" on the "ncargf90" compile line.<br clear="none"><br clear="none">ncargf90 -L/usr/lib64 ….<br clear="none"><br clear="none">--Mary<br clear="none"><div class="yiv9608691262yqt1634001156" id="yiv9608691262yqtfd82517"><br clear="none">On Dec 10, 2013, at 12:50 AM, D Swain <<a rel="nofollow" shape="rect" ymailto="mailto:d_swain@ymail.com" target="_blank" href="mailto:d_swain@ymail.com">d_swain@ymail.com</a>> wrote:<br clear="none"><br clear="none">> dear Dr. Mary<br clear="none">> <br clear="none">> Thanks a lot for addressing my concern. I indeed need to compile some fortran programs developed/modified sometime back and hence need the ncargf90 compiler.<br
clear="none">> <br clear="none">> As per your suggestion, I did try out same. It shows a libX11 folder but still unable to address the problem. I also looked into the path etc. but all seems to be fine.<br clear="none">> <br clear="none">> did try the suggestions mentioned in the link ........... that too fails ? i am really perplexed !!!!!!!<br clear="none">> still going on with it. Hopefully I shall be able to solve the issue. Thank you once again and shall get back to you after the present round of
efforts.<br clear="none">> <br clear="none">> best regards,<br clear="none">> D. Swain<br clear="none">> <br clear="none">> <br clear="none">> On Thursday, December 5, 2013 9:23 PM, Mary Haley <<a rel="nofollow" shape="rect" ymailto="mailto:haley@ucar.edu" target="_blank" href="mailto:haley@ucar.edu">haley@ucar.edu</a>> wrote:<br clear="none">> Hi,<br clear="none">> <br clear="none">> If you are only interested in running "ncl" on NCL scripts, then it is not important for ncargf90 or ncargf77 to work. These are for compiling the old-style NCAR Graphics C and Fortran programs.<br clear="none">> <br clear="none">> If you need to get these commands to work, then the issue is that you don't appear to have the X11 libraries installed on your system. Either that, or your compiler can't find them. Did you try:<br clear="none">> <br clear="none">> locate libX11<br clear="none">> <br clear="none">> ?<br
clear="none">> <br clear="none">>
If the above command doesn't appear to find anything, then please see:<br clear="none">> <br clear="none">> <a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Download/linux.shtml#InstallSoftware">http://www.ncl.ucar.edu/Download/linux.shtml#InstallSoftware</a><br clear="none">> <br clear="none">> for more information about getting X11 installed on your system. <br clear="none">> <br clear="none">> --Mary<br clear="none">> <br clear="none">> On Dec 5, 2013, at 1:43 AM, D Swain <<a rel="nofollow" shape="rect" ymailto="mailto:d_swain@ymail.com" target="_blank" href="mailto:d_swain@ymail.com">d_swain@ymail.com</a>> wrote:<br clear="none">> <br clear="none">> > Hello All,<br clear="none">> > <br clear="none">> > Solicit your suggestion on the following.<br clear="none">> > <br clear="none">> > I was trying to install the NCL precompiled binaries for Linux (non-openDap)
following the web guidelines.<br clear="none">> > <br clear="none">> > I am using Ubuntu 9.04 OS on a i386 (32-bit) machine with gcc 4.4.3<br clear="none">> > <br clear="none">> > However, on executing commands like "ncargf90" or "ncargf77", the following appear on the terminal for both:<br clear="none">> > gfortran -fPIC -fno-second-underscore -fno-range-check -O0 -L/usr/local/ncl-4.3.2/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext<br clear="none">> > /usr/bin/ld: cannot find -lX11<br clear="none">> > collect2: ld returned 1 exit status <br clear="none">> > <br clear="none">> > I have tried with different versions of NCL precompiled binaries as well as installing libx11 but without success. <br clear="none">> > Kindly suggest how to overcome this.<br clear="none">> > <br clear="none">> > P.S. I dont want to go for a full OS upgrade at this point of time.<br clear="none">>
> <br clear="none">> >
thanks in advance.<br clear="none">> > <br clear="none">> > best regards,<br clear="none">> > D. Swain<br clear="none">> > <br clear="none">> > <br clear="none">> > _______________________________________________<br clear="none">> > ncl-install mailing list<br clear="none">> > List instructions, subscriber options, unsubscribe:<br clear="none">> > <a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-install">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br clear="none">> <br clear="none">> <br clear="none"></div><br clear="none"><br clear="none"></div> </div> </div> </div></div> </div></div></div><br><br></div> </div> </div> </div> </div></body></html>