Installing rjags on 64-bit Debian (etch)

I’m learning how to use JAGS for a variety of hierarchical Bayesian models.  I had a bit of trouble figuring out how to install it on my Debian (etch) server, so I thought I would share how I got it to work (thanks to Brian Ripley and Martyn Plummer for suggestions):

# 1. configure and install JAGS
./configure --with-jags-modules=/usr/local/lib/JAGS/modules --libdir=/usr/local/lib64
make
make check
sudo make install

# 2. install rjags

sudo R --with-jags-modules=/usr/local/lib/JAGS/modules/ CMD INSTALL rjags_1.0.3-4.tar.gz

And this worked.  Critical was to make sure that the JAGS .so files wind up in /usr/local/lib64.

Post a Comment

You must be logged in to post a comment.