This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error when installing bedtools

Dear all, When I installed bedtools from the source, after using "make" command, it showed the error as below:


cc1plus: error: unrecognized command line option "-std=c++11"


make[1]: * [../../../obj//FileRecordMgr.o] Error 1


I guess the problem comes from gcc/g++ version. Currently, gcc version is 4.4.7. However, I cannot upgrade gcc/g++ using sudo command because I am installing it on hpc cluster. Could you suggest me some alternative ways to solve this problem? Thank you!

rna-seq bedtools gcc g++

I cannot upgrade gcc/g++ using sudo command because I am installing it on hpc cluster.

You can install your own gcc/g++ like any other program, can't you? Then you just direct make to use that one..

I cannot find the source to download gcc/g++. All guideline on the internet shows the use of sudo command. Could you give me some reference?

1 answer

Use pre-compiled binary available from GitHub repo for v.2.28.0. After downloading add execute permissions (chmod a+x ./bedtools).

Note: Latest bedtools version is 2.29.0 but no binary is available for that version.

Hi, thank you for your suggestion. But after this 2 steps, I still cannot run bedtools. It showed "command not found". What can I do now?

Log in to answer this question.