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.
Use
conda
to avoid dependency related issues.https://anaconda.org/bioconda/canu
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.