<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi, </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please CC <a href="mailto:ncl-install@ucar.edu">ncl-install@ucar.edu</a> when replying to messages, so other people can benefit from the dialog.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It looks to me like the libgfortran.so.3 file in /usr/lib is the wrong type for your system. It looks like you are trying to use a 32-bit binary on a 64-bit system:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"><span style="font-size:12.8px"> 'ncl:error while loading libraries:libgfortran.so.3:</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">wrong ELF class:ELFCLASS32'</span><br></font></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I'm not sure how you ended up with 32-bit files on your system. Did you recently go through an upgrade of some sort? What happens if you type:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">which gfortran</div><div class="gmail_default" style="font-size:small">which gcc</div><div class="gmail_default" style="font-size:small">gfortran --version</div><div class="gmail_default" style="font-size:small">gcc --version</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It's possible that you have multiple versions of gcc/gfortran on your system, and you will need to find the one that is 64-bit. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Do you have gfortran anywhere else on your system, like in /usr/local/bin? What does the following report:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">find /usr/local -name gfortran -print</div><div class="gmail_default" style="font-size:small"><div class="gmail_default">find /usr/local -name libgfortran -print</div><div><br></div></div><div class="gmail_default" style="font-size:small">This will help you see if you have gfortran installed anywhere under /usr/local</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you can't find any other versions of gfortran, and if the "gfortran --version" command gives you an error, then I highly recommend that you try reinstalling gfortran (and likely gcc) using the "sudo" instructions provided earlier. This will get you the libgfortran file, and hopefully a 64-bit one at that.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 29, 2016 at 8:57 PM, 475114511 <span dir="ltr"><<a href="mailto:475114511@qq.com" target="_blank">475114511@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I tried to locate libgfortran.so.3 again,this time,it showed /usr/lib/libgfotran.so.3.</div><div>Then I input 'export LD_LIBRARY_PATH=/usr/lib/ ',</div><div>'ng4ex gsun01n',</div><div>it showed 'ncl:error while loading libraries:libgfortran.so.3:<wbr>wrong ELF class:ELFCLASS32'</div><div>The NCL version is 'ncl_ncarg-6.3.0.Linux_<wbr>CentOS7.0_x86_64_gcc482'</div><div><br></div><div>What can I do next?</div><div><br></div><div>Thanks very much!</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><img src="cid:106DCF5C@9CEA3F02.164E3E58.png" style="line-height:1.5;width:894px;height:536px"></div><div><br></div><div><div><br></div><div><br></div><div style="font-size:12px;font-family:Arial Narrow;padding:2px 0 2px 0">------------------ 原始邮件 ------<wbr>------------</div><div style="font-size:12px;background:#efefef;padding:8px"><div><b>发件人:</b> "Mary Haley";<<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>>;</div><div><b>发送时间:</b> 2016年11月30日(星期三) 上午7:35</div><div><b>收件人:</b> ""<<a href="mailto:475114511@qq.com" target="_blank">475114511@qq.com</a>>; </div><div><b>抄送:</b> "ncl-install"<<a href="mailto:ncl-install@ucar.edu" target="_blank">ncl-install@<wbr>ucar.edu</a>>; </div><div><b>主题:</b> Re: [ncl-install] Ask for help: a problem about installing NCL</div></div><div><div class="h5"><div><br></div><div dir="ltr"><div class="gmail_default" style="font-size:small">Sara,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I noticed that your "locate libgfortran.so.3" command didn't produce any results. I don't think you installed the file that you actually wanted.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you google "error while loading shared libraries libgfortran.so.3", you will see some solutions. One of them was something like this:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">sudo apt-get install libgfortran3<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Or, maybe you just need to install gfortran:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">sudo apt-get install gfortran</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The other possibility is that the file got installed, but in a non-standard location that NCL can't see. You may need to set LD_LIBRARY_PATH to this directory to help NCL find it. See:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://archive.ambermd.org/201311/0370.html" target="_blank">http://archive.ambermd.org/<wbr>201311/0370.html</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">If you still can't find the file, then first see if you have gfortran:</div><div class="gmail_default"><br></div><div class="gmail_default">which gfortran</div><div class="gmail_default"><br></div><div class="gmail_default">If it echoes back a path, like "/usr/local/bin/gfortran", then you can use this information to see if "libgfortran" got installed anywhere under /usr/local (or whatever parent path it echoes back at you):</div><div class="gmail_default"><br></div><div class="gmail_default">find /usr/local -name 'libgfortran*' -print</div><div class="gmail_default"><br></div><div class="gmail_default">If you find libgfortran.so.3, then try setting LD_LIBRARY_PATH to this path.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary<br></div><div class="gmail_default"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 29, 2016 at 8:27 AM, 475114511 <span dir="ltr"><<a href="mailto:475114511@qq.com" target="_blank">475114511@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Dear Sir/Madam,</div><div>I've installed NCL in CentOS but when I input 'ng4ex gsun01n',it showed that there was no libgfortran.so.3 file.Then I input'sudo wget install libgfortran2:amd 64',it showed 'complete'.But I still can not find that file .What can I do next to fix this ?</div><div>Thanks so much!</div><div> Sara</div><div><img src="cid:ABBCD874@9CEA3F02.164E3E58" style="line-height:1.5;font-family:Verdana;width:894px;height:536px"></div></div><br>______________________________<wbr>_________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-install</a><br>
<br></blockquote></div><br></div></div></div></div></blockquote></div><br></div>