Installing OpenMx on MacBook with Snow Leopard

6 replies [Last post]
Hermine's picture
Offline
Joined: 07/31/2009

As I just upgraded to Snow Leopard on my new hard drive in my MacBook, I need to find out what the best/recommended way is to install OpenMx.

Hermine's picture
Offline
Joined: 07/31/2009
svn checkout went fine. make

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?

mspiegel's picture
Offline
Joined: 07/31/2009
What do you see when you run

What do you see when you run "gfortran --version" ?

Hermine's picture
Offline
Joined: 07/31/2009
apples-computer:OpenMx hmaes$

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$

mspiegel's picture
Offline
Joined: 07/31/2009
Hmm, on the two mac machines

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.

tbates's picture
Offline
Joined: 07/31/2009
I have the same (older)

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.

Hermine's picture
Offline
Joined: 07/31/2009
Build worked fine after

Build worked fine after installing gfortran 4.2.3.

Thanks!