Re: gfortran error? installing NCL on Mac OS X Lion

From: Yoichi Takayama <y.takayama_at_nyahnyahspammersnyahnyah>
Date: Wed Apr 25 2012 - 03:29:57 MDT

On 24/04/2012, at 12:14 AM, Mary Haley wrote:

>
> On Apr 20, 2012, at 5:52 PM, Yoichi Takayama wrote:
>
>>
>> On 21/04/2012, at 3:29 AM, Mary Haley wrote:
>>
>>>> By the way, this page says it would require csh or tcsh, but Mac requires only bash.
>>>
>>> You need csh in order to run some of the tools that come with NCL, like "ncl_filedump" and "ncl_convert2nc".
>>
>> 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.
>
> 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.

Default is bash.

However, one can issue csh to tch command to invoke these shells very easily.

>
>>
>>>> $ ncargex cpex08 -clean
>>>>
>>>> ......
>>>>
>>>> The compile and link failed.
>>>>
>>>> Is this to do with the gfortran version used, or something else is missing (such as header files)?
>>
>>> This is because we don't have a binary for the Mac "x86_64" system yet. You downloaded a "i686" system,
>>> and I'm only just now starting to see requests for "x86_64".
>>>
>>> Note: it's not important to get "cpex08" to compile. This is only for people using NCAR Graphics and writing C or Fortran programs.
>>> If you plan to use NCL only, then it's not critical to get this program to compile.
>>>
>>> However, if you want to try, you can try this:
>>>
>>> ncargex cpex08 -n
>>> ncargf77 -o cpex08 cpex08.f cpexcc.f -lgfortran
>>> ./cpex08
>>
>> 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.
>>
>> 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.
>
> 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.

I will give it a try next week.

>
>>
>> Alternatively, should I compile NCL from the source on the machines???
>
> 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.

This is the last resort and I don't embark on it unless it is necessary.

Cheers,
Yoichi

--------------------------------------------------
Yoichi Takayama, PhD
Research Officer
Climate Change Research Centre
Level 4 Mathews Building
University of New South Wales
Sydney, Australia, 2052
Phone (CCRC): +61 2 9385 8963
Fax (CCRC): +61 2 9385 8969
--------------------------------------------------
UNSW ABN 57 195 873 179, CRICOS Provider 00098G
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.

Received on Wed Apr 25 03:30:03 2012

This archive was generated by hypermail 2.1.8 : Thu May 03 2012 - 09:26:29 MDT