I'm completely new to R and am trying to install an add-on package for one
of our faculty members.
I've had no problems with most of them, but am completely stuck trying to
figure out why MCMCpack won't install..
any help is VERY much appreciated!!!
here's what I get when I try to install the package:
* Installing *source* package 'MCMCpack' ...
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking for trunc... no
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -I/usr/local/stow/R-2.5.1/lib/R/include
-I/usr/local/stow/R-2.5.1/lib/R/include
-DSCYTHE_COMPILE_DIRECT -DSCYTHE_DEBUG=0 -DHAVE_TRUNC
-I/usr/local/include -fpic -g -O2 -c lecuyer.cc -o lecuyer.o
In file included from lecuyer.h:63,
from lecuyer.cc:4:
rng.h: In member function `scythe::Matrix<double, O, Concrete>
scythe::rng<RNGTYPE>::rdirich(const scythe::Matrix<double, O,
S>&)':
rng.h:1314: syntax error before `;' token
make: *** [lecuyer.o] Error 1
chmod: failed to get attributes of
`/usr/local/stow/R-2.5.1/lib/R/library/MCMCpack/libs/*':
No such file or directory
ERROR: compilation failed for package 'MCMCpack'
** Removing '/usr/local/stow/R-2.5.1/lib/R/library/MCMCpack'
The downloaded packages are in
/tmp/Rtmp7oqLBm/downloaded_packages
Warning message:
installation of package 'MCMCpack' had non-zero exit status in:
install.packages("MCMCpack", dependencies = TRUE)
Any ideas?
thanks again!
John Henrikson
Univ of Missouri-Columbia
j.henrikson@gmail.com
[[alternative HTML version deleted]]