Page 1 of 1
Problem installation Dynare 4.1.0 MAC 10.6
Posted:
Sun Jan 24, 2010 4:26 pm
by tpereira
Hi,
I`ve tried to install the Dynare 4.1.0 in a MAC 10.6. However, when I`ve run the code build_matlab, I`ve received the following message:
??? Error using ==> mex at 218
Unable to complete successfully.
Error in ==> build_matlab at 96
eval([ COMPILE_COMMAND ' -I. mjdgges/mjdgges.c ' LAPACK_PATH ]);
I`m sure that I`ve followed the instructions. My matlab is the 7.8.0.347(R2009a), 32-bit(maci).
Does anyone have a suggestion?
Thanks for any help
Thiago
Re: Problem installation Dynare 4.1.0 MAC 10.6
Posted:
Mon Jan 25, 2010 2:29 pm
by SébastienVillemot
Hi
I just uploaded a new package for MacOS 10.5 + 10.6 on Intel processors.
Please test it, and if the problem persists, let us know.
Best,
Re: Problem installation Dynare 4.1.0 MAC 10.6
Posted:
Wed Jan 27, 2010 8:25 am
by rfranolic
Hi,
I have exactly the same problem described by Thiago previously in the post. I downloaded Dynare 4.1 for Mac on Tuesday 26th Jan 2010, after Sebastien's uploaded the new package. Full output below, any help greatly appreciated.
Thanks,
Rob
EDU>> build_matlab
Delete old mex files.
Compiling mjdgges...
-> mexopts.sh sourced from directory (DIR = $MATLAB/bin)
FILE = /Applications/MATLAB_R2009aSV.app/bin/mexopts.sh
----------------------------------------------------------------
-> MATLAB = /Applications/MATLAB_R2009aSV.app
-> CC = gcc-4.0
-> CC flags:
CFLAGS = -fno-common -no-cpp-precomp -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -fexceptions
CDEBUGFLAGS =
COPTIMFLAGS = -O3
CLIBS = -L/Applications/MATLAB_R2009aSV.app/bin/maci -lmx -lmex -lmat -lstdc++
arguments = -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0708 -DMX_COMPAT_32
-> CXX = g++-4.0
-> CXX flags:
CXXFLAGS = -fno-common -no-cpp-precomp -fexceptions -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
CXXDEBUGFLAGS =
CXXOPTIMFLAGS = -O3
CXXLIBS = -L/Applications/MATLAB_R2009aSV.app/bin/maci -lmx -lmex -lmat -lstdc++
arguments = -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0708 -DMX_COMPAT_32
-> FC = gfortran
-> FC flags:
FFLAGS = -fexceptions -fbackslash
FDEBUGFLAGS = -gdwarf-2
FOPTIMFLAGS = -O
FLIBS = -L/Applications/MATLAB_R2009aSV.app/bin/maci -lmx -lmex -lmat -L -lgfortran -L -lgfortranbegin
arguments = -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0708 -DMX_COMPAT_32
-> LD = gcc-4.0
-> Link flags:
LDFLAGS = -Wl,-twolevel_namespace -undefined error -arch i386 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -bundle -Wl,-exported_symbols_list,/Applications/MATLAB_R2009aSV.app/extern/lib/maci/mexFunction.map
LDDEBUGFLAGS =
LDOPTIMFLAGS = -O3
LDEXTENSION = .mexmaci
arguments = -lmwlapack
-> LDCXX =
-> Link flags:
LDCXXFLAGS =
LDCXXDEBUGFLAGS =
LDCXXOPTIMFLAGS =
LDCXXEXTENSION =
arguments = -lmwlapack
----------------------------------------------------------------
/Applications/MATLAB_R2009aSV.app/bin/mex: line 1102: gcc-4.0: command not found
/Applications/MATLAB_R2009aSV.app/bin/mex: line 1081: gcc-4.0: command not found
-> gcc-4.0 -c -I. -I/Applications/MATLAB_R2009aSV.app/extern/include -I/Applications/MATLAB_R2009aSV.app/simulink/include -DMATLAB_MEX_FILE -fno-common -no-cpp-precomp -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -fexceptions -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0708 -DMX_COMPAT_32 -O3 "mjdgges/mjdgges.c" -o ../../../mex/matlab//mjdgges.o
/Applications/MATLAB_R2009aSV.app/bin/mex: line 992: gcc-4.0: command not found
mex: compile of ' "mjdgges/mjdgges.c"' failed.
??? Error using ==> mex at 218
Unable to complete successfully.
Error in ==> build_matlab at 96
eval([ COMPILE_COMMAND ' -I. mjdgges/mjdgges.c ' LAPACK_PATH ]);
Re: Problem installation Dynare 4.1.0 MAC 10.6
Posted:
Wed Jan 27, 2010 12:38 pm
by rfranolic
Thanks to Sebastien who identified that the compiler was missing. 'xcode', which includes the compiler, didn't come pre-installed on my Mac, but was present on the installation CD's. So just needed to install that first.
Re: Problem installation Dynare 4.1.0 MAC 10.6
Posted:
Thu Feb 04, 2010 4:19 am
by tpereira
Thanks Sebastien. Now the Dynare is working.
Again. thanks a lot.
Thiago
Re: Problem installation Dynare 4.1.0 MAC 10.6
Posted:
Sat Feb 13, 2010 4:15 am
by JoshHendrickson
I have Xcode installed and yet I am still getting the error message. Full code posted below:
Delete old mex files.
Compiling mjdgges...
-> mexopts.sh sourced from directory (DIR = $MATLAB/bin)
FILE = /Applications/MATLAB_SV74/bin/mexopts.sh
----------------------------------------------------------------
-> MATLAB = /Applications/MATLAB_SV74
-> CC = gcc-4.0
-> CC flags:
CFLAGS = -fno-common -no-cpp-precomp -fexceptions
CDEBUGFLAGS =
COPTIMFLAGS = -O3
CLIBS = -L/Applications/MATLAB_SV74/bin/maci -lmx -lmex -lmat -lstdc++
arguments = -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0704 -DMX_COMPAT_32
-> CXX = g++-4.0
-> CXX flags:
CXXFLAGS = -fno-common -no-cpp-precomp -fexceptions -arch i386
CXXDEBUGFLAGS =
CXXOPTIMFLAGS = -O3
CXXLIBS = -L/Applications/MATLAB_SV74/bin/maci -lmx -lmex -lmat -lstdc++
arguments = -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0704 -DMX_COMPAT_32
-> FC = g95
-> FC flags:
FFLAGS = -fexceptions
FDEBUGFLAGS = -g
FOPTIMFLAGS = -O
FLIBS = -L/Applications/MATLAB_SV74/bin/maci -lmx -lmex -lmat -L -lf95
arguments = -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0704 -DMX_COMPAT_32
-> LD = gcc-4.0
-> Link flags:
LDFLAGS = -bundle -Wl,-flat_namespace -undefined suppress -Wl,-exported_symbols_list,/Applications/MATLAB_SV74/extern/lib/maci/mexFunction.map
LDDEBUGFLAGS =
LDOPTIMFLAGS = -O3
LDEXTENSION = .mexmaci
arguments = -lmwlapack
-> LDCXX =
-> Link flags:
LDCXXFLAGS =
LDCXXDEBUGFLAGS =
LDCXXOPTIMFLAGS =
LDCXXEXTENSION =
arguments = -lmwlapack
----------------------------------------------------------------
/Applications/MATLAB_SV74/bin/mex: line 1025: gcc-4.0: command not found
/Applications/MATLAB_SV74/bin/mex: line 1004: gcc-4.0: command not found
-> gcc-4.0 -c -I. -I/Applications/MATLAB_SV74/extern/include -I/Applications/MATLAB_SV74/simulink/include -DMATLAB_MEX_FILE -fno-common -no-cpp-precomp -fexceptions -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0704 -DMX_COMPAT_32 -O3 mjdgges/mjdgges.c -o ../../../mex/matlab//mjdgges.o
/Applications/MATLAB_SV74/bin/mex: line 930: gcc-4.0: command not found
mex: compile of 'mjdgges/mjdgges.c' failed.
??? Error using ==> mex at 206
Unable to complete successfully.
Error in ==> build_matlab at 96
eval([ COMPILE_COMMAND ' -I. mjdgges/mjdgges.c ' LAPACK_PATH ]);
Re: Problem installation Dynare 4.1.0 MAC 10.6
Posted:
Mon Feb 15, 2010 4:38 pm
by SébastienVillemot
Hi
I guess that you didn't install GCC version 4.0, or that for whatever reason it is not in the path.
Best