[R-sig-Debian] rjags in Ubuntu 10.04

Dirk Eddelbuettel edd at debian.org
Thu Nov 4 15:44:23 CET 2010


On 4 November 2010 at 10:16, Michael Rutter wrote:
| On 11/04/2010 10:03 AM, ottorino wrote:
| > Il giorno gio, 27/05/2010 alle 10.23 +0100, Scott Brogan ha scritto:
| >> I've not been able to install rjags successfully in Ubuntu 10.04 :
| >> ......
| >
| > Dear members of the list,
| > I'm trying to re-install the couple JAGS/rjags on my system.
| >
| >> Ubuntu 10.04 (on amd64)
| >> GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version2.18.0)
| >> ESS version 5.11
| >> R 2.12.0
| 
|  >> Snip
| 
| > .......
| > configure: error: "Cannot load JAGS library in /usr/local/lib"
| > ERROR: configuration failed for package ‘rjags’
| > * removing ‘/usr/local/lib/R/site-library/rjags’
| >
| > I get the same error on
| >
| > install.packages("rjags", configure.args="
| > --with-jags-lib=/usr/local/lib/JAGS
| > --with-jags-modules=/usr/local/lib/JAGS/modules")
| >
| > and on
| >
| > install.packages("rjags", configure.args="
| > --with-jags-lib=/usr/local/lib64/JAGS
| > --with-jags-modules=/usr/local/lib64/JAGS/modules")
| >
| > I've googled around and tried the directions written here
| >
| > http://yusung.blogspot.com/2009/01/install-jags-and-rjags-in-fedora.html
| >
| > and here
| >
| > http://quote.ucsd.edu/blogs/rogblog/2008/11/09/installing-rjags-on-64-bit-debian-etch/
| >
| > but without success.
| >
| > Any hint ?
| >
| >
| 
| I would first make sure you have the latest version of JAGS from Martyn 
| Plummer's website (http://www-fis.iarc.fr/~martyn/software/jags/). 
| Install that as per the directions.  Then, from a command line, run:

What is wrong with my Debian package, suitably rebuilt by Ubuntu?

edd at max:~$ apt-cache policy jags
jags:
  Installed: (none)
  Candidate: 2.1.0-2
  Version table:
     2.1.0-2 0
        500 http://us.archive.ubuntu.com/ubuntu/ maverick/universe amd64 Packages
edd at max:~$ 

Provided you are current (ie Ubuntu 10.10), everything should be good.  Older
releases are indeed stuck at the 1.* flavour of jags.

Maybe if we ask nicely Michael and Vincent will 'adopt' jags too for their
excellent 'backporting' (or 'crossbuilding' ?) effort.  (We do need a slogan
for that.)

Dirk

| 
| sudo ldconfig
| 
| That is what fixed the problem for me in the past.  Then you should be 
| able to install rjags from within R.
| 
| Hope this helps,
| Michael
| 
| 
| -- 
| Dr. Michael A. Rutter
| School of Science
| Penn State Erie, The Behrend College
| Station Road
| Erie, PA 16563
| http://math.bd.psu.edu/faculty/rutter
| 
| _______________________________________________
| R-SIG-Debian mailing list
| R-SIG-Debian at r-project.org
| https://stat.ethz.ch/mailman/listinfo/r-sig-debian

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com



More information about the R-SIG-Debian mailing list