小编Amj*_*jad的帖子

如何设置 Ruby GEM_HOME 和 GEM_PATH

我是 Linux 的新手用户,使用 Linux mint 17.1

我在过去 3 天内为该问题重新安装了 Linux Mint 20 次,但无法修复它

我正在尝试使用 rvm 在 rails 上安装 ruby .

通过在过去 3 天内重新安装它超过 20 次,我也在网上搜索过。有人告诉我将环境变量放入/etc/environment我在该会话中回显的路径中并将其粘贴到/etc/environment文件中。

即使现在我也没有得到我安装的 gems

当我输入时rvm -v出现以下错误

Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set, see:
    https://github.com/wayneeseguin/rvm/issues/3212

Warning! PATH is not properly set up, $GEM_HOME is not set,
         usually this is caused by shell initialization files - check them for 'PATH=...' entries,
         it might also help to re-add …
Run Code Online (Sandbox Code Playgroud)

linux scripting ubuntu environment-variables linux-mint

11
推荐指数
1
解决办法
9万
查看次数