<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 24/04/2012, at 12:14 AM, Mary Haley wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br>On Apr 20, 2012, at 5:52 PM, Yoichi Takayama wrote:<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">On 21/04/2012, at 3:29 AM, Mary Haley wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">By the way, this page says it would require csh or tcsh, but Mac requires only bash.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">You need csh in order to run some of the tools that come with NCL, like "ncl_filedump" and "ncl_convert2nc".<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">That is great to know. Please include that information in the note or the installation instructions. It implies that and I suspected that is the case, but it is not explicit enough.<br></blockquote><br>When you got your Mac, did you only have "bash", and no "csh" or "tcsh"? I tried googling on this topic, but it isn't clear to me the best way to get these shells for your Mac.<br></span></blockquote><div><br></div>Default is bash.</div><div><br></div><div>However, one can issue csh to tch command to invoke these shells very easily.</div><div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">$ ncargex cpex08 -clean<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">......<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">The compile and link failed.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Is this to do with the gfortran version used, or something else is missing (such as header files)?<br></blockquote></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">This is because we don't have a binary for the Mac "x86_64" system yet. You downloaded a "i686" system,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">and I'm only just now starting to see requests for "x86_64".<span class="Apple-converted-space"> </span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Note: it's not important to get "cpex08" to compile. This is only for people using NCAR Graphics and writing C or Fortran programs.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">If you plan to use NCL only, then it's not critical to get this program to compile.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">However, if you want to try, you can try this:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> ncargex cpex08 -n<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> ncargf77 -o cpex08 cpex08.f cpexcc.f -lgfortran<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> ./cpex08<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">That is great to know. I actually plan to use NCAR Graphics in the near future and both of my machines (Mac and Linux) are installed with only x86_64.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">For this, do you suggest that I wait for the x86_64 version of NCL (and NCAR Graphics if it does not have x86_64 version yet) or can do with the commands you have suggested? I take that they are to instruct cpex08 to compile with older i686 symbols that NCL binary is compiled with.<br></blockquote><br>I think you should be able to use the NCL that you have. It's confusing, because the version you have was built on a system that claims it is "i686", but it was built in 64-bit mode (using the -m64 option with gcc/gfortran). For this reason I believe it should work fine under x86_64. I'm hoping to get access to a Mac that reports x86_64 so I can test this myself.<br></span></blockquote><div><br></div>I will give it a try next week.<br><div><br></div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><br><blockquote type="cite"><br></blockquote><blockquote type="cite">Alternatively, should I compile NCL from the source on the machines???<br></blockquote><br>You can try, but I would recommend trying to get what you have to work first. Building from source is not trivial. However, I will be happy to help you with this.<br></span></blockquote><br></div><div>This is the last resort and I don't embark on it unless it is necessary.</div><div><br></div><div>Cheers,</div><div>Yoichi</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">--------------------------------------------------<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.</span>
</div>
<br></body></html>