I installed the pre-built Amazon Machine Image with Rstudio Server provided by bioconductor into a free micro instance on EC2.
Then I installed JAGS (Just Another Gibbs Sampler to use it via rstudio server.
To this end I simply used the Rstudio Server shell
sudo apt-get install jags which worked well as far as I can tell (if I run it again, it tells me JAGS is up-to-date).
However, when I tried to install the package "rjags" which is the interface between Rstudio and JAGS via either
install.packages("rjags"), it failed with the error message
checking for jags_version in -ljags... yes configure: error: "JAGS module directory /usr/lib64/JAGS/modules-3 does not exist." ERROR: configuration failed for package ‘rjags’ * removing ‘/home/ubuntu/R/library/rjags’ Warning in install.packages : installation of package ‘rjags’ had non-zero exit status
I checked in lib64 and, indeed, there's only the directory "jags" with "jags-terminal" as its content.
I'd be grateful for any pointers, I guess it's obvious that I've been enabled to do something beyond my understanding thanks to great tutorials.