apples-computer:OpenMx hmaes$ gfortran --version
GNU Fortran (GCC) 4.3.0 20071026 (experimental)
Copyright (C) 2007 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
Hmm, on the two mac machines I have access to in the Boker lab, I try gfortran --version and get 4.2.3. I also type "which gfortran" and get /usr/local/bin/gfortran, which strongly suggests that gfortran was installed separately on these machines. Not having done any of this myself, I would recommend getting the gfortran 4.2.3 package from this page: http://r.research.att.com/tools/. Make sure to follow the directions about adding /usr/local/bin to your $PATH.
svn checkout went fine.
make install results in :
gfortran -arch i386 -fPIC -g -O2 -c sadmvn.f -o sadmvn.o
f951: error: unrecognized command line option "-arch"
make[1]: *** [sadmvn.o] Error 1
ERROR: compilation failed for package ‘OpenMx’
* Removing ‘/Library/Frameworks/R.framework/Resources/library/OpenMx’
make: *** [install] Error 1
apples-computer:trunk hmaes$
don't know if this problem is specific to Snow Leopard.
any suggestions?
What do you see when you run "gfortran --version" ?
apples-computer:OpenMx hmaes$ gfortran --version
GNU Fortran (GCC) 4.3.0 20071026 (experimental)
Copyright (C) 2007 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
apples-computer:OpenMx hmaes$
Hmm, on the two mac machines I have access to in the Boker lab, I try gfortran --version and get 4.2.3. I also type "which gfortran" and get /usr/local/bin/gfortran, which strongly suggests that gfortran was installed separately on these machines. Not having done any of this myself, I would recommend getting the gfortran 4.2.3 package from this page: http://r.research.att.com/tools/. Make sure to follow the directions about adding /usr/local/bin to your $PATH.
I have the same (older) version and location.
(I'm pretty sure I didn't install gfortran: perhaps that is where the XCode installer puts it?)
Might be worth (re?) installing Xcode 3.1.4 from the Apple Developer site?
Odd if the newer version of gfortran snow leopard didn't support -arch ....
which gfortran
/usr/local/bin/gfortran
gfortran --version
GNU Fortran (GCC) 4.2.3
Copyright (C) 2007 Free Software Foundation, Inc.
Build worked fine after installing gfortran 4.2.3.
Thanks!