Ruben Garcia Berasategui
2010-Aug-27 01:58 UTC
[R] Problems loading rjags in R 2.11.0 under OS X 10.5.8
Dear list members, I'm trying to use JAGS 2.1.0 from within R but every time I try to load the rjags package I receive the following message: Loading required package: coda Loading required package: lattice Error : .onLoad failed in loadNamespace() for 'rjags', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared library '/Library/Frameworks/R.framework/Resources/library/rjags/libs/i386/rjags.so': dlopen(/Library/Frameworks/R.framework/Resources/library/rjags/libs/i386/rjags.so, 10): Library not loaded: /usr/local/lib/libjags.1.dylib Referenced from: /Library/Frameworks/R.framework/Resources/library/rjags/libs/i386/rjags.so Reason: image not found Error: package/namespace load failed for 'rjags' Any help regarding how to solve this problem would be greatly appreciated. Many thanks in advance, Ruben
Ruben Garcia Berasategui <rubgb <at> binus.ac.id> writes:> > Dear list members, > I'm trying to use JAGS 2.1.0 from within R ...Just a guess: are you using an up-to-date version of R? I think you might be picking up an older version of rjags which in turn is looking for an older version of JAGS ... Please update, if you can -- if not, or if that's going to be a major hassle, at least post the results of sessionInfo() Ben Bolker
Prof Brian Ripley
2010-Aug-27 05:58 UTC
[R] Problems loading rjags in R 2.11.0 under OS X 10.5.8
On Fri, 27 Aug 2010, Ruben Garcia Berasategui wrote:> Dear list members,> I'm trying to use JAGS 2.1.0 from within R but every time I try to > load the rjags package I receive the following message:Which version of 'the rjags package' and where did you get it from? I have 2.1.0-6, installed as a binary from CRAN, and I see tystie% otool -L rjags.so rjags.so: rjags.so (compatibility version 0.0.0, current version 0.0.0) /usr/local/lib/libjags.2.dylib (compatibility version 3.0.0, current version 3.1.0) so that is not the version you have (which is looking for /usr/local/lib/libjags.1.dylib). My guess is that you have rjags_1.0.x.> Loading required package: coda > Loading required package: lattice > Error : .onLoad failed in loadNamespace() for 'rjags', details: > call: dyn.load(file, DLLpath = DLLpath, ...) > error: unable to load shared library '/Library/Frameworks/R.framework/Resources/library/rjags/libs/i386/rjags.so': > dlopen(/Library/Frameworks/R.framework/Resources/library/rjags/libs/i386/rjags.so, 10): Library not loaded: /usr/local/lib/libjags.1.dylib > Referenced from: /Library/Frameworks/R.framework/Resources/library/rjags/libs/i386/rjags.so > Reason: image not found > Error: package/namespace load failed for 'rjags' > > Any help regarding how to solve this problem would be greatly appreciated.Re-install rjags, maybe via update.packages() or the Package Installer menu item if you use R.app?> Many thanks in advance, > Ruben-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595