# Compiling Dynare for Red Hat

**URL:** <https://forum.dynare.org/t/compiling-dynare-for-red-hat/2317>\
**Category:** Dynare help (legacy posts)\
**Created:** [11 January 2012 17:59 UTC](https://forum.dynare.org/t/compiling-dynare-for-red-hat/2317 "2012-01-11T17:59:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lombard](https://forum.dynare.org/letter_avatar_proxy/v4/letter/l/ecb155/32.png) [@lombard](https://forum.dynare.org/u/lombard)\
**Post date:** [11 January 2012 17:59 UTC](https://forum.dynare.org/t/compiling-dynare-for-red-hat/2317/1 "2012-01-11T17:59:48Z")

</div>

Hi,

I encountered this error in compiling Dynare from source (4.2.0)

[quote]…/…/…/…/dynare++/sylv/cc/SylvParams.cpp: In member function ‘mxArray\* SylvParams::DoubleParamItem::createMatlabArray() const’:  
…/…/…/…/dynare++/sylv/cc/SylvParams.cpp:136: error: ‘mxCreateScalarDouble’ was not declared in this scope  
make[2]: \*\*\* [libdynare\_\_\_a-SylvParams.o] Error 1  
make[2]: Leaving directory `/stat-home/lombard/gianni/dynare-4.2.0/mex/build/matlab/libdynare++' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory`/stat-home/lombard/gianni/dynare-4.2.0/mex/build/matlab’  
make: \*\*\* [all-recursive] Error 1  
[/quote]

the mex for qz seemed to have been produced. Compiling the sylvester solver has failed.

Any clue about the possible cause?

Thanks and best

Gianni

---

<div class="post-metadata">

**Author:** ![lombard](https://forum.dynare.org/letter_avatar_proxy/v4/letter/l/ecb155/32.png) [@lombard](https://forum.dynare.org/u/lombard)\
**Post date:** [12 January 2012 12:22 UTC](https://forum.dynare.org/t/compiling-dynare-for-red-hat/2317/2 "2012-01-12T12:22:19Z")

</div>

Hi,

I’ve compiled version 4.2.4 on Red Hat without encountering the above mentioned problem.

Best

Gianni
