Ruby on rails Ruby/RVM安装问题,可能需要重新格式化/bin
我正在尝试安装rvm 我有以下命令Ruby on rails Ruby/RVM安装问题,可能需要重新格式化/bin,ruby-on-rails,ruby,bash,installation,rvm,Ruby On Rails,Ruby,Bash,Installation,Rvm,我正在尝试安装rvm 我有以下命令 rvm get stable rvm requirements rvm要求后的误差为 Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p392/bin' is not at first place, 通过快速的互联网搜索,我做了以下工作 echo $PATH /opt/local/bin:/opt/local/sbin:/usr/local/rvm/gems/ru
rvm get stable
rvm requirements
rvm要求后的误差为
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p392/bin' is not at first place,
通过快速的互联网搜索,我做了以下工作
echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/local/rvm/gems/ruby-1.9.3-p392/bin:/usr/local/rvm/gems/ruby-1.9.3-p392@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p392/bin:/usr/local/rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin
现在我想问题是我在bin文件夹中安装了多个ruby,但是我不知道如何修复它,一个快速的互联网搜索会让我想到这一点
建议我编辑我的.bash_档案
我当前的.bash_配置文件如下所示
##
# Your previous /Users/secret/.bash_profile file was backed up as /Users/secret/.bash_profile.macports-saved_2013-08-19_at_17:35:01
##
#MacPorts Installer addition on 2013-08-19_at_17:35:01: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
##
# Your previous /Users/secret/.bash_profile file was backed up as /Users/secret/.bash_profile.macports-saved_2013-08-19_at_17:42:44
##
# MacPorts Installer addition on 2013-08-19_at_17:42:44: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
然而,我对编辑完全不熟悉。bash_profile,对做同样的事情犹豫不决,有人能解释一下下面的操作是什么,它将如何解决我的情况吗
export
PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/usr/local/bin:/opt/sm/pkg/active/sbina
谢谢
编辑:
我试过了
export
PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/usr/local/bin:/opt/sm/pkg/active/sbina
正如Stephan所建议的,尽管问题依然存在
编辑2:
我也试过了
rvm --debug get head
返回的
升级说明:
* WARNING: you have 'rvm_configure_env' in /etc/rvmrc, run the following to fix:
sudo sed -i'' -e "/rvm_configure_env=.*\/opt\/sm/d" /etc/rvmrc
rvm autolibs smf
我尝试了两个命令,我仍然得到
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p392/bin' is not at first place,
什么时候
编辑:
尝试
rvm install ruby-head
Backup.bash_profile and hack away:p.
export PATH=…
使环境变量PATH
可用于调用它的bash
shell生命周期内的所有命令
rvm install ruby-head