Skip to content

Problem installing MCMCpack on SPARC Solaris 10

3 messages · Zhang,Jun, Brian Ripley

#
There are lots of problems with MCMCpack's C++: the only way (short of 
a major rewrite) that you will get it to compile on Solaris is to use 
g++ (and even that needs corrections).

The maintainers seem deaf to reports of the issues.

And please note what the posting guide says about where to send 
questions about non-R programming issues.
On Wed, 9 Feb 2011, Zhang,Jun wrote:

            

  
    
#
On Thu, 10 Feb 2011, Prof Brian Ripley wrote:

            
Sorry, I omitted 'in contributed packages'.  And PLEASE don't post 
twice.

The patch I needed on x86 Solaris was

diff -ru tests32/MCMCpack/src/algorithm.h MCMCpack/src/algorithm.h
--- tests32/MCMCpack/src/algorithm.h    Mon Jan 31 17:28:11 2011
+++ MCMCpack/src/algorithm.h    Sun May 16 19:15:39 2010
@@ -45,6 +45,11 @@
  #include "scythestat/matrix_random_access_iterator.h"
  #endif

+#undef DO
+#undef DS
+#undef SO
+#undef SS
+