Problem installation Dynare 4.1.0 MAC 10.6

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Problem installation Dynare 4.1.0 MAC 10.6

Postby tpereira » Sun Jan 24, 2010 4:26 pm

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
tpereira
 
Posts: 2
Joined: Sun Jan 24, 2010 4:07 pm

Re: Problem installation Dynare 4.1.0 MAC 10.6

Postby SébastienVillemot » Mon Jan 25, 2010 2:29 pm

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,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Problem installation Dynare 4.1.0 MAC 10.6

Postby rfranolic » Wed Jan 27, 2010 8:25 am

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 ]);
rfranolic
 
Posts: 2
Joined: Wed Jan 27, 2010 8:14 am

Re: Problem installation Dynare 4.1.0 MAC 10.6

Postby rfranolic » Wed Jan 27, 2010 12:38 pm

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.
rfranolic
 
Posts: 2
Joined: Wed Jan 27, 2010 8:14 am

Re: Problem installation Dynare 4.1.0 MAC 10.6

Postby tpereira » Thu Feb 04, 2010 4:19 am

Thanks Sebastien. Now the Dynare is working.
Again. thanks a lot.

Thiago
tpereira
 
Posts: 2
Joined: Sun Jan 24, 2010 4:07 pm

Re: Problem installation Dynare 4.1.0 MAC 10.6

Postby JoshHendrickson » Sat Feb 13, 2010 4:15 am

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 ]);
JoshHendrickson
 
Posts: 1
Joined: Fri Feb 12, 2010 3:24 pm

Re: Problem installation Dynare 4.1.0 MAC 10.6

Postby SébastienVillemot » Mon Feb 15, 2010 4:38 pm

Hi

I guess that you didn't install GCC version 4.0, or that for whatever reason it is not in the path.

Best
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests