Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation issue on CentOS6.9 #3

Closed
wdecoster opened this issue Nov 13, 2017 · 6 comments
Closed

installation issue on CentOS6.9 #3

wdecoster opened this issue Nov 13, 2017 · 6 comments

Comments

@wdecoster
Copy link

Hi,

This looks like a great tool and I would like to give it a try, but I encountered an issue when attempting to install it. This issue might be due to our old server, which is a CentOS6.9 with gcc 4.8.2. Are there other system parameters you want to know? Installation went fine on my own Ubuntu 17.10.

I downloaded the release 0.5.0 (the same happens after cloning from GitHub), and executed make:

g++ -std=c++11 -g -I./inc -O3 -c  src/adaptertrimmer.cpp -o obj/adaptertrimmer.o
g++ -std=c++11 -g -I./inc -O3 -c  src/evaluator.cpp -o obj/evaluator.o
g++ -std=c++11 -g -I./inc -O3 -c  src/fastqreader.cpp -o obj/fastqreader.o
g++ -std=c++11 -g -I./inc -O3 -c  src/filter.cpp -o obj/filter.o
g++ -std=c++11 -g -I./inc -O3 -c  src/filterresult.cpp -o obj/filterresult.o
g++ -std=c++11 -g -I./inc -O3 -c  src/htmlreporter.cpp -o obj/htmlreporter.o
g++ -std=c++11 -g -I./inc -O3 -c  src/jsonreporter.cpp -o obj/jsonreporter.o
g++ -std=c++11 -g -I./inc -O3 -c  src/main.cpp -o obj/main.o
g++ -std=c++11 -g -I./inc -O3 -c  src/options.cpp -o obj/options.o
g++ -std=c++11 -g -I./inc -O3 -c  src/overlapanalysis.cpp -o obj/overlapanalysis.o
g++ -std=c++11 -g -I./inc -O3 -c  src/peprocessor.cpp -o obj/peprocessor.o
g++ -std=c++11 -g -I./inc -O3 -c  src/processor.cpp -o obj/processor.o
g++ -std=c++11 -g -I./inc -O3 -c  src/read.cpp -o obj/read.o
g++ -std=c++11 -g -I./inc -O3 -c  src/seprocessor.cpp -o obj/seprocessor.o
g++ -std=c++11 -g -I./inc -O3 -c  src/sequence.cpp -o obj/sequence.o
g++ -std=c++11 -g -I./inc -O3 -c  src/stats.cpp -o obj/stats.o
g++ -std=c++11 -g -I./inc -O3 -c  src/threadconfig.cpp -o obj/threadconfig.o
g++ -std=c++11 -g -I./inc -O3 -c  src/unittest.cpp -o obj/unittest.o
g++ -std=c++11 -g -I./inc -O3 -c  src/writer.cpp -o obj/writer.o
g++ ./obj/adaptertrimmer.o ./obj/evaluator.o ./obj/fastqreader.o ./obj/filter.o ./obj/filterresult.o ./obj/htmlreporter.o ./obj/jsonreporter.o ./obj/main.o ./obj/options.o ./obj/overlapanalysis.o ./obj/peprocessor.o ./obj/processor.o ./obj/read.o ./obj/seprocessor.o ./obj/sequence.o ./obj/stats.o ./obj/threadconfig.o ./obj/unittest.o ./obj/writer.o  -lz -lpthread -o fastp
./obj/peprocessor.o: In function `PairEndProcessor::initOutput()':
/home/wdecoster/bin/fastp-0.5.0/src/peprocessor.cpp:32: undefined reference to `gzbuffer'
/home/wdecoster/bin/fastp-0.5.0/src/peprocessor.cpp:35: undefined reference to `gzbuffer'
./obj/fastqreader.o: In function `FastqReader::getBytes(unsigned long&, unsigned long&)':
/home/wdecoster/bin/fastp-0.5.0/src/fastqreader.cpp:38: undefined reference to `gzoffset'
collect2: error: ld returned 1 exit status
make: *** [fastp] Error 1

Do you have suggestions on how to fix this?

Cheers,
Wouter

@sfchen
Copy link
Member

sfchen commented Nov 13, 2017

Your zlip is too old that it doesn't have functions like gzbuffer or gzoffset.

You can update the zlip, or just download the binary distribution from http://opengene.org/fastp/fastp , and run chmod a+x fastp to make it executable.

@wdecoster
Copy link
Author

Alright, thanks for the quick reply.

Running fastp on a fastq.gz file of nanopore data throws an error, not sure why:

$ fastp -t 20 -i fail/fastq_runid_fff19c6dcf86112967c3df0777ebeddda1109a40_1.fastq.gz -q 8 -l 5000 -o out
Detecting adapter for single end input...
No adapter detected

terminate called after throwing an instance of 'std::system_error'
  what():  Enable multithreading to use std::thread: Operation not permitted
Aborted (core dumped)

Perhaps would be more appropriate in a separate thread, but do you think it would be possible to have fastp read from stdin and write to stdout?

@sfchen
Copy link
Member

sfchen commented Nov 14, 2017

Thanks for your information.

I compiled that binary on Ubuntu, and seems it is not working on centOS.

I recompiled one in CentOS, you can download it from: http://opengene.org/fastp/fastpcentos

And another option is to update your old zlib, then compile by your self.

@sfchen
Copy link
Member

sfchen commented Nov 14, 2017

And I also haven't tried any nanopore data, could you send me one or upload one here? (You can upload only first 1000 lines)

@wdecoster
Copy link
Author

I'll test fastp again. I attached 1000 reads of E.coli data, but you can find plenty more publicly available, e.g.
https://github.com/nanopore-wgs-consortium/NA12878
nanopore.fastq.gz

@wdecoster
Copy link
Author

fastp works fine now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants