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 biocLite("rjags") or install.packages("rjags"), it failed with the error message