开发者社区 问答 正文

无法升级gcc / g ++版本?

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

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

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

展开
收起
祖安文状元 2020-01-07 13:25:24 971 分享 版权
1 条回答
写回答
取消 提交回答
  • 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
    
    2020-01-07 13:25:40
    赞同 展开评论
问答分类:
问答地址: