[RegCNET] How to install RegCM4 on a Mac laptop?
Graziano Giuliani
ggiulian at ictp.it
Mon Jan 28 10:58:36 CET 2013
On 01/24/2013 01:50 AM, Qian, JianHua wrote:
> Dear all,
>
> Can RegCM4.3.5.2 be run on a Mac laptop? If yes, could you share with me the step by step procedure of its installation on a Mac OS X?
>
> Thanks for your help!
> Joshua
>
[...]
You need to install a Fortran compiler. I do not have a Mac to go into an EXACT
step by step installation, which is also dependent on the OS X release, but from
the experience with ONE installation I have done on a researcher laptop, and on
the Mountain Lion OS:
1) Install Xcode https://developer.apple.com/xcode WITH COMMAND LINE TOOLS
enabled. In my case it did require FIRST the installation an THEN to enable the
command line tools. After the installation, open up Xcode in your /Applications
folder. You’d want to go to Xcode -> Preferences -> Downloads tab then install
the “Command Line Tools.” After you’re done, quit Xcode.
2) Install Macports https://www.macports.org/install.php using the package
installer.
3) Log out and login as administrator and open a terminal. Now you can access
the port command, and you can install software.
port install gcc46
port install mpich +gcc46
port install netcdf +netcdf4 +dap +gcc46
port install netcdf-fortran +gcc46
port install grads +curl +netcdf +udunits +readline +gd2 +shapelib +wgrib2
port install ncview
Whit this you should have a "minimal" environment to compile the model following
the User Guide for the GNU fortran compiler. Note that all this comes from my
memory and some google search, I am not able to help more than this because I do
not own myself a Mac.
Things obviously change if You want to use a different compiler, such as Intel,
IBM, PGI, etc. Hope someone else on the list can share her experience on this.
Graziano.
--
Graziano Giuliani - Earth System Physics Section
The Abdus Salam International Centre for Theoretical Physics
Strada Costiera, 11 - I - 34151 Trieste Italy
More information about the RegCNET
mailing list