[R-SIG-Mac] cannot load rjags package on Mac

Simon Urbanek simon.urbanek at r-project.org
Fri Sep 16 20:41:04 CEST 2011


Wei,

the CRAN binary uses JAGS 2.x so you'll have to download and install JAGS 2.2.0.

Currently, JAGS 3.x is unsupported because we there is no official JAGS 3.x binary for ppc anymore which is a requirement for rjags to be built on CRAN.

I will have a look at JAGS later today to see if there is hope to have JAGS shipped with the package.

Cheers,
Simon


On Sep 16, 2011, at 1:40 PM, Wei Wang wrote:

> Dear list,
> 
> I ran into problem trying to load rjags on my Macbook Air running OS X
> 10.7.1.
> 
> I installed JAGS 3.1.0 through binary and it seems OK.
> 
>  $ jags
>  Welcome to JAGS 3.1.0 on Fri Sep 16 13:27:03 2011
>  JAGS is free software and comes with ABSOLUTELY NO WARRANTY
>  Loading module: basemod: ok
>  Loading module: bugs: ok
> 
> Then I installed rjags through CRAN,
> 
>> install.packages("rjags")
>  --- Please select a CRAN mirror for use in this session ---
>  Loading Tcl/Tk interface ... done
>  trying URL '
> http://lib.stat.cmu.edu/R/CRAN/bin/macosx/leopard/contrib/2.13/rjags_2.2.0-4.tgz
> '
>  Content type 'application/x-gzip' length 328998 bytes (321 Kb)
>  opened URL
>  ==================================================
>  downloaded 321 Kb
> 
> 
>  The downloaded packages are in
> 
> /var/folders/bx/_rsnmqdx03x20z3clnt5d8xh0000gn/T//RtmpWZ4yIZ/downloaded_packages
> 
> But when I tried to load it, I got the following errors.
> 
>> library(rjags)
>  Error : .onLoad failed in loadNamespace() for 'rjags', details:
>    call: dyn.load(file, DLLpath = DLLpath, ...)
>    error: unable to load shared object
> 
> '/Library/Frameworks/R.framework/Versions/2.13/Resources/library/rjags/libs/x86_64/rjags.so':
> 
> dlopen(/Library/Frameworks/R.framework/Versions/2.13/Resources/library/rjags/libs/x86_64/rjags.so,
> 10): Library not loaded: /usr/local/lib/libjags.2.dylib
>  Referenced from:
> 
> /Library/Frameworks/R.framework/Versions/2.13/Resources/library/rjags/libs/x86_64/rjags.so
>    Reason: image not found
>  Error: package/namespace load failed for 'rjags'
> 
> My sessionInfo is as follows
> 
>> sessionInfo()
>  R version 2.13.1 Patched (2011-09-01 r56880)
>  Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
> 
>  locale:
>  [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
> 
>  attached base packages:
>  [1] stats     graphics  grDevices utils     datasets  methods   base
> 
>  other attached packages:
>  [1] R2WinBUGS_2.1-18 coda_0.14-4      lattice_0.19-33
> 
>  loaded via a namespace (and not attached):
>  [1] grid_2.13.1  tcltk_2.13.1 tools_2.13.1
> 
> Thank you in advance for your help.
> 
> Best,
> Wei
> 
> -- 
> Wei Wang
> Doctoral Student
> Department of Statistics, Columbia University
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> 



More information about the R-SIG-Mac mailing list