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-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to