# Install MEGANv3.2 with intel

**URL:** <https://forum.cmascenter.org/t/install-meganv3-2-with-intel/4373>\
**Category:** MEGAN\
**Created:** [September 12, 2023, 7:48pm UTC](https://forum.cmascenter.org/t/install-meganv3-2-with-intel/4373 "2023-09-12T19:48:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jano](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@Jano](https://forum.cmascenter.org/u/Jano)\
**Post date:** [September 12, 2023, 7:48pm UTC](https://forum.cmascenter.org/t/install-meganv3-2-with-intel/4373/1 "2023-09-12T19:48:36Z")

</div>

Hi there!  
Only to inform that if you want to install the [Preprocessor code](https://bai.ess.uci.edu/megan/data-and-code/megan32) with intel, consider to modify the Makefile, as follows:

```auto
F90 = ifort #$(FC)                                                           
#LIBS = -L$(NETCDF_DIR)/lib -lnetcdf                                                                              
LIBS = -L$(NETCDF_DIR)/lib -lnetcdff -lnetcdf                                 
INCLUDE_MODULES = -I$(NETCDF_DIR)/include                                       
FFLAGS = -O3 -Bstatic

```

Please, verify if $NETCDF and $NETCDF\_DIR exists. I understand that we need to install netcdf-c and netcdf-fortran. After that, I compiled 4 submodules of ‘prepmega4cmaq’ typing the following commands:

```auto
./make_util prepmegan4cmaq_lai.x
./make_util prepmegan4cmaq_grwform.x
./make_util prepmegan4cmaq_ecotype.x
./make_util prepmegan4cmaq_cantype.x

```

I successfully created each prepmegan4cmaq files. However, I was wondering if I did correctly the MEGAN preprocessors.

Best regards,  
Jano

---

<div class="post-metadata">

**Author:** ![willison.jeff](https://avatars.discourse-cdn.com/v4/letter/w/c89c15/32.png) [@willison.jeff](https://forum.cmascenter.org/u/willison.jeff)\
**Post date:** [September 12, 2023, 8:02pm UTC](https://forum.cmascenter.org/t/install-meganv3-2-with-intel/4373/2 "2023-09-12T20:02:28Z")

</div>

It looks like you did it correctly 👍🏻
