Hi we are having trouble installing SPP on R.3.0.0 on linux. Here is the
result of our trial, anyone suggest a soluton.
oot@grendel ~]# R CMD INSTALL spp_1.12.tar
* installing to library ‘/opt/lib64/R/library’
* installing *source* package ‘spp’ ...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for BZ2_bzDecompressInit in -lbz2... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -I/opt/lib64/R/include -DNDEBUG -I/usr/local/include -I./ -D_FASTMAP -DMAQ_LONGREADS -fpic -g -O2 -c BGZF.cpp -o BGZF.o
g++ -I/opt/lib64/R/include -DNDEBUG -I/usr/local/include -I./ -D_FASTMAP -DMAQ_LONGREADS -fpic -g -O2 -c BamAlignment.cpp -o BamAlignment.o
g++ -I/opt/lib64/R/include -DNDEBUG -I/usr/local/include -I./ -D_FASTMAP -DMAQ_LONGREADS -fpic -g -O2 -c BamIndex.cpp -o BamIndex.o
In file included from BamIndex.cpp:13:0:
./BamIndex.h:77:23: error: ‘off_t’ does not name a type
BamIndex.cpp: In member function ‘bool BamTools::BamIndex::Rewind()’:
BamIndex.cpp:149:14: error: ‘DataBeginOffset’ was not declared in this scope
make: *** [BamIndex.o] Error 1
ERROR: compilation failed for package ‘spp’
* removing ‘/opt/lib64/R/library/spp’
* restoring previous ‘/opt/lib64/R/library/spp’
result of our trial, anyone suggest a soluton.
oot@grendel ~]# R CMD INSTALL spp_1.12.tar
* installing to library ‘/opt/lib64/R/library’
* installing *source* package ‘spp’ ...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for BZ2_bzDecompressInit in -lbz2... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++ -I/opt/lib64/R/include -DNDEBUG -I/usr/local/include -I./ -D_FASTMAP -DMAQ_LONGREADS -fpic -g -O2 -c BGZF.cpp -o BGZF.o
g++ -I/opt/lib64/R/include -DNDEBUG -I/usr/local/include -I./ -D_FASTMAP -DMAQ_LONGREADS -fpic -g -O2 -c BamAlignment.cpp -o BamAlignment.o
g++ -I/opt/lib64/R/include -DNDEBUG -I/usr/local/include -I./ -D_FASTMAP -DMAQ_LONGREADS -fpic -g -O2 -c BamIndex.cpp -o BamIndex.o
In file included from BamIndex.cpp:13:0:
./BamIndex.h:77:23: error: ‘off_t’ does not name a type
BamIndex.cpp: In member function ‘bool BamTools::BamIndex::Rewind()’:
BamIndex.cpp:149:14: error: ‘DataBeginOffset’ was not declared in this scope
make: *** [BamIndex.o] Error 1
ERROR: compilation failed for package ‘spp’
* removing ‘/opt/lib64/R/library/spp’
* restoring previous ‘/opt/lib64/R/library/spp’
Comment