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

查看:151
本文介绍了是否可以在没有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天全站免登陆