是否可以在没有 root 的情况下在 CentOS 上安装 g++? [英] Is it possible to install g++ on CentOS without root?

查看:32
本文介绍了是否可以在没有 root 的情况下在 CentOS 上安装 g++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台装有 CentOS 5.8 的核心 i7 机器,我通过 SSH 连接到该机器并用于运行模拟.不幸的是,它只有 gcc 版本 4.1.2.这似乎产生的程序比我在使用 Microsoft Visual Express c++ 2010 的较慢的笔记本电脑上进行优化时得到的程序要慢得多.我尝试了各种 g++ 优化标志,但它们没有太大帮助,所以我想我需要升级 gcc.

I've got a core i7 machine wtih CentOS 5.8 that I SSH into and use for running simulations. Unfortunately it only has gcc version 4.1.2. This seems to be producing vastly slower programs than what I get when compiling with optimizations on my slower laptop machine with Microsoft Visual Express c++ 2010. I've tried various g++ optimization flags but they aren't much help so I'm thinking i need to upgrade gcc.

我的机器上没有 root,所以看起来我必须将它安装在我的主目录中.这是否可行,如果可行,是否需要任何具体说明来执行此操作?

I don't have root on the machine so it looks like I'd have to install it in my home directory. Is this feasible and if so are there any specific instructions needed to do this?

谢谢

推荐答案

您可以使用 EasyBuild,它可以让您非常轻松地安装特定的 GCC 版本而无需 root,请参阅 http://hpcugent.github.com/easybuild .

You could use EasyBuild, which will allow you to very easily install a particular GCC version without requiring root, see http://hpcugent.github.com/easybuild .

免责声明:我是一名 EasyBuild 开发人员.

Disclaimer: I'm an EasyBuild developer.

这篇关于是否可以在没有 root 的情况下在 CentOS 上安装 g++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆