[R-sig-Debian] rjags install on Ubuntu 10.04

Dirk Eddelbuettel edd at debian.org
Thu Sep 20 03:16:44 CEST 2012


On 19 September 2012 at 20:38, John C Nash wrote:
| I have been having trouble with rjags on Ubuntu 10.04
                                           ^^^^^^^^^^^^

You may be on your own here. I would suggest updating to something current,
and remaining current -- at least that works for me. On Ubuntu 12.04 it
just works:

  R> library(rjags)
  Loading required package: coda
  Loading required package: lattice
  linking to JAGS 3.2.0
  module basemod loaded
  module bugs loaded
  R> 

Using 
  edd at max:~$ COLUMNS=76 dpkg -l | grep jags
  ii  jags           3.2.0-1precise Just Another Gibbs Sampler for Bayesian MCMC
  ii  r-cran-rjags   3.3-1          R interface to the JAGS Bayesian statistics 
  edd at max:~$ 
 
| > library(rjags)
| Loading required package: coda
| Loading required package: lattice
| linking to JAGS 3.2.0
| module basemod loaded
| Error : .onLoad failed in loadNamespace() for 'rjags', details:
|   call: dyn.load(file)
|   error: unable to load shared object '/usr/lib/JAGS/modules-3/bugs.so':
|   /usr/lib/JAGS/modules-3/bugs.so: undefined symbol: fprec
| Error: package/namespace load failed for ‘rjags’
| 
| 
| > sessionInfo()
| R version 2.15.1 (2012-06-22)
| Platform: x86_64-pc-linux-gnu (64-bit)
| 
| locale:
|  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
|  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
|  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
|  [7] LC_PAPER=C                 LC_NAME=C
|  [9] LC_ADDRESS=C               LC_TELEPHONE=C
| [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
| 
| attached base packages:
| [1] stats     graphics  grDevices utils     datasets  methods   base
| >
| 
| Also I have tried
| 
| > dyn.load("/usr/lib/JAGS/modules-3/bugs.so")
| Error in dyn.load("/usr/lib/JAGS/modules-3/bugs.so") :
|   unable to load shared object '/usr/lib/JAGS/modules-3/bugs.so':
|   /usr/lib/JAGS/modules-3/bugs.so: undefined symbol: fprec
| 
| After several uninstalls and reinstalls of jags and rjags, I did (as superuser)
| 
| apt-get remove --purge r-base-core

Please.  R has not bearing here. 

You have a package out of sorts. Worst, remove the package (here: jags, as
'dpkg -S /usr/lib/JAGS/modules-3/bugs.so' clearly tells you) and install
locally.

Dirk

| apt-get autoremove
| 
| then reinstalled R, then rjags (the Michael Rutter PPA is in my sources list), i.e.,
| 
| apt-get install r-base-dev
| apt-get install rjags
| 
| (I used the dev to make sure I got some of the tools etc.)
| 
| No joy.
| 
| On crunchbang stattler linux (under VirtualBox), things loaded fine. I haven't tried
| actual computations though. (This is a debian squeeze variant.)
| 
| Suggestions welcome, especially about the fprec symbol above. I am planning to upgrade the
| 10.04 to something else soon, probably Mint Mate, but wanted to wait a few more weeks to
| avoid doing this when having to travel.
| 
| Cheers, JN
| 
| _______________________________________________
| 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