h1

JAGS and rjags for Fedora 13 64 bit

May 30, 2010

Unfortunately, JAGS is not in the Fedora repositories. However, it is very easy to install. This is a short how-to for installing JAGS and rjags for Fedora 13 64 bit and it should work for any 64 bit UNIX based OS. As a prerequisite, make sure you have the dependencies for JAGS installed (this is for Fedora only).

yum install R R-devel libblas-devel

Next thing you’ll want to do is to download the tarball and unpack it .

tar xvzf JAGS*

Next you need to tell it to install the libraries in /usr/local/lib64 otherwise you’ll need to tell rjags where to look for JAGS.

./configure --libdir=/usr/local/lib64
make
sudo make install

Next you can test that JAGS installed properly by typing:

jags

Once this is done, fire up R and install rjags like any other package and that’s it.

R
install.packages("rjags")

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: