安装flowCore软件包时出错R
问题描述:
我想在R 3.3.2(Ubuntu 14.04 LTS)中安装flowCore软件包(Bioconductor 3.4)。但我得到以下错误。任何人都可以提出一些解决方案谢谢安装flowCore软件包时出错R
boost_regex/regex.cpp:195:64: error: use of deleted function ‘std::atomic<_Tp*>::atomic(const std::atomic<_Tp*>&) [with _Tp = void]’
mem_block_cache block_cache = { 0, 0, BOOST_STATIC_MUTEX_INIT, };
^
In file included from /home/nitin/R/x86_64-pc-linux-gnu-library/3.3/BH/include/boost/regex/v4/mem_block_cache.hpp:31:0,
from boost_regex/regex.cpp:44:
/usr/include/c++/4.8/atomic:298:7: error: declared here
atomic(const atomic&) = delete;
^
boost_regex/regex.cpp:195:64: error: use of deleted function ‘std::atomic<_Tp*>::atomic(const std::atomic<_Tp*>&) [with _Tp = void]’
mem_block_cache block_cache = { 0, 0, BOOST_STATIC_MUTEX_INIT, };
^
In file included from /home/nitin/R/x86_64-pc-linux-gnu-library/3.3/BH/include/boost/regex/v4/mem_block_cache.hpp:31:0,
from boost_regex/regex.cpp:44:
/usr/include/c++/4.8/atomic:298:7: error: declared here
atomic(const atomic&) = delete;
^
boost_regex/regex.cpp:195:64: error: could not convert ‘{{{0, 0, 0, 0, 0, 0, 0, {0, 0}}}}’ from ‘<brace-enclosed initializer list>’ to ‘std::atomic<void*>’
mem_block_cache block_cache = { 0, 0, BOOST_STATIC_MUTEX_INIT, };
^
make: *** [boost_regex/regex.o] Error 1
ERROR: compilation failed for package ‘flowCore’
* removing ‘/home/nitin/R/x86_64-pc-linux-gnu-library/3.3/flowCore’
ERROR: dependency ‘flowCore’ is not available for package ‘flowAI’
* removing ‘/home/nitin/R/x86_64-pc-linux-gnu-library/3.3/flowAI’
The downloaded source packages are in
‘/tmp/RtmpTbmU8h/downloaded_packages’
installation path not writeable, unable to update packages: mgcv, survival
Warning messages:
1: In install.packages(pkgs = doing, lib = lib, ...) :
installation of package ‘flowCore’ had non-zero exit status
2: In install.packages(pkgs = doing, lib = lib, ...) :
installation of package ‘flowAI’ had non-zero exit status
答
同样折磨(除MacOSX上),我发现我可以成功地从github上安装,如:
library(devtools)
install_github("RGLab/flowCore",ref='trunk')
FWIW,这个问题更恰当地在MacOS上使用CRAN安装[R解决像我以前一样,不是像自制软件一样构建R。
我无法在使用BiocInstaller :: biocLite(“flowCore”)的类似系统上重现此操作。错误似乎与提升有关?你有提升安装吗? http://stackoverflow.com/questions/12578499/how-to-install-boost-on-ubuntu或BH包https://cran.r-project.org/web/packages/BH/index.html – user20650
相同对于我在Ubuntu 16.04上的错误,R 3.3.1和Bioconductor 3.3使用'biocLite(“flowCore”)进行安装。 – bli
对于我来说,这种类似的问题通常发生在开发库丢失时。尝试先安装开发提升https://launchpad.net/ubuntu/trusty/+package/libboost-regex-dev –