Hello
I am trying to install cn.mops and having trouble. I start with a fresh install of R version 3.1.3, and then use
>source("http://bioconductor.org/biocLite.R")
>biocLite()
to install bioconductor. Here is the output when installing cn.mops:
> biocLite("cn.mops")
BioC_mirror: http://bioconductor.org
Using Bioconductor version 3.0 (BiocInstaller 1.16.2), R version 3.1.3.
Installing package(s) 'cn.mops'
also installing the dependency 'Rsamtools'
trying URL 'http://bioconductor.org/packages/3.0/bioc/src/contrib/Rsamtools_1.18.3.tar.gz'
Content type 'application/x-gzip' length 2969174 bytes (2.8 MB)
opened URL
==================================================
downloaded 2.8 MB
trying URL 'http://bioconductor.org/packages/3.0/bioc/src/contrib/cn.mops_1.12.0.tar.gz'
Content type 'application/x-gzip' length 970100 bytes (947 KB)
opened URL
==================================================
downloaded 947 KB
* installing *source* package 'Rsamtools' ...
** libs
gcc -std=gnu99 -I/ircf/ircfapps/src/R-3.1.3/include -DNDEBUG -I/usr/local/include -I"/share/ircf/ircfapps/src/R-3.1.3/library/S4Vectors/include" -I"/share/ircf/ircfapps/src/R-3.1.3/library/IRanges/include" -I"/share/ircf/ircfapps/src/R-3.1.3/library/XVector/include" -I"/share/ircf/ircfapps/src/R-3.1.3/library/Biostrings/include" -fopenmp -D_USE_KNETFILE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Dfprintf=_samtools_fprintf -Dexit=_samtools_exit -Dabort=_samtools_abort -I./samtools -I./samtools/bcftools -I./tabix -fpic -g -O2 -c Biostrings_stubs.c -o Biostrings_stubs.o
gcc -std=gnu99 -I/ircf/ircfapps/src/R-3.1.3/include -DNDEBUG -I/usr/local/include -I"/share/ircf/ircfapps/src/R-3.1.3/library/S4Vectors/include" -I"/share/ircf/ircfapps/src/R-3.1.3/library/IRanges/include" -I"/share/ircf/ircfapps/src/R-3.1.3/library/XVector/include" -I"/share/ircf/ircfapps/src/R-3.1.3/library/Biostrings/include" -fopenmp -D_USE_KNETFILE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Dfprintf=_samtools_fprintf -Dexit=_samtools_exit -Dabort=_samtools_abort -I./samtools -I./samtools/bcftools -I./tabix -fpic -g -O2 -c IRanges_stubs.c -o IRanges_stubs.o
g++ -I/ircf/ircfapps/src/R-3.1.3/include -DNDEBUG -I/usr/local/include -I"/share/ircf/ircfapps/src/R-3.1.3/library/S4Vectors/include" -I"/share/ircf/ircfapps/src/R-3.1.3/library/IRanges/include" -I"/share/ircf/ircfapps/src/R-3.1.3/library/XVector/include" -I"/share/ircf/ircfapps/src/R-3.1.3/library/Biostrings/include" -fpic -g -O2 -c PileupBuffer.cpp -o PileupBuffer.o
In file included from PileupBuffer.cpp:1:
PileupBuffer.h:4:15: error: map: No such file or directory
PileupBuffer.h:5:15: error: set: No such file or directory
PileupBuffer.h:6:18: error: vector: No such file or directory
PileupBuffer.h:7:19: error: utility: No such file or directory
PileupBuffer.h:8:21: error: algorithm: No such file or directory
PileupBuffer.h:9:19: error: cassert: No such file or directory
In file included from ResultManager.h:12,
from PileupBuffer.h:11,
from PileupBuffer.cpp:1:
PosCache.h:8:19: error: numeric: No such file or directory
In file included from ResultManager.h:13,
from PileupBuffer.h:11,
from PileupBuffer.cpp:1:
PosCacheColl.h:4:19: error: cstdlib: No such file or directory
In file included from ResultManager.h:15,
from PileupBuffer.h:11,
from PileupBuffer.cpp:1:
/ircf/ircfapps/src/R-3.1.3/include/Rinternals.h:30:19: error: cstdio: No such file or directory
/ircf/ircfapps/src/R-3.1.3/include/Rinternals.h:34:20: error: climits: No such file or directory
In file included from ResultManager.h:12,
from PileupBuffer.h:11,
from PileupBuffer.cpp:1:
PosCache.h:11: error: 'std::map' has not been declared
PosCache.h:12: error: 'std::pair' has not been declared
PosCache.h:13: error: 'std::make_pair' has not been declared
PosCache.h:28: error: ISO C++ forbids declaration of 'vector' with no type
PosCache.h:28: error: invalid use of '::'
PosCache.h:28: error: expected ';' before '<' token
PosCache.h:29: error: ISO C++ forbids declaration of 'map' with no type
PosCache.h:29: error: invalid use of '::'
PosCache.h:29: error: expected ';' before '<' token
PosCache.h:30: error: ISO C++ forbids declaration of 'vector' with no type
PosCache.h:30: error: typedef name may not be a nested-name-specifier
PosCache.h:30: error: expected ';' before '<' token
PosCache.h:31: error: ISO C++ forbids declaration of 'map' with no type
PosCache.h:31: error: typedef name may not be a nested-name-specifier
PosCache.h:31: error: expected ';' before '<' token
PosCache.h:39: error: ISO C++ forbids declaration of 'pair' with no type
PosCache.h:39: error: expected ',' or '...' before '<' token
PosCache.h:55: error: ISO C++ forbids declaration of 'set' with no type
PosCache.h:55: error: invalid use of '::'
PosCache.h:55: error: expected ';' before '<' token
PileupBuffer.cpp:162: error: expected ';' at end of input
PileupBuffer.cpp:162: error: expected '}' at end of input
In file included from ResultManager.h:12,
from PileupBuffer.h:11,
from PileupBuffer.cpp:1:
PosCache.h: In constructor 'PosCache::PosCache(GenomicPosition)':
PosCache.h:33: error: class 'PosCache' does not have any field named 'tupleVec'
PosCache.h:33: error: class 'PosCache' does not have any field named 'nucCounts'
PosCache.h: In member function 'void PosCache::storeTuple(BamTuple&)':
PosCache.h:35: error: 'tupleVec' was not declared in this scope
PosCache.h:36: error: 'nucCounts' was not declared in this scope
PosCache.h:36: error: 'make_pair' was not declared in this scope
PosCache.h: In static member function 'static int PosCache::addSecond(int, int)':
PosCache.h:40: error: 'thePair' was not declared in this scope
PosCache.h: In member function 'int PosCache::totalNucFreq() const':
PosCache.h:43: error: 'accumulate' is not a member of 'std'
PosCache.h:43: error: 'nucCounts' was not declared in this scope
PosCache.h: In member function 'int PosCache::primaryNucFreq() const':
PosCache.h:47: error: expected initializer before '<' token
PosCache.h:48: error: 'iter' was not declared in this scope
PosCache.h:48: error: expected ';' before 'it'
PosCache.h:49: error: 'it' was not declared in this scope
PosCache.h:49: error: 'nucCounts' was not declared in this scope
PosCache.h: At global scope:
PosCache.h:54: error: expected unqualified-id at end of input
make: *** [PileupBuffer.o] Error 1
ERROR: compilation failed for package 'Rsamtools'
* removing '/share/ircf/ircfapps/src/R-3.1.3/library/Rsamtools'
ERROR: dependency 'Rsamtools' is not available for package 'cn.mops'
* removing '/share/ircf/ircfapps/src/R-3.1.3/library/cn.mops'
The downloaded source packages are in
'/tmp/Rtmp0nNsxR/downloaded_packages'
Warning messages:
1: In install.packages(pkgs = pkgs, lib = lib, repos = repos, ...) :
installation of package 'Rsamtools' had non-zero exit status
2: In install.packages(pkgs = pkgs, lib = lib, repos = repos, ...) :
installation of package 'cn.mops' had non-zero exit status
Here is my sessionInfo and traceback:
> traceback()
No traceback available
> sessionInfo()
R version 3.1.3 (2015-03-09)
Platform: x86_64-unknown-linux-gnu (64-bit)
Running under: CentOS release 6.3 (Final)
locale:
[1] C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocInstaller_1.16.2
loaded via a namespace (and not attached):
[1] tools_3.1.3
It looks like Rsamtools is hung up, not able to find some files to be included in PileupBuffer.cpp compilation.
I am able to install some other packages associated with Rsamtools (S4Vectors, IRanges, XVector, Biostrings).
Any suggestions are welcome. Thanks, Bill
If
which g++
andR CMD which g++
give the same result that tells you the g++ R points to and the g++ you get when you type g++ at the command line are the same.