美文网首页
安装fgsea的R包出错

安装fgsea的R包出错

作者: expgene | 来源:发表于2023-12-21 00:16 被阅读0次

    安装代码:

    install_github("ctlab/fgsea")

    或者R CMD INSTALL fgsea_1.28.0.tar.gz

    出现异常:

    * installing to library ‘/home/dongxj/R/x86_64-pc-linux-gnu-library/4.2’

    * installing *source* package ‘fgsea’ ...

    ** using staged installation

    ** libs

    g++ -std=gnu++11 -I"/usr/local/lib64/R/include" -DNDEBUG  -I'/usr/local/lib64/R/library/Rcpp/include' -I'/usr/local/lib64/R/library/BH/include' -I/usr/local/include  -fpic  -g -O2  -c RcppExports.cpp -o RcppExports.o

    g++ -std=gnu++11 -I"/usr/local/lib64/R/include" -DNDEBUG  -I'/usr/local/lib64/R/library/Rcpp/include' -I'/usr/local/lib64/R/library/BH/include' -I/usr/local/include  -fpic  -g -O2  -c ScoreCalculation.cpp -o ScoreCalculation.o

    g++ -std=gnu++11 -I"/usr/local/lib64/R/include" -DNDEBUG  -I'/usr/local/lib64/R/library/Rcpp/include' -I'/usr/local/lib64/R/library/BH/include' -I/usr/local/include  -fpic  -g -O2  -c ScoreRuler.cpp -o ScoreRuler.o

    In file included from /usr/local/lib64/R/library/BH/include/boost/math/special_functions/gamma.hpp:33:0,

                    from /usr/local/lib64/R/library/BH/include/boost/math/special_functions/factorials.hpp:14,

                    from /usr/local/lib64/R/library/BH/include/boost/math/special_functions/polygamma.hpp:14,

                    from /usr/local/lib64/R/library/BH/include/boost/math/special_functions/trigamma.hpp:20,

                    from util.h:6,

                    from ScoreRuler.cpp:2:

    /usr/local/lib64/R/library/BH/include/boost/math/special_functions/detail/unchecked_factorial.hpp:1019:34: 错误:对‘boost::math::max_factorial<RT>::value’的重声明在‘constexpr’方面

    const unsigned max_factorial<T>::value;

                                      ^

    /usr/local/lib64/R/library/BH/include/boost/math/special_functions/detail/unchecked_factorial.hpp:991:30: 错误:与先前的声明‘boost::math::max_factorial<RT>::value’不同

        static constexpr unsigned value =

                                  ^

    /usr/local/lib64/R/library/BH/include/boost/math/special_functions/detail/unchecked_factorial.hpp:1019:34: 错误:出现在类外的‘constexpr const unsigned int boost::math::max_factorial<RT>::value’的声明不是定义 [-fpermissive]

    const unsigned max_factorial<T>::value;

                                      ^

    make: *** [ScoreRuler.o] 错误 1

    ERROR: compilation failed for package ‘fgsea’

    * removing ‘/home/dongxj/R/x86_64-pc-linux-gnu-library/4.2/fgsea’

    相关文章

      网友评论

          本文标题:安装fgsea的R包出错

          本文链接:https://www.haomeiwen.com/subject/tjpxndtx.html