Re: [R] unable to install rjags on 64-bit Debian Linux (etch)

From: <>
Date: Sun, 09 Nov 2008 12:12:34 +0100

Quoting Prof Brian Ripley <>:

> On Sat, 8 Nov 2008, Roger Levy wrote:
> > While I have been able to install rjags on my Windows computer, oddly I
> have
> > been unable to install rjags successfully on my 64-bit Linux compute server
> > (etch, Linux kernel 2.6.18). I am required to specify the JAGS module
> > directory upon installation; when doing this within R, I get:

> >
> >

> >
> > which works fine, but then trying to load rjags gives an error:
> >
> >> library(rjags)
> > \Error in dyn.load(file, DLLpath = DLLpath, ...) :
> > unable to load shared library
> > '/usr/local/lib64/R/library/rjags/libs/':
> > cannot open shared object file: No such file or directory
> > Error : .onLoad failed in 'loadNamespace' for 'rjags'

> > Error: package/namespace load failed for 'rjags'
> >
> > I'm not sure how to read this error. Does anyone have any suggestions?

> It means that (the runtime linker) cannot find
> Where is your My guess is that you installed it into
> /usr/local/lib, since that is what you have for your module path. On a
> 64-bit Linux system it should be in /usr/local/lib64. (I had to tell the
> JAGS installation that via libdir=/usr/local/lib64 on the configure line.)

Debian conforms to the filesystem hierarchy standard (FHS) which states that libraries go in <prefix>/lib and alternative format binaries go in <prefix>/lib<qual>. I would prefer it if everyone agreed on where 64-bit libraries should go. But they don't.

In the mean time, we have to rely on binary packaging to do "the right thing" on each platform. On Fedora, the rpmbuild system passes all the right arguments to the configure script so that JAGS is installed into /usr/lib64.

> R CMD ldd /usr/local/lib64/R/library/rjags/libs/
> will probably confirm that is not found.
> If that is not the error, please note what the R posting guide says about
> asking the maintainer.
> --
> Brian D. Ripley,
> Professor of Applied Statistics,
> University of Oxford, Tel: +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
> ______________________________________________
> mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.

This message and its attachments are strictly confidenti...{{dropped:8}} mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sun 09 Nov 2008 - 11:17:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 09 Nov 2008 - 22:30:23 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive