On 06/06/2012 16:13, niandra wrote:> Hi all,
>
> I have a problem with the library R2BayesX, when i try to use the command
> bayesx i get this error:
> dyld: Library not loaded: /usr/local/lib/libreadline.5.2.dylib
> Referenced from:
>
/Library/Frameworks/R.framework/Versions/2.15/Resources/library/BayesXsrc/libs/i386/BayesX
> Reason: image not found
So your R installation on your unstated OS is incomplete/corrupt.
It looks like this is OS X, so:
- wrong list (use R-sig-mac)
- you need to tell the correct list a lot more, including the 'at a
minimum' information asked for in the R posting guide (see below), and
how you installed R.
- a possible answer is to install
http://r.research.att.com/src/readline-5.2.tar.gz : see the OS X
documentation.
> I obtain this message also with the example in the bayesx help:
>
> ## generate some data
> set.seed(111)
> n<- 200
>
> ## regressor
> dat<- data.frame(x = runif(n, -3, 3))
>
> ## response
> dat$y<- with(dat, 1.5 + sin(x) + rnorm(n, sd = 0.6))
>
> ## estimate models with
> ## bayesx REML and MCMC
> b1<- bayesx(y ~ sx(x), method = "REML", data = dat)
> dyld: Library not loaded: /usr/local/lib/libreadline.5.2.dylib
> Referenced from:
>
/Library/Frameworks/R.framework/Versions/2.15/Resources/library/BayesXsrc/libs/i386/BayesX
> Reason: image not found
> Total run time was: 0.69 sec
>
> --
> View this message in context:
http://r.789695.n4.nabble.com/R2BayesX-command-bayesx-doesn-t-work-tp4632541.html
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> R-help at 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.
--
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