none
(failing to) install Boom on Centos 7 with MRO 3.3.1 RRS feed

  • Question

  • I'm trying to install Boom on Centos 7 with MRO 3.3.1. 

    These are only the first lines.  I'm compiling with gcc version 5.1.1.  

     It seems that the problem is finding the libraries Boom needs?

    (many more errors before failing to compile...)

    ** package 'Boom' successfully unpacked and MD5 sums checked
    ** libs
    I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -I../inst/include -IBmath -Imath/cephes -DNO_BOOST_THREADS -DNO_BOOST_FILESYSTEM -DADD_ -DRLANGUAGE -DU_STATIC_IMPLEMENTATION -I"/usr/lib64/microsoft-r/3.3/lib64/R/library/BH/include"      -c Models/Bart/PoissonBartModel.cpp -o Models/Bart/PoissonBartModel.o
    sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
    make: [Models/Bart/PoissonBartModel.o] Error 127 (ignored)
    I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -I../inst/include -IBmath -Imath/cephes -DNO_BOOST_THREADS -DNO_BOOST_FILESYSTEM -DADD_ -DRLANGUAGE -DU_STATIC_IMPLEMENTATION -I"/usr/lib64/microsoft-r/3.3/lib64/R/library/BH/include"      -c Models/Bart/GaussianLinearBartModel.cpp -o Models/Bart/GaussianLinearBartModel.o
    sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
    make: [Models/Bart/GaussianLinearBartModel.o] Error 127 (ignored)


    • Edited by EMart Wednesday, September 28, 2016 5:44 PM
    Wednesday, September 28, 2016 5:44 PM

All replies

  • The problem seems to be that this particular R package depends on a static version of 'R.lib'.

    This environment variable seems to indicate that to me:

    -DU_STATIC_IMPLEMENTATION

    Only a few R packages depend on a static version of R.lib and unfortunately we do not ship a static version of this library with Microsoft R Open.

    Stephen Weller

    Thursday, November 10, 2016 4:17 AM
  • I think that you should set the C++11 values in
    /usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf
    file. By default, there are no values in the C++ field.

    CXX1X =
    CXX1XPICFLAGS =

    Then, you should set the values like below.

    CXX1X = g++ -std=c++11
    CXX1XPICFLAGS = -fpic

    (Sorry for my cheap english.)


    Saturday, December 24, 2016 5:15 PM