当前位置: 首页 > 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.jsqmd.com/news/45356/

相关文章:

  • 2025年11月北京注销代办公司排行推荐:市场主流服务商客观比对
  • 2025年11月中国离婚财产分割律师推荐榜单:专业律师全面对比与权威排行
  • 2025年11月中国离婚财产分割律师评价与排行全解析
  • 2025年11月保研辅导机构推荐:主流机构排行榜及避坑指南解析
  • chrome:在linux上打开调试端口9222失败
  • 大同一对一家教辅导深度评测:2025年家长首选的五家一对一辅导机构
  • 2025广东留学机构排名榜
  • 2025年11月保研辅导机构推荐榜单及选择指南:综合对比分析
  • 2025北京市留学中介排名
  • 2025年纳米水晶硅防火液实力厂家权威推荐榜单:a类防火玻璃隔断/纳米硅防火玻璃液/纳米硅非隔热防火玻璃源头厂家精选
  • 2025年知名的全域定制五金厂家实力及用户口碑排行榜
  • JavaScript 数组高阶用法汇总(含浏览器+微信小程序WebView支持)
  • 2025年央国企求职培训机构排名榜单:五家权威机构综合评测
  • Kafka消费者在物联网领域的深度实践:从海量设备接入到实时智能决策 - 详解
  • 2025年比较好的缓冲托辊厂家最新用户好评榜
  • 30年风雨照明路,3000万债务压不垮的亮化女性
  • 2025年评价高的大型珍珠棉发泡机最新TOP品牌厂家排行
  • nginx 会话保持
  • 2025年11月预制舱厂家推荐榜单:十大厂家综合实力排行对比分析
  • 2025年市场上喷塑厂家推荐榜单:成都汇元满机械制造有限公司领跑行业
  • [REPRINTED] - What Are Design Requirements: Types and Lifecycle - ENGINEER
  • 2025年木纹转印厂家综合实力排行榜TOP10权威发布
  • 2025年11月远程控制软件推荐:知名机构排行榜与口碑评价对比指南
  • 2025年知名的钢材最新TOP厂家排名
  • 2025年11月黄麻床垫产品推荐榜单:权威评测与综合排行指南
  • 2025年山东忠磁科技发展有限公司深度解析:揭秘磁电技术领军者的创新之路与全球竞争优势
  • 苏州交通便利的陵园推荐:便捷祭扫与安心选择
  • 2025年11月活动板房厂家综合评测榜:资质与用户反馈多维度解析
  • 2025年11月集装箱活动房回收厂家推荐榜:全国五强厂家综合对比分析
  • 26、触发器