【问题标题】:Cannot upgrade gcc/g++ version?无法升级 gcc/g++ 版本?
【发布时间】:2019-10-07 16:17:45
【问题描述】:

当我尝试在 ubuntu 18 中安装 bedtools 时,它显示如下错误:

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

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

我猜这个问题来自 gcc/g++ 版本。目前,gcc 版本是 4.4.7。但是,我无法使用sudo 命令升级 gcc/g++,因为我将它安装在 HPC 集群上。你能给我一些解决这个问题的替代方法吗?

【问题讨论】:

  • 如果您无法安装 C++11 编译器,替代方法是:使用为 您的操作系统编译的“bedtools2-bin 包”。

标签: linux gcc compiler-errors g++ hpc


【解决方案1】:

... 尝试在 ubuntu 18 中安装 bedtools ... 无法识别的命令 行选项“-std=c++11”。 ... gcc 版本是 4.4.7

Ubuntu 18.04.2:默认的 gcc / g++ 是 7.4.0 版本。很不寻常的是它被设置为 4.4.7 。如果不能改成g++-7.4,可以使用“bedtools2-bin包”。

$ git clone https://github.com/arq5x/bedtools2.git
$ cd bedtools2/
$ make   
        ### the folder bin/{bedtools + 38 scripts} is created

包:bedtools2-bin_2.29.0-ubuntu18_amd64.tar.gz https://drive.google.com/drive/folders/1OjAsgpzqx-sK_3PF8FUGuinYqW_jVEWg?usp=sharing

解压bedtools2-bin_2.29.0-ubuntu18_amd64.tar.gz:

$ cd bedtools2/
$ tar xvf bedtools2-bin_2.29.0-ubuntu18_amd64.tar.gz

【讨论】:

    猜你喜欢
    • 2015-03-29
    • 1970-01-01
    • 1970-01-01
    • 2019-05-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-06
    相关资源
    最近更新 更多