没有管理员权限在centos 7上安装atom

时间:2016-06-15 14:00:49

标签: linux

如果有可能,有人可以告诉我如何让编辑器Atom在CentOS Linux 7.x版上工作。我在计算群集上工作,所以我没有sudo权限。这里的说明:https://github.com/atom/atom/blob/master/docs/build-instructions/linux.md 似乎需要sudo权限  如何使用这些约束安装它?

1 个答案:

答案 0 :(得分:2)

在您分享的链接中,请转到openSuse说明下面的“使用说明”部分。

第1步是:

git clone https://github.com/atom/atom
cd atom

在您的主目录中运行此步骤。

之后按照文档运行步骤2和步骤3:

git fetch -p
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
script/build

在此之后而不是第4步,运行:

script/grunt install --install-dir /home/<your-username>/bin/

这将在您的主目录中安装该应用程序,无需sudo权限即可完成。您可以在PATH变量的末尾添加/home/<your-username>/bin,并且您应该能够像往常一样使用atom。

所有这些都假设你已经在系统上安装了atom的要求,特别是node.js.如果没有,您将必须安装node.js以及https://www.vultr.com/docs/installing-node-js-from-source-on-ubuntu-14-04

在此处,运行./configure

而不是./configure --prefix=/home/<your-username>