Page 1 of 1

Installation on Mac

PostPosted: Mon Aug 23, 2010 2:58 pm
by James.c007
hello,

i am installing Dynare version 4.12 on a Mac with OS 10.5.8, matlab version R2008b (7.7). I have gcc v4.0 installed but when i am running build_matlab, I am getting the following error message: Any help is appreciated.

Thank you.

gcc-4.0 -c -I. -I/Applications/MATLAB_R2008b.app/extern/include -I/Applications/MATLAB_R2008b.app/simulink/include -DMATLAB_MEX_FILE -fno-common -no-cpp-precomp -fexceptions -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0707 -DMX_COMPAT_32 -O3 "mjdgges/mjdgges.c" -o ../../../mex/matlab/mjdgges.o

/var/folders/LS/LSub5KArEtSJ6W-G1CjnzZridlo/-Tmp-//ccMIKpf5.s:unknown:FATAL:can't create output file: ../../../mex/matlab/mjdgges.o

mex: compile of ' "mjdgges/mjdgges.c"' failed.

??? Error using ==> mex at 213
Unable to complete successfully.

Error in ==> build_matlab at 97
eval([ COMPILE_COMMAND ' -I. mjdgges/mjdgges.c ' LAPACK_PATH ]);

Re: Installation on Mac

PostPosted: Tue Aug 24, 2010 3:06 pm
by HoutanBastani
Hi,

I will test this on 10.5.8 tomorrow as I left that machine at home. In the meanwhile, please do the following:
    1) Delete /Applications/Dynare/4.1.2
    2) Reinstall Dynare 4.1.2
    3) In Matlab, type
    Code: Select all
    cd /Applications/Dynare/4.1.2/src/mex/sources

    4) In Matlab, type
    Code: Select all
    build_matlab

Is the error still there? If so, do the following:
    1) open /Applications/Utilities/Terminal.app
    2) At the terminal prompt, type:
    Code: Select all
    ls /Applications/Dynare/4.1.2/mex/matlab
    Post the output.
    3) At the terminal prompt, type:
    Code: Select all
    gcc-4.0 --version
    Post the output.
    4) At the terminal prompt, type
    Code: Select all
    cd /Applications/Dynare/4.1.2/src/mex/sources

    5) At the terminal prompt, type
    Code: Select all
    gcc-4.0 -c -I. -I/Applications/MATLAB_R2008b.app/extern/include -I/Applications/MATLAB_R2008b.app/simulink/include -DMATLAB_MEX_FILE -fno-common -no-cpp-precomp -fexceptions -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0707 -DMX_COMPAT_32 -O3 "mjdgges/mjdgges.c" -o ../../../mex/matlab/mjdgges.o
    Post the output.

Re: Installation on Mac

PostPosted: Wed Aug 25, 2010 8:50 am
by HoutanBastani
Hi,

I just installed Dynare 4.1.2 from the package downloaded from the website on OS X 10.5.8 and Matlab R2008a. As everything went smoothly, I can only assume that there is some specific problem with the setup on your computer. If you would like to discuss this further, please call me (check your private message inbox for my number).

Best,
Houtan