I am trying to install the runjags package on a remote computer cluster. I am running R 3.4.0. I have JAGS 4.0.0 loaded, and can confirm that the rjags package will install and load. When I go to install the runjags package install.packages('runjags'), I get the following error:
configure: error: "Cannot load JAGS library in /share/pkg/jags/4.0.0/install/lib64"
I think part of the problem is that the directory /share/pkg/jags/4.0.0/install/lib64 does not exist in jags/4.0.0, but the directory /share/pkg/jags/4.0.0/install/lib, without the 64 does.
Any ideas how I can get runjags up and running?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your report. The runjags package is still using the same configure script as rjags 3.x, which assumes that the JAGS installation follows the same format as the R installation. However, there is a workaround for non-standard installs detailed in the README file within the runjags package:
You have correctly observed that rjags version 4.x is more forgiving about installation paths as it tries to use pkg-config - I will update the configure script in the next version of runjags to do the same.
Hope that helps,
Matt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am trying to install the
runjags
package on a remote computer cluster. I am running R 3.4.0. I have JAGS 4.0.0 loaded, and can confirm that the rjags package will install and load. When I go to install the runjags packageinstall.packages('runjags')
, I get the following error:configure: error: "Cannot load JAGS library in /share/pkg/jags/4.0.0/install/lib64"
I think part of the problem is that the directory
/share/pkg/jags/4.0.0/install/lib64
does not exist injags/4.0.0
, but the directory/share/pkg/jags/4.0.0/install/lib
, without the 64 does.Any ideas how I can get
runjags
up and running?Hi Colin
Thanks for your report. The runjags package is still using the same configure script as rjags 3.x, which assumes that the JAGS installation follows the same format as the R installation. However, there is a workaround for non-standard installs detailed in the README file within the runjags package:
You have correctly observed that rjags version 4.x is more forgiving about installation paths as it tries to use pkg-config - I will update the configure script in the next version of runjags to do the same.
Hope that helps,
Matt
This helps, thanks so much Matt. I should have digged deeper in the runjags documentation. I was able to get runjags to install using the following:
install.packages("runjags",configure.args = c("--with-jags-lib=/share/pkg/jags/4.0.0/install/lib"))