Error when installing bedtools
1
0
Entering edit mode
4.5 years ago
bobbyle0210 ▴ 10

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++ • 3.4k views
ADD COMMENT
0
Entering edit mode

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..

ADD REPLY
0
Entering edit mode

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?

ADD REPLY
0
Entering edit mode
4.5 years ago
GenoMax 141k

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.

ADD COMMENT
0
Entering edit mode

Hi, Could you show more detailed steps for this, because I am not familar with linux yet? Should I follow this guideline:


$ wget https://github.com/arq5x/bedtools2/releases/download/v2.28.0/bedtools-2.28.0.tar.gz


$ tar -zxvf bedtools-2.28.0.tar.gz


$ cd bedtools2


$ make


And where should I add execute permissions when following this guideline? Thanks so much!

ADD REPLY
0
Entering edit mode

What you downloaded is still the source code. You should instead do:

$ wget https://github.com/arq5x/bedtools2/releases/download/v2.28.0/bedtools
$ chmod a+x ./bedtools

This file is pre-compiled binary which is ready to run after the two steps above.

ADD REPLY
0
Entering edit mode

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?

ADD REPLY
0
Entering edit mode

The bedtools binary should be in your $PATH.
See also this page

ADD REPLY

Login before adding your answer.

Traffic: 1946 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