惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
B
Blog
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Proofpoint News Feed
C
Check Point Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
博客园 - 叶小钗
S
SegmentFault 最新的问题
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
Microsoft Security Blog
Microsoft Security Blog
小众软件
小众软件
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
腾讯CDC
博客园 - Franky
博客园 - 聂微东
V
Visual Studio Blog
GbyAI
GbyAI
Martin Fowler
Martin Fowler
罗磊的独立博客
Y
Y Combinator Blog

博客园 - sikewang

Gradle的init.d的init.gradle , init.d的位置 , x.gradle或x.gradle.kts的位置 maven wrapper 介绍及使用详解 Plugin [id: 'org.gradle.kotlin.kotlin-dsl', version: '4.2.1'] was not found in any of the following sources: JEnv-for-Windows 安装与使用 jenv报错无法加载文件jenv.ps1 mac上如何用fvm设置全局Flutter SDK? Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17). fvm Flutter多版本管理安装与常用指令 JVM_XMS 和 java_opts哪种写法对?如何在JVM中设置JVM_XMS和java_opts? Elastic Search 安装部署最全教程(Docker) VMware中Ubuntu配置固定IP 下载Android SDK tools完成Android SDK 安装、配置环境变量 Oracle JDK究竟从哪个版本开始收费? 报红 import 'package:http/http.dart' as http; import 'package:date_format/date_format.dart'; Flutter doctor CSRF攻击与防御 windows查看文件/夹被哪个进程占用以及解除方法 windows上安装nvm-noinstall.zip 修改chrome用户数据的路径
Warning! PATH is not properly set up, /Users/i/.rvm/gems/...
sikewang · 2025-11-20 · via 博客园 - sikewang

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 ]]; then
  source $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 ]]; then
  source $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