# Question about installation of MacOS

**URL:** <https://forum.cmascenter.org/t/question-about-installation-of-macos/5672>\
**Category:** Compiling\
**Tags:** cmaq\
**Created:** [March 17, 2025, 9:36pm UTC](https://forum.cmascenter.org/t/question-about-installation-of-macos/5672 "2025-03-17T21:36:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![whatheway](https://avatars.discourse-cdn.com/v4/letter/w/46a35a/32.png) [@whatheway](https://forum.cmascenter.org/u/whatheway)\
**Post date:** [March 17, 2025, 9:36pm UTC](https://forum.cmascenter.org/t/question-about-installation-of-macos/5672/1 "2025-03-17T21:36:31Z")

</div>

According to the User’s Guide Linux systems are recommended. However, I have a Mac and want to install it on that. Is there an option for that?

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [March 17, 2025, 10:46pm UTC](https://forum.cmascenter.org/t/question-about-installation-of-macos/5672/2 "2025-03-17T22:46:52Z")

</div>

In principle it should work, probably with a bit of effort on your part. At least some of sathis has been done in the past with GNU the GNU _gcc_ and Intel _ifort_ compilers. You’ll need them, of course.

First, you’ll need the libraries for netCDF-C (_libnetcdf.a_) built with _gcc_ and netCDF-Fortran (_libnetcdff.a_) built with _ifort_.

For the I/O API, there is a rather-old configuration file (2017, eight years ago) _Makeinclude.Darwin\_x86\_64ifort_ for the GNU _gcc_ and Intel _ifort_ compilers. You should be able to build the I/O API library and then the M3Tools programs, much as in the build-instructions [https://cjcoats.github.io/ioapi/AVAIL.html](https://cjcoats.github.io/ioapi/AVAIL.html), using `BIN=Darwin_x86_64ifort`

Then SMOKE should be straightforward; you might have a look at [The Easy Guide® for Building SMOKE](https://cjcoats.github.io/building_smoke.html).

Making the CMAQ build-system work on MacOS may be tricky; however, as a start you should be able to create a build-directory on a Linux system, copy it, and then modify the flags in the _Makefile_ to match those from the I/O API’s _Makeinclude.Darwin\_x86\_64ifort_

Running CMAQ and SMOKE, I don’t know. Note that the standard run-scripts use the tcsh shell – is that available on MacOS? (if not, you’ll have to translate into whatever shell-script language you have.
