INLA installation for Windows
Part I. Installing inla.exe
- Create a folder, e.g. C:\inla.
- Add the above folder to PATH
- right click on "My Computer" and choose "Properties"
- choose the "Advanced" tab
- click on "Environment Variables"
- depending on your permissions on the machine, try either
from the list of "System variables", find the variable named "Path"
and double click it.
at the beginning of the "Variable value", add "C:\inla\;".
If you make a mistake, just click "Cancel" and start from the last step
- or
under "User variables for {your login name)" click "NEW"
* in "Variable name" type "PATH"
* In "Variable value" type "C:\inla\;%PATH%"
- "OK" all the way back out
- Right click on the following link
http://www.math.ntnu.no/~hrue/GMRFLib/inla.binary/inla.exe--config-5,
choose "Save link as", and save to the folder above as "inla.exe".
- Right click on
http://www.math.ntnu.no/~hrue/GMRFLib/inla.binary/mingwm10.dll, choose
"Save link as", and save to the folder above.
- Right click on
http://www.math.ntnu.no/~hrue/GMRFLib/inla.binary/pthreadGC2.dll, choose
"Save link as", and save to the folder above.
- Note that adding "C:\inla" may not work, be sure to add "C:\inla\".
Part II. Installing R library INLA and dependent packages
- Save this file
http://www.math.ntnu.no/~hrue/GMRFLib/R-INLA/INLA.zip to desktop.
- From RGui, click on "Packages" menu and choose "Install package(s) from
local zip files..." and follow its directions.
- In RGui, type install.packages("pixmap") to install package
pixmap, which may be needed by INLA.
- Test run.
library(INLA)
?inla # bring up help page
INLA installation for Linux
Part I. Installing inla.exe
- Create a directory, e.g. ~/inla
- Add the above folder to PATH
- Find an appropriate executables from
http://www.math.ntnu.no/~hrue/GMRFLib/inla.binary/. Save it to the above
folder, rename it to "inla" and "chmod +x inla".
Part II. Installing R library INLA and dependent packages
- Save this file
http://www.math.ntnu.no/~hrue/GMRFLib/R-INLA/INLA.tgz
- R CMD INSTALL INLA.tgz
- In RGui, type install.packages("pixmap") to install package
pixmap, which may be needed by INLA.
INLA installation for Mac
Part I. Installing inla.exe
- Create a directory, e.g. ~/inla
- Add the above folder to the PATH variable, and possibly to
LD_LIBRARY_PATH and DYLD_LIBRARY_PATH as well.
- Right click on the following link
http://www.math.ntnu.no/~hrue/GMRFLib/inla.binary/inla--config-6,
choose "Download Linked File As", and save to the folder above as "inla"
and do "chmod +x inla".
- Right click on
http://www.math.ntnu.no/~hrue/GMRFLib/inla.binary/libgomp.1.dylib, choose
"Download Linked File As", and save to the folder above.
- Right click on
http://courses.washington.edu/b571/libgfortran.2.dylib, choose
"Download Linked File As", and save to the folder above.
-
(optional, for multithreading) Add to your profile: "export OMP_NUM_THREADS=2"
Part II. Installing R library INLA and dependent packages
- Save this file
http://www.math.ntnu.no/~hrue/GMRFLib/R-INLA/INLA.tgz
- R CMD INSTALL INLA.tgz
- In RGui, type install.packages("pixmap") to install package
pixmap, which may be needed by INLA.
References:
http://www.math.ntnu.no/~hrue/GMRFLib/