当前位置: 首页 > news >正文

Warning! PATH is not properly set up, /Users/i/.rvm/gems/ruby-3.3.0/bin is not at first place.

I am having trouble with my RVM - I keep getting error messages telling me that PATH is not correctly set up.

First off, any of of this sounds like it it's coming from a complete noob, that's because it is. There have been some similar threads that I've been looking at, but nothing has helped me fix the issue. Any help would be greatly appreciated!

When I run rvm get head and I get the message:

Warning! PATH is not properly set up, '/Users/mbauer/.rvm/src/rvm/gems/ruby-2.1.0/bin' is not at first place,usually this is caused by shell initialization files - check them for 'PATH=...' entries,it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',to fix temporarily in this shell session run: 'rvm use ruby-2.1.0'.

I've tried running rvm get head --auto-dotfiles and restarted the terminal- no help.

Running rvm use ruby-2.1.0 also does not do anything, even in the current shell session.

When I run rvm --debug get head I noticed this:

step> 'update_gemsets_install_rvm' started
Installing rvm gem in 1 gemsetsERROR:  While executing gem ... (Errno::EACCES)
Permission denied - /Users/mbauer/.rvm/src/rvm/gems/ruby-2.0.0-p247@global/cache/rvm-1.11.3.8.gem
Installing gem-wrappers gem in 2 gemsetsERROR:  While executing gem ... (Errno::EACCES)
Permission denied - /Users/mbauer/.rvm/src/rvm/gems/ruby-2.0.0-p247@global/cache/gem-wrappers-1.2.1.gemERROR:  While executing gem ... (Errno::EACCES)
Permission denied - /Users/mbauer/.rvm/src/rvm/gems/ruby-2.0.0-p247@global/cache/gem-wrappers-1.2.1.gem

My research thus far leads me to believe that the problem is somewhere in my bash_profile

I've been referencing this thread, it seems like we have similar issue but I can't figure out what I would need to change/remove in my bash_profile to remedy the problem.

Here are the contents of my bash_profile:

[[ -s "$HOME/.rvm/src/rvm/scripts/rvm" ]] && source "$HOME/.rvm/src/rvm/scripts/rvm" # Load RVM into a shell session *as a function*
if [[ -s $HOME/.rvm/scripts/rvm ]]; thensource $HOME/.rvm/scripts/rvm;
fi
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/mbauer/.rvm/src/rvm/bin
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/mbauer/.rvm/src/rvm/bin

Can anyone shed some light on this for me?

like image 618
Mark Avatar asked Dec 26 '13 18:12

Mark

 

1 Answers

I'm not going to tell you how to do it, because you need to learn to understand what you're doing when you work with environment variables.

At the command-line, enter:

echo $PATH

RVM's path information should be first in the chain.

Look at your PATH manipulations:

[[ -s "$HOME/.rvm/src/rvm/scripts/rvm" ]] && source "$HOME/.rvm/src/rvm/scripts/rvm" # Load RVM into a shell session *as a function*
if [[ -s $HOME/.rvm/scripts/rvm ]]; thensource $HOME/.rvm/scripts/rvm;
fi
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/mbauer/.rvm/src/rvm/bin
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/mbauer/.rvm/src/rvm/bin

Do you see why it isn't first in the chain? (Also, do you see some general confusion showing you don't know how PATH works?)

I'd recommend taking some time to learn how environment variables and the PATH work. Read through the RVM installation page, then figure out how to make RVM's initialization appear first in the PATH.

like image 79
the Tin Man Avatar answered Sep 28 '22 07:09

the Tin Man

 
http://www.gsyq.cn/news/54979.html

相关文章:

  • 2025年11月北京注销代办公司排行推荐:市场主流服务商客观比对
  • 2025年11月中国离婚财产分割律师推荐榜单:专业律师全面对比与权威排行
  • chrome:在linux上打开调试端口9222失败
  • 2025北京市留学中介排名
  • JavaScript 数组高阶用法汇总(含浏览器+微信小程序WebView支持)
  • 2025年比较好的缓冲托辊厂家最新用户好评榜
  • Windows 11/10 “移动热点”开启的几种方式 - 指南
  • 2025年评价高的大型珍珠棉发泡机最新TOP品牌厂家排行
  • nginx 会话保持
  • 2025年市场上喷塑厂家推荐榜单:成都汇元满机械制造有限公司领跑行业
  • [REPRINTED] - What Are Design Requirements: Types and Lifecycle - ENGINEER
  • 2025年11月远程控制软件推荐:知名机构排行榜与口碑评价对比指南
  • 苏州交通便利的陵园推荐:便捷祭扫与安心选择
  • 【2025-11-16】连岳摘抄
  • 2025年知名的除尘风机行业内知名厂家排行榜
  • ai论文工具推荐:助力科研创作效率提升的实用参考
  • ai论文软件推荐:提升写作效率的实用工具盘点
  • 2025年11月校服品牌推荐榜单:一份基于权威数据的选购指南
  • 2025年11月校服设计公司推荐榜单与选择指南:一份基于客观数据的权威列表
  • 2025年11月校服设计服务选择避坑指南:全面维度的详细解析
  • 实用指南:十六、Linux网络配置
  • 2025年11月高端校服定制企业推荐榜及选择指南
  • Rhino 8:建模自由,从曲面安装到精度,专业建模,新手也能上手
  • 苏州刑事律所推荐:专业法律服务机构选择指南
  • 2025年知名的抽屉阻尼托底轨行业内口碑厂家排行榜
  • 2025年评价高的纳米大单槽用户口碑最好的厂家榜
  • 2025年11月孩子留学求职规划机构推荐榜单与选择指南:综合对比与权威分析
  • 2025年口碑好的玻璃优质厂家推荐榜单
  • 2025年11月留学生找工作机构推荐:权威榜单与选择指南
  • 2025年南京50年茅台回收公司权威推荐榜单:30年茅台回收/15年茅台回收/马年茅台回收源头公司精选