<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Please improve this page:</div><div><br></div><div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><a href="http://www.ncl.ucar.edu/Download/macosx.shtml">http://www.ncl.ucar.edu/Download/macosx.shtml</a></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The instructions are confusing and probably not clear or contradicting.</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">My system set up is:</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Mac OS X 1.7</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Xcode 4.3.2</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">ncl_ncarg-6.0.0.MacOS_10.6_64bit_gcc421.tar.gz (It is mentioned that this should work with OSx 10.7)</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">gfortran 4.6.2</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Environment (.bash_profile)</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">export NCARG_ROOT=/usr/local</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">export PATH=$NCARG_ROOT/bin:$PATH</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">export DISPLAY=:0.0</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Created .hluresfile in $HOME</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br></div></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>(1) Which gfortran?</div><div><br></div><div>The page tells me to do first:</div><div><pre><font class="Apple-style-span" face="'Courier New'"><span class="Apple-tab-span" style="white-space: pre; ">        </span>sudo port install gcc45 +gfortran</font></pre><div>Then, later it tells me to do this:</div><div><br></div><div><font class="Apple-style-span" face="'Courier New'"><span class="Apple-tab-span" style="white-space: pre; ">        </span>fink install gfortran</font></div><div><br></div><div>Also, within the same section, it tells me that you got it from:</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span><a href="http://gcc.gnu.org/wiki/GFortranBinaries#MacOS">http://gcc.gnu.org/wiki/GFortranBinaries#MacOS</a></div><div><br></div><div>All installs different versions of gfortran and probably it is not necessary to do all these 3.</div><div><br></div><div>Also, later in the part close to the end, it says that the fortran version that the NCL binary is built against it should be installed.</div><div><br></div><div>I have installed ncl_ncarg-6.0.0.MacOS_10.6_64bit_gcc421.tar.gz, but it is not clear what version of gfortran is used (Is it the same as GCC version, which is 4.2.1?).</div><div><br></div><div>Also, when I installed Xcode 4.3.2, gcc and gfortran were installed already.</div><div><br></div><div>Also, fink install gfortran did not work, but this may be the one to use:</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span><font class="Apple-style-span" face="'Courier New'">fink install gfortran-shlibs</font> [virtual library]</div><div><br></div><div>This installs gcc47-shlibs-4.7.0-100. Not sure what gfortran version it is, but I presume that gfortran is just a part of GCC and probably has the same version number???</div><div><br></div><div>By any rate, you also mentions that you have used gfortran from <a href="http://gcc.gnu.org/wiki/GFortranBinaries#MacOS">http://gcc.gnu.org/wiki/GFortranBinaries#MacOS</a>.</div><div><br></div><div>This provides only gfortran-4.6.2-x86_64-Lion.dmg for download.</div><div><br></div><div>This is the gfortran package installed last on this system.</div><div><br></div><div><div><div><div><font class="Apple-style-span" face="'Courier New'">$ gfortran --version</font></div><div><font class="Apple-style-span" face="'Courier New'">GNU Fortran (GCC) 4.6.2 20111019 (prerelease)</font></div><div><font class="Apple-style-span" face="'Courier New'">Copyright (C) 2011 Free Software Foundation, Inc.</font></div></div></div></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><br></div><div><br></div><div>(2) Xcode 4.3.2</div><div><br></div><div>After installing Xcode 4.3.2, I have "downloaded" command line tools previously (before installing the gfortran).</div><div><br></div><div><div><div>Then ran sudo port install gcc45 +gfortran.</div></div></div><div><br></div><div>However, this causes warnings to run: </div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'"><span class="Apple-tab-span" style="white-space:pre">        </span>sudo xcode-select -switch /Applications/Xcode.app</font></div><div><br></div><div>Please add this information to the note, since this had better be done before issuing the port install command.</div><div><br></div><div><br></div><div>(3) limit command</div><div><br></div><div>I have put <font class="Apple-style-span" face="'Courier New'">limit stacksize unlimited</font> into .bash_profile but:</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>-bash: limit: command not found</div><div><br></div><div>It does not seem to be installed or not in the PATH. Where could it be?</div><div><br></div><div><br></div><div>(4) How to install the donwloaded NCL binary</div><div><br></div><div>There should be a link (or a correct order to do installation) or consolidated note about how to install NCL from the downloaded binary.</div><div><br></div><div>Typical users will go to this page but will see the link to Mac OS X installation note "Running NCL under MacOSX" and would not find a cohesive installation instruction there or will not think to combine the instructions with this link:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><font class="Apple-style-span" face="'Courier New'"><a href="http://www.ncl.ucar.edu/Download/install.shtml">http://www.ncl.ucar.edu/Download/install.shtml</a></font></div><div><br></div><div>By the way, this page says it would require csh or tcsh, but Mac requires only bash.</div><div><br></div><div>Please correct it to include Mac OS X, or include the similar instruction (step-by-step of how to install and test/run) in the "Running NCL under MacOSX".</div><div><br></div><div><br></div><div>(5) Testing</div><div><br></div><div>After installing all these and setting below: (by the way default shell is bash, please correct this in your pages, too)</div><div><br></div><div><font class="Apple-style-span" face="'Courier New'"><span class="Apple-tab-span" style="white-space: pre; ">        </span>export DYLD_LIBRARY_PATH=/usr/local/lib</font></div><div><br></div><div>I had to hunt for information on how to install the NCL binary and set up its environment as (4).</div><div><br></div><div>For how to test and use, there should be a link to: (or the same should be included on the Mac OS Note page)</div><div><br></div><div><font class="Apple-style-span" face="'Courier New'"><span class="Apple-tab-span" style="white-space: pre; ">        </span><a href="http://www.ncl.ucar.edu/get_started.shtm">http://www.ncl.ucar.edu/get_started.shtm</a></font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div>From install.shml page, these two commands worked:</div><div><br></div><div><pre><font class="Apple-style-span" face="'Courier New'"><span class="Apple-tab-span" style="white-space:pre">        </span>ng4ex gsun01n</font></pre><div><pre><font class="Apple-style-span" face="'Courier New'"><span class="Apple-tab-span" style="white-space:pre">        </span>ncl gsun01n.ncl</font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal; "><br></span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;">However, this did not:</span></font></pre><div><pre><span class="Apple-style-span" style="font-family: 'Courier New'; white-space: normal; ">$ ncargex cpex08 -clean</span></pre><div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'">NCAR Graphics Fortran Example <cpex08></font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'"> Copying cpex08.f</font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'"> Copying cpexcc.f</font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'">Compiling and linking...</font></div><div><font class="Apple-style-span" face="'Courier New'">gfortran -fPIC -fno-range-check -m64 -O -o cpex08 cpexcc.f cpex08.f -L/usr/local/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c -lXpm -lX11 -lXext</font></div><div><font class="Apple-style-span" face="'Courier New'">Undefined symbols for architecture x86_64:</font></div><div><font class="Apple-style-span" face="'Courier New'"> "__gfortran_transfer_character_write", referenced from:</font></div><div><font class="Apple-style-span" face="'Courier New'"> _capsap_ in ccUEA5Vc.o</font></div><div><font class="Apple-style-span" face="'Courier New'"> "__gfortran_transfer_integer_write", referenced from:</font></div><div><font class="Apple-style-span" face="'Courier New'"> _capsap_ in ccUEA5Vc.o</font></div><div><font class="Apple-style-span" face="'Courier New'"> "__gfortran_set_options", referenced from:</font></div><div><font class="Apple-style-span" face="'Courier New'"> _main in ccryWR2Q.o</font></div><div><font class="Apple-style-span" face="'Courier New'"> "__gfortran_os_error", referenced from:</font></div><div><font class="Apple-style-span" face="'Courier New'"> _mdlnam_ in libncarg.a(mdlnam.o)</font></div><div><font class="Apple-style-span" face="'Courier New'"> _mdlndr_ in libncarg.a(mdlndr.o)</font></div><div><font class="Apple-style-span" face="'Courier New'"> _dpgetc_ in libncarg.a(dpgetc.o)</font></div><div><font class="Apple-style-span" face="'Courier New'"> _dpgetr_ in libncarg.a(dpgetr.o)</font></div><div><font class="Apple-style-span" face="'Courier New'"> _dpsetc_ in libncarg.a(dpsetc.o)</font></div><div><font class="Apple-style-span" face="'Courier New'"> _dpsetr_ in libncarg.a(dpsetr.o)</font></div><div><font class="Apple-style-span" face="'Courier New'"> _icfell_ in libncarg.a(icfell.o)</font></div><div><font class="Apple-style-span" face="'Courier New'"> ...</font></div><div><font class="Apple-style-span" face="'Courier New'">ld: symbol(s) not found for architecture x86_64</font></div><div><font class="Apple-style-span" face="'Courier New'">collect2: ld returned 1 exit status</font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'">The compile and link failed.</font></div></div></div></div></div><div><br></div><div>Is this to do with the gfortran version used, or something else is missing (such as header files)?</div><div><br></div><div><br></div><div>Thanks,</div><div>Yoichi</div></div></div></div></div></div></div><br><div apple-content-edited="true">--------------------------------------------------<br>Yoichi Takayama, PhD<br>Research Officer<br>Climate Change Research Centre<br>Level 4 Mathews Building<br>University of New South Wales<br>Sydney, Australia, 2052<br>Phone (CCRC): +61 2 9385 8963 <br>Fax (CCRC): +61 2 9385 8969<br>--------------------------------------------------<br>UNSW ABN 57 195 873 179, CRICOS Provider 00098G<br>IMPORTANT: This email and any attachment(s) transmitted with it are intended solely for the use of the addressee(s) and may contain information that is confidential or subject to legal privilege. If you receive this email in error, please disregard the contents of the email and attachment(s), delete them and notify the sender immediately. Please note that any copying, distribution or use of this email is prohibited. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the view of The University of New South Wales. Before opening any attachments, please check for viruses.</div></div><div><br></div><div><br></div><br><div apple-content-edited="true">
--------------------------------------------------<br>Yoichi Takayama, PhD<br>Research Officer<br>Climate Change Research Centre<br>Level 4 Mathews Building<br>University of New South Wales<br>Sydney, Australia, 2052<br>Phone (CCRC): +61 2 9385 8963 <br>Fax (CCRC): +61 2 9385 8969<br>--------------------------------------------------<br>UNSW ABN 57 195 873 179, CRICOS Provider 00098G<br>IMPORTANT: This email and any attachment(s) transmitted with it are intended solely for the use of the addressee(s) and may contain information that is confidential or subject to legal privilege. If you receive this email in error, please disregard the contents of the email and attachment(s), delete them and notify the sender immediately. Please note that any copying, distribution or use of this email is prohibited. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the view of The University of New South Wales. Before opening any attachments, please check for viruses.
</div>
<br></body></html>