Hi,
I've been having problems getting MCMCpack installed on my Solaris 10 x86
system.
I've installed gcc from opencsw.org, and, for the most part, other R
packages install nicely.
>From what I can gather, the build fails due to a mismatch of include files.
I *think* it wants to use the include files that are contained within the
MCMCpack package (but I could be wrong on this - if this is correct, I am not
sure how to set Include search paths from within R). The following is the kind
of error the install is throwing. Any help would be greatly appreciated!
# /usr/local/bin/R CMD INSTALL MCMCpack_1.0-1.tar.gz
* Installing to library '/usr/local/lib/R/library'
**stuff snipped**
g++ -I/usr/local/lib/R/include -DSCYTHE_COMPILE_DIRECT -DSCYTHE_DEBUG=0
-DHAVE_TRUNC -DHAVE_IEEEFP_H
-I/opt/csw/gcc4/lib/gcc/i386-pc-solaris2.10/4.3.3/include-fixed
-I/opt/csw/include -fpic -g -O2 -c MCMCSVDreg.cc -o MCMCSVDreg.o
In file included from matrix.h:61,
from rng.h:47,
from mersenne.h:76,
from MCMCrng.h:29,
from MCMCSVDreg.cc:36:
algorithm.h:128: error: expected '>' before numeric constant
algorithm.h:131: error: could not convert template argument '18' to
'scythe::matrix_style'
algorithm.h:131: error: 'DO' was not declared in this scope
algorithm.h:131: error: template argument 2 is invalid
algorithm.h:131: error: could not convert template argument '3' to
'scythe::matrix_style'
algorithm.h:154: error: expected '>' before numeric constant
... errors continue, more complaints about algorithm.h, and then complaints
about matrix.h:
In file included from rng.h:47,
from mersenne.h:76,
from MCMCrng.h:29,
from MCMCSVDreg.cc:36:
matrix.h: At global scope:
matrix.h:156: error: expected '>' before numeric constant
matrix.h: In copy constructor 'scythe::Matrix<T_type, ORDER,
STYLE>::Matrix(const scythe::Matrix<T_type, ORDER, STYLE>&) [with
T_type = double, scythe::matrix_order ORDER = Col, scythe::matrix_style STYLE =
Concrete]':
la.h:139: instantiated from here
matrix.h:1280: error: no matching function for call to 'copy(const
scythe::Matrix<double, Col, Concrete>&, scythe::Matrix<double, Col,
Concrete>&)'
matrix.h: In member function 'scythe::Matrix<T_type, ORDER,
STYLE>& scythe::Matrix<T_type, ORDER, STYLE>::operator=(const
scythe::Matrix<T_type, ORDER, STYLE>&) [with T_type = double,
scythe::matrix_order ORDER = Col, scythe::matrix_style STYLE = Concrete]':
MCMCSVDreg.cc:111: instantiated from 'void
MCMCSVDreg_impl(scythe::rng<RNGTYPE>&, double*, const int*, const
int*, const double*, const int*, const int*, const int*, const double*, const
int*, const int*, const double*, const int*, const int*, const double*, const
int*, const int*, const int*, const int*, const int*, const int*, const int*,
const int*, const int*, const double*, const int*, const int*, const double*,
const int*, const int*, const double*, const double*, const double*, const
double*, const double*, const int*) [with RNGTYPE = scythe::mersenne]'
...snipped, but more errors follow...
[[alternative HTML version deleted]]