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

470 views
Skip to first unread message

xuemin....@gmail.com

unread,
Apr 16, 2018, 9:49:02 AM4/16/18
to bedtools-discuss
Hi bedtools developers and fellow users,

I installed bedtools on a HPC platform, but getting error as attached when typing "make" into the command line. 

Here is the code to install bedtools

wget https://github.com/arq5x/bedtools2/releases/tag/v2.27.1/bedtools-2.27.1.tar.gz
$ tar -zxvf bedtools-2.27.1.tar.gz
$ cd bedtools2
$ make

So when I typed "bedtools" after setting-up as indicated in http://quinlanlab.org/tutorials/bedtools/bedtools.html, it indicated "-bash: bedtools: command not found".

gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18) was installed in the HPC platform. 

Was this due the lower version of gcc used? How can I fix this error?

Many thanks,
Xuemin
bedtools error.PNG

Aaron Quinlan

unread,
Apr 16, 2018, 5:02:52 PM4/16/18
to xuemin....@gmail.com, bedtools...@googlegroups.com
The bedtools binary file that is created after “make” (stored in the “bin” subdirectory of the “bedtools” directory you created below) needs to be moved into a directory that is in your PATH.  Typically, one creates a “bin” directory in one’s home directory, copies the bedtools binary file to that bin directory, and then adds the "~/bin” directory to one’s PATH environment variable.  The PATH environment variable is what your shell uses to look for binaries that you type on the command line.

Further details and examples can be found here:



Aaron
--
You received this message because you are subscribed to the Google Groups "bedtools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bedtools-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

xuemin wang

unread,
Apr 16, 2018, 9:35:38 PM4/16/18
to Aaron Quinlan, bedtools...@googlegroups.com
Hi Aaron,

thanks for your reply. 

The problem is there was an error (below) when I typed "make":
cc1plus: error: unrocognized command line option "-std=c++11"
make[1]: *** [../../../obj//FileRecordMgr.o] Error 1
make: *** [src/utils/FileRecordTools] Error 2

Do you have any idea how to fix this?

Regards,
xuemin

To unsubscribe from this group and stop receiving emails from it, send an email to bedtools-discuss+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Xuemin Wang

PhD Candidate

Queensland Alliance for Agriculture and Food Innovation (QAAFI)

The University of Queensland

Hermitage Research Facility, 604 Yangan Rd

Warwick, QLD 4370

Australia

Mobile (+61) 423 097 394

xuemin wang

unread,
Apr 23, 2018, 10:08:03 AM4/23/18
to Aaron Quinlan, bedtools...@googlegroups.com
The issue has been solved after upgrading gcc. Thanks Aaron.

Regards,
Xuemin
Reply all
Reply to author
Forward
0 new messages