INLA installation for Windows

Part I. Installing inla.exe

  1. Create a folder, e.g. C:\inla.
  2. Add the above folder to PATH
  3. 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".
  4. Right click on http://www.math.ntnu.no/~hrue/GMRFLib/inla.binary/mingwm10.dll, choose "Save link as", and save to the folder above.
  5. Right click on http://www.math.ntnu.no/~hrue/GMRFLib/inla.binary/pthreadGC2.dll, choose "Save link as", and save to the folder above.
  6. Note that adding "C:\inla" may not work, be sure to add "C:\inla\".

Part II. Installing R library INLA and dependent packages

  1. Save this file http://www.math.ntnu.no/~hrue/GMRFLib/R-INLA/INLA.zip to desktop.
  2. From RGui, click on "Packages" menu and choose "Install package(s) from local zip files..." and follow its directions.
  3. In RGui, type install.packages("pixmap") to install package pixmap, which may be needed by INLA.
  4. Test run.

library(INLA)
?inla # bring up help page

 

INLA installation for Linux

Part I. Installing inla.exe

  1. Create a directory, e.g. ~/inla
  2. Add the above folder to PATH
  3. 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

  1. Save this file http://www.math.ntnu.no/~hrue/GMRFLib/R-INLA/INLA.tgz
  2. R CMD INSTALL INLA.tgz
  3. 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

  1. Create a directory, e.g. ~/inla
  2. Add the above folder to the PATH variable, and possibly to LD_LIBRARY_PATH and DYLD_LIBRARY_PATH as well.
  3. 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".
  4. 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.
  5. Right click on http://courses.washington.edu/b571/libgfortran.2.dylib, choose "Download Linked File As", and save to the folder above.
  6. (optional, for multithreading) Add to your profile: "export OMP_NUM_THREADS=2"

Part II. Installing R library INLA and dependent packages

  1. Save this file http://www.math.ntnu.no/~hrue/GMRFLib/R-INLA/INLA.tgz
  2. R CMD INSTALL INLA.tgz
  3. In RGui, type install.packages("pixmap") to install package pixmap, which may be needed by INLA.

 

References:

http://www.math.ntnu.no/~hrue/GMRFLib/