[R-sig-Debian] problem with rjags installation in ubuntu 14.04
Michael Rutter
marutter at gmail.com
Sat Sep 30 22:13:59 CEST 2017
On 09/29/2017 04:54 PM, kenrichardson wrote:
> Hello folks
>
> Earlier versions of jags and rjags installed on my system without any
> difficulty, but I'm having trouble with jags version
> 4.3.0-1ubuntu2~ubuntu14.04.1~ppa1 (from Michael Rutter's R ppa) and
> rjags version 4.6.
>
> The call to install.packages() I always used successfully now produces
> the error "cannot link to JAGS library in /usr/lib/x86_64-linux-gnu."
> shown below
>
> I wondered if the location of jags headers, libraries, and modules om my
> system might be in non-standard places, so after locating them (with
> dpkg -L jags and /sbin/ldconfig -p | grep jags - ) I tried
>
> install.packages("rjags",
> configure.args="--with-jags-include=/usr/include/JAGS
> --with-jags-lib=/usr/lib/x86_64-linux-gnu
> --with-jags-modules=/usr/lib/x86_64-linux-gnu/JAGS/modules-4")
>
> which unfortunately produced the same result.
>
> Any advice on how to sort this out would be appreciated. For example I
> could always try compiling both jags and/or rjags and hardcoding the
> location of jags libraries, but maybe there's a simpler way.
>
> sessioninfo() and library() output are also shown below, but if other
> information is required please let me know
>
> Regards Ken
Ken,
I experienced something similar in the past couple of days, so I
recompiled rjags against all the current versions of the other packages.
I was able to successfully install r-cran-rjags and use it from the PPA.
Please try installing with apt-get again and let me know if you have any
issues.
Michael
More information about the R-SIG-Debian
mailing list