2016-11-21 294 views
3

我想在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 
+1

我無法在使用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

+0

相同對於我在Ubuntu 16.04上的錯誤,R 3.3.1和Bioconductor 3.3使用'biocLite(「flowCore」)進行安裝。 – bli

+0

對於我來說,這種類似的問題通常發生在開發庫丟失時。嘗試先安裝開發提升https://launchpad.net/ubuntu/trusty/+package/libboost-regex-dev –

回答

1

同樣折磨(除MacOSX上),我發現我可以成功地從github上安裝,如:

library(devtools) 
install_github("RGLab/flowCore",ref='trunk') 

FWIW,這個問題更恰當地在MacOS上使用CRAN安裝[R解決像我以前一樣,不是像自制軟件一樣構建R。