简体   繁体   English

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

[英]Cannot upgrade gcc/g++ version?

When I tried to install bedtools in ubuntu 18, it showed the error as below:当我尝试在 ubuntu 18 中安装 bedtools 时,它显示错误如下:

 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.我猜这个问题来自 gcc/g++ 版本。 Currently, gcc version is 4.4.7.目前,gcc 版本为 4.4.7。 However, I cannot upgrade gcc/g++ using sudo command because I am installing it on HPC cluster.但是,我无法使用sudo命令升级 gcc/g++,因为我将它安装在 HPC 集群上。 Could you suggest me some alternative ways to solve this problem?你能建议我一些替代方法来解决这个问题吗?

... tried to install bedtools in ubuntu 18... unrecognized command line option "-std=c++11". ...尝试在 ubuntu 18 中安装 bedtools ...无法识别的命令行选项“-std=c++11”。 ... gcc version is 4.4.7 ... gcc 版本为 4.4.7

Ubuntu 18.04.2: The default gcc / g++ is version 7.4.0. Ubuntu 18.04.2:默认 gcc / g++ 是版本 7.4.0。 Quite unusual that it is set to 4.4.7.很不寻常的是它被设置为 4.4.7。 If you cannot change to g++-7.4, a "bedtools2-bin package" can be used.如果不能改成g++-7.4,可以使用“bedtools2-bin包”。

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

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

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM