[R-sig-Debian] errors when installing rjags
Sebastian P. Luque
spluque at gmail.com
Tue May 4 05:13:31 CEST 2010
Hi,
With the sid package jags (2.0.0-1) and r-base-core (2.11.0-1), I cannot
install package rjags anymore (this used to work at some point; can't
recall exactly at what R/JAGS versions):
---<--------------------cut here---------------start------------------->---
R> install.packages("rjags", configure.args="--with-jags-modules=/usr/lib/JAGS/modules-2.0.0")
Warning in install.packages("rjags", configure.args = "--with-jags-modules=/usr/lib/JAGS/modules-2.0.0") :
argument 'lib' is missing: using '/usr/local/lib/R/site-library'
trying URL 'http://probability.ca/cran/src/contrib/rjags_1.0.3-13.tar.gz'
Content type 'application/x-gzip' length 100865 bytes (98 Kb)
opened URL
==================================================
downloaded 98 Kb
* installing *source* package ‘rjags’ ...
checking for prefix by checking for jags... /usr/bin/jags
configure: creating ./config.status
config.status: creating src/Makevars
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/unix/zzz.R
** libs
g++ -I/usr/share/R/include -I/usr/include/JAGS -fpic -g -O2 -c jags.cc -o jags.o
jags.cc: In function ‘SEXPREC* set_default_monitors(SEXPREC*, SEXPREC*, SEXPREC*)’:
jags.cc:427: error: ‘class Console’ has no member named ‘setDefaultMonitors’
jags.cc: In function ‘SEXPREC* clear_default_monitors(SEXPREC*, SEXPREC*)’:
jags.cc:444: error: ‘class Console’ has no member named ‘clearDefaultMonitors’
jags.cc: In function ‘SEXPREC* get_monitored_values(SEXPREC*, SEXPREC*)’:
jags.cc:456: error: no matching function for call to ‘Console::dumpMonitors(std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, SArray, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, SArray> > >&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int> > >&, const char*)’
/usr/include/JAGS/Console.h:191: note: candidates are: bool Console::dumpMonitors(std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, SArray, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, SArray> > >&, const std::string&, bool)
make: *** [jags.o] Error 1
ERROR: compilation failed for package ‘rjags’
* removing ‘/usr/local/lib/R/site-library/rjags’
* restoring previous ‘/usr/local/lib/R/site-library/rjags’
The downloaded packages are in
‘/tmp/RtmpdwNfgV/downloaded_packages’
Warning message:
In install.packages("rjags", configure.args = "--with-jags-modules=/usr/lib/JAGS/modules-2.0.0") :
installation of package 'rjags' had non-zero exit status
---<--------------------cut here---------------end--------------------->---
Has anybody been had success installing rjags while using the Debian
jags package? It seems as if I'm missing some 'configure.args'.
Thanks.
Cheers,
--
Seb
More information about the R-SIG-Debian
mailing list