If you've installed R, Xcode and Fortran (see 2 below), you are ready to make and install OpenMx.
terminal.app
, cd to ~/bin/OpenMx/
make build
# to build he binary bundle in staging or make install
to installmake test
to validate (takes time)You can also do this from inside R
devtools::build("~/bin/OpenMx", binary = TRUE) system(paste0("open ", .libPaths()[1]))
Xcode
(on the App Store)gfortran-nn.n-universal.pkg
from https://cran.r-project.org~/bin/OpenMx
(anywhere's fine, but this is standard)git clone git://github.com/OpenMx/OpenMx.git
cd OpenMx
git fetch origin --tags
git checkout v2.21.8
Add (or create) the following to mate ~/.R/Makevars
CC = /usr/bin/gcc CXX = /usr/bin/g++ CXX1X = /usr/bin/g++ FC = /opt/gfortran/bin/gfortran F77 = /opt/gfortran/bin/gfortran
Install OpenMP
CPPFLAGS += -Xclang -fopenmp
LDFLAGS += -lomp
Notes: Usually not necessary now
brew install mpi
xcode-select --install
in a terminal window to get standard C libraries etcAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.