rvm icon indicating copy to clipboard operation
rvm copied to clipboard

Get 'rvm_info_for_prompt:2: permission denied' at term start/new term tab

Open khipukamayuq opened this issue 9 years ago • 0 comments

Description

Not so much a problem but an annoyance. Rvm works, but when I open a new terminal or tab, before the nifty random fortune I get rvm_info_for_prompt:2: permission denied: ~/.rvm/bin/rvm-prompt.

Steps to reproduce

  1. I'm on Linux Mint 17.3. System and default Ruby set to 2.4.1.; rvm 1.29.3 and zsh with zprezto configuration. Originally, the rvm-prompt folder didn't even exist, and I was getting two of the the above error, and it would continue to display after each command I'd enter. I read some post that suggested creating the empty folder as a quick fix. It sort of worked as I only get the one error now (used chmod and chown to make sure of access to this file).
  2. I've run rvm get stable, rvm get master as suggested by rvm's documentation for which I get upgrade complete but also * WARNING: you have GEM_HOME="/home/chomskyhonk/.rvm/gems/ruby-2.4.1" this is conflicting with RVM, make sure to: unset GEM_HOME. I've run unset gem_home which didn't give me any output, but following that up with rvm info showed my GEM_HOME now empty (previously set to ~/.rvm/gems/ruby-2.4.1).
  3. Lastly, I removed from all .profile mentions of prompt settings to show ruby version (which, as far as I can tell is the only thing pointing to the folder mentioned in my error message). Still get the same permission denied message on new tabs and/or terminals. I'm guessing this is just something I don't understand about my configuration, but am running out of places I can think to look.

Expected behavior

I just don't want to see this permission denied error. Also, to understand what's actually happening here.

Actual behavior

Continuing to get this at prompt on terminal or new tab open.

Debug mode:

Environment info

ruby-2.4.1:

system: uname: "Linux Foundation 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux" name: "Mint" version: "17.3" architecture: "x86_64" bash: "/bin/bash => GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)" zsh: "/usr/bin/zsh => zsh 5.0.2 (x86_64-pc-linux-gnu)" remote_path: "mint/17.3/x86_64"

rvm: version: "1.29.3 (latest)" updated: "1 hour 8 minutes 43 seconds ago" path: "/usr/share/rvm" autolibs: "[4] Allow RVM to use package manager if found, install missing dependencies, install package manager (only OS X)."

ruby: interpreter: "ruby" version: "2.4.1p111" date: "2017-03-22" platform: "x86_64-linux" patchlevel: "2017-03-22 revision 58053" full_version: "ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]"

homes: gem: "/home/chomskyhonk/.rvm/gems/ruby-2.4.1" ruby: "/usr/share/rvm/rubies/ruby-2.4.1"

binaries: ruby: "/usr/share/rvm/rubies/ruby-2.4.1/bin/ruby" irb: "/usr/share/rvm/rubies/ruby-2.4.1/bin/irb" gem: "/usr/share/rvm/rubies/ruby-2.4.1/bin/gem" rake: "/home/chomskyhonk/.rvm/gems/ruby-2.4.1@global/bin/rake"

environment: PATH: "/usr/local/bin:/usr/local/sbin:/home/chomskyhonk/.rvm/gems/ruby-2.4.1/bin:/home/chomskyhonk/.rvm/gems/ruby-2.4.1@global/bin:/usr/share/rvm/rubies/ruby-2.4.1/bin:/home/chomskyhonk/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/share/rvm/bin" GEM_HOME: "/home/chomskyhonk/.rvm/gems/ruby-2.4.1" GEM_PATH: "/home/chomskyhonk/.rvm/gems/ruby-2.4.1:/home/chomskyhonk/.rvm/gems/ruby-2.4.1@global" MY_RUBY_HOME: "/usr/share/rvm/rubies/ruby-2.4.1" IRBRC: "/usr/share/rvm/rubies/ruby-2.4.1/.irbrc" RUBYOPT: "" gemset: ""

khipukamayuq avatar Nov 10 '17 21:11 khipukamayuq