yum安装不在没有root权限的群集上工作

时间:2014-01-10 23:07:03

标签: linux git cluster-computing redhat yum

我正在尝试在群集( Red Hat Enterprise Linux Server 6.4版)上本地安装git,我没有root权限。我需要先安装一些依赖项,以便git网站有以下指令来获取这些依赖项:

$ yum install curl-devel expat-devel gettext-devel \
  openssl-devel zlib-devel

但是当我尝试这个命令时。我收到以下错误。我检查了我的PATH env.Variable并且/ usr / bin和yum位于/ usr / bin / yum,所以我不确定为什么它没有说明没有名为yum的模块。我只是想知道如何解决这个问题。任何帮助将不胜感激。

'import site' failed; use -v for traceback
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, May 27 2013, 05:35:12) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

1 个答案:

答案 0 :(得分:0)

您应该授予在/ etc / sudoers文件上通过yum为本地用户安装软件包的权限。它对我有用。