Canu installation, error with GCC compiler
1
0
Entering edit mode
4.1 years ago
dicenhour • 0

I am trying to install canu-2.0 on my computer but when I try to build it I keep getting the following error:

Canu cannot be compiled with this compiler. Please install GCC and/or specify a non-Clang compiler on the command line, e.g., make CC=/path/to/gcc CXX=/path/to/g++

I previously installed gcc but I'm not sure what to do here. I followed the author's install instructions, trying both ways the suggested:

To install from a binary distribution (recommended installation method): tar -xJf canu-2.0.*.tar.xz

To install from source code (the file can be named either canu-v2.0.tar.gz or just v2.0.tar.gz, depending on how it is downloaded): gunzip -dc canu-v2.0.tar.gz | tar -xf - cd canu-2.0/src make -j 8 cd ..

I receive this error when I use the command make -j 8. Any help on how to proceed would be greatly appreciated. Thank you.

Assembly genome • 1.3k views
ADD COMMENT
1
Entering edit mode

Use conda to avoid dependency related issues.

https://anaconda.org/bioconda/canu

ADD REPLY
0
Entering edit mode

If you downloaded binary i.e. compiled canu then you don't need to do anything else. Just uncompress the file as noted above and run. For macOS you would need to get Darwin file. If you are running masOS catalina then check to see if this binary will run. No 32-bit software runs on Catalina.

ADD REPLY
1
Entering edit mode
4.1 years ago
Mensur Dlakic ★ 27k

make CC=/path/to/gcc CXX=/path/to/g++

You already have a recipe, so just add the ingredients. Assuming that your GCC installation was successful, in the make command above replace /path/to/gcc with the output of which gcc, and /path/to/g++ with the output of which g++.

On my computer, typing which gcc responds with /usr/bin/gcc and which g++ responds with /usr/bin/g++. Therefore, the make command would be:

make -j8 CC=/usr/bin/gcc CXX=/usr/bin/g++
ADD COMMENT
0
Entering edit mode

Awesome, that worked! Thank you. I had tried that before but put the -j 8 at the end instead of the beginning.

ADD REPLY

Login before adding your answer.

Traffic: 2587 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6