Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current RVM PATH issue - how to 'IMPLEMENT' (Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.0.0-p247/bin' is not available) #2272

Closed
ghost opened this issue Oct 10, 2013 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 10, 2013

I'm getting this message when trying rvm get stable in Terminal (bash):

    • WARNING: Above files contains PATH= with no $PATH inside, this can break RVM, for details check #1351 (comment) to avoid this warning append #PATH.

$ echo $PATH


/usr/local/bin:/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:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin

A bit lost! Any help would be appreciated - especially in HOW I implement the change (do I literally type into the Terminal or go through and find the file/folder manually??)

This is what I get when running rvm --debug get head:

Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.0.0-p247/bin' is not available,
         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.0.0-p247'.
Running(6): curl --fail --location --max-redirs 10 https://get.rvm.io
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   184  100   184    0     0    119      0  0:00:01  0:00:01 --:--:--   211
100 15779  100 15779    0     0   7331      0  0:00:02  0:00:02 --:--:-- 77729
Downloading RVM from wayneeseguin branch master
Running(8): curl --fail --location --max-redirs 10 https://github.com/wayneeseguin/rvm/archive/master.tar.gz -o /usr/local/rvm/archives/wayneeseguin-rvm-master.tgz  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   124  100   124    0     0    198      0 --:--:-- --:--:-- --:--:--   264
100 1083k  100 1083k    0     0   346k      0  0:00:03  0:00:03 --:--:--  611k
Running(5): tar xzf /usr/local/rvm/archives/wayneeseguin-rvm-master.tgz --strip-components 1step> 'system_installation_check' started
step< 'system_installation_check' finished with 0
step> 'setup_rvm_group_and_users' started
Group 'rvm' already exists
step< 'setup_rvm_group_and_users' finished with 0
step> 'print_install_header' started

Upgrading the RVM installation in /usr/local/rvm/
step< 'print_install_header' finished with 0
step> 'cleanse_old_entities' started
step< 'cleanse_old_entities' finished with 0
step> 'create_install_paths' started
step< 'create_install_paths' finished with 0
step> 'load_custom_flags' started
step< 'load_custom_flags' finished with 0
step> 'save_custom_flags' started
step< 'save_custom_flags' finished with 0
step> 'install_rvm_files' started
    Can not update 'scripts/extras/completion.zsh/_rvm', it's a conflict between Zsh and multiuser installation, prefix the command with 'rvmsudo' to update this file.
    Can not update 'scripts/zsh/Completion/_rvm', it's a conflict between Zsh and multiuser installation, prefix the command with 'rvmsudo' to update this file.
step< 'install_rvm_files' finished with 0
step> 'install_rvm_hooks' started
step< 'install_rvm_hooks' finished with 0
step> 'install_binaries' started
step< 'install_binaries' finished with 0
step> 'install_gemsets' started
step< 'install_gemsets' finished with 0
step> 'install_patchsets' started
step< 'install_patchsets' finished with 0
step> 'install_man_pages' started
step< 'install_man_pages' finished with 0
step> 'ensure_scripts_are_executable' started
step< 'ensure_scripts_are_executable' finished with 0
step> 'setup_configuration_files' started
step< 'setup_configuration_files' finished with 0
step> 'cleanse_old_environments' started
step< 'cleanse_old_environments' finished with 0
step> 'migrate_old_gemsets' started
step< 'migrate_old_gemsets' finished with 0
step> 'migrate_defaults' started
step< 'migrate_defaults' finished with 0
step> 'record_ruby_configs' started
step< 'record_ruby_configs' finished with 0
step> 'update_gemsets_install_rvm' started
    Installing rvm gem in 1 gemsets __rvm_rm_rf already gone: /usr/local/rvm/tmp/2909*
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.0.0-p247/bin' is not available,
         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.0.0-p247'.
Running /usr/local/rvm/hooks/after_use_maglev
ERROR:  While executing gem ... (Gem::Exception)
    Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
__rvm_rm_rf already gone: /usr/local/rvm/tmp/2909*

step< 'update_gemsets_install_rvm' finished with 0
step> 'configure_autolibs' started
step< 'configure_autolibs' finished with 0
step> 'cleanup_tmp_files' started
step< 'cleanup_tmp_files' finished with 0
step> 'record_installation_time' started
step< 'record_installation_time' finished with 0
step> 'setup_rvm_path_permissions_root' started
step< 'setup_rvm_path_permissions_root' finished with 0
step> 'setup_rvm_path_permissions_check_group' started
step< 'setup_rvm_path_permissions_check_group' finished with 0
step> 'setup_rvm_path_permissions_check_dirs' started
    Found 103 directories with mode different then '775', use `--debug` to see the list, prefix the command with 'rvmsudo' to fix it, if the situation persist report a bug.
        /usr/local/rvm/scripts/extras/completion.zsh
        /usr/local/rvm/scripts/zsh
        /usr/local/rvm/scripts/zsh/Completion
        /usr/local/rvm/src/rvm/bin
        /usr/local/rvm/src/rvm/binscripts
        /usr/local/rvm/src/rvm/config
        /usr/local/rvm/src/rvm/config/solaris
        /usr/local/rvm/src/rvm/contrib
        /usr/local/rvm/src/rvm/contrib/hudson
        /usr/local/rvm/src/rvm/examples
        /usr/local/rvm/src/rvm/gemsets
        /usr/local/rvm/src/rvm/gemsets/jruby
        /usr/local/rvm/src/rvm/gemsets/ruby
        /usr/local/rvm/src/rvm/gemsets/ruby/1.8.5
        /usr/local/rvm/src/rvm/help
        /usr/local/rvm/src/rvm/help/rvmrc
        /usr/local/rvm/src/rvm/hooks
        /usr/local/rvm/src/rvm/lib
        /usr/local/rvm/src/rvm/lib/rvm
        /usr/local/rvm/src/rvm/man
        /usr/local/rvm/src/rvm/man/man1
        /usr/local/rvm/src/rvm/patches
        /usr/local/rvm/src/rvm/patches/goruby
        /usr/local/rvm/src/rvm/patches/jruby
        /usr/local/rvm/src/rvm/patches/libxslt-1.1.26
        /usr/local/rvm/src/rvm/patches/readline-5.2
        /usr/local/rvm/src/rvm/patches/readline-6.2
        /usr/local/rvm/src/rvm/patches/ree
        /usr/local/rvm/src/rvm/patches/ree/1.8.6
        /usr/local/rvm/src/rvm/patches/ree/1.8.7
        /usr/local/rvm/src/rvm/patches/ree/1.8.7/2010.02
        /usr/local/rvm/src/rvm/patches/ruby
        /usr/local/rvm/src/rvm/patches/ruby/1.8.4
        /usr/local/rvm/src/rvm/patches/ruby/1.8.5
        /usr/local/rvm/src/rvm/patches/ruby/1.8.6
        /usr/local/rvm/src/rvm/patches/ruby/1.8.7
        /usr/local/rvm/src/rvm/patches/ruby/1.8.7/p72
        /usr/local/rvm/src/rvm/patches/ruby/1.9.1
        /usr/local/rvm/src/rvm/patches/ruby/1.9.1/p431
        /usr/local/rvm/src/rvm/patches/ruby/1.9.2
        /usr/local/rvm/src/rvm/patches/ruby/1.9.2/p180
        /usr/local/rvm/src/rvm/patches/ruby/1.9.2/p290
        /usr/local/rvm/src/rvm/patches/ruby/1.9.3
        /usr/local/rvm/src/rvm/patches/ruby/1.9.3/p0
        /usr/local/rvm/src/rvm/patches/ruby/1.9.3/p125
        /usr/local/rvm/src/rvm/patches/ruby/1.9.3/p194
        /usr/local/rvm/src/rvm/patches/ruby/1.9.3/p286
        /usr/local/rvm/src/rvm/patches/ruby/1.9.3/p327
        /usr/local/rvm/src/rvm/patches/ruby/1.9.3/p362
        /usr/local/rvm/src/rvm/patches/ruby/1.9.3/p374
        /usr/local/rvm/src/rvm/patches/ruby/1.9.3/p385
        /usr/local/rvm/src/rvm/patches/ruby/1.9.3/p429
        /usr/local/rvm/src/rvm/patches/ruby/1.9.3/preview1
        /usr/local/rvm/src/rvm/patches/ruby/2.0.0
        /usr/local/rvm/src/rvm/patches/tcs
        /usr/local/rvm/src/rvm/patchsets
        /usr/local/rvm/src/rvm/patchsets/ree
        /usr/local/rvm/src/rvm/patchsets/ree/1.8.6
        /usr/local/rvm/src/rvm/patchsets/ree/1.8.7
        /usr/local/rvm/src/rvm/patchsets/ruby
        /usr/local/rvm/src/rvm/patchsets/ruby/1.8.4
        /usr/local/rvm/src/rvm/patchsets/ruby/1.8.5
        /usr/local/rvm/src/rvm/patchsets/ruby/1.8.6
        /usr/local/rvm/src/rvm/patchsets/ruby/1.8.7
        /usr/local/rvm/src/rvm/patchsets/ruby/1.8.7/head
        /usr/local/rvm/src/rvm/patchsets/ruby/1.8.7/p334
        /usr/local/rvm/src/rvm/patchsets/ruby/1.8.7/p352
        /usr/local/rvm/src/rvm/patchsets/ruby/1.8.7/p357
        /usr/local/rvm/src/rvm/patchsets/ruby/1.8.7/p358
        /usr/local/rvm/src/rvm/patchsets/ruby/1.8.7/p370
        /usr/local/rvm/src/rvm/patchsets/ruby/1.8.7/p371
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.1
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.1/p431
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.2
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.2/p180
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.2/p290
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.2/p318
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.2/p320
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.3
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.3/head
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.3/p125
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.3/p194
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.3/p286
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.3/p327
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.3/p362
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.3/p374
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.3/p385
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.3/p392
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.3/p429
        /usr/local/rvm/src/rvm/patchsets/ruby/1.9.3/p448
        /usr/local/rvm/src/rvm/patchsets/ruby/2.0.0
        /usr/local/rvm/src/rvm/patchsets/ruby/2.0.0/p247
        /usr/local/rvm/src/rvm/rvm-test
        /usr/local/rvm/src/rvm/rvm-test-rvm1
        /usr/local/rvm/src/rvm/scripts
        /usr/local/rvm/src/rvm/scripts/extras
        /usr/local/rvm/src/rvm/scripts/extras/completion.zsh
        /usr/local/rvm/src/rvm/scripts/functions
        /usr/local/rvm/src/rvm/scripts/functions/hooks
        /usr/local/rvm/src/rvm/scripts/functions/manage
        /usr/local/rvm/src/rvm/scripts/functions/requirements
        /usr/local/rvm/src/rvm/scripts/zsh
        /usr/local/rvm/src/rvm/scripts/zsh/Completion
step< 'setup_rvm_path_permissions_check_dirs' finished with 0
step> 'setup_rvm_path_permissions_check_files' started
    Found 3 files with mode different then '664' or '775', use `--debug` to see the list, prefix the command with 'rvmsudo' to fix it, if the situation persist report a bug.
        /usr/local/rvm/gems/ruby-2.0.0-p247/.DS_Store
        /usr/local/rvm/scripts/extras/completion.zsh/_rvm
        /usr/local/rvm/scripts/zsh/Completion/_rvm
step< 'setup_rvm_path_permissions_check_files' finished with 0
step> 'print_install_footer' started
Upgrade of RVM in /usr/local/rvm/ is complete.
step< 'print_install_footer' finished with 0
step> 'display_thank_you' started

# Jack Symons,
#
#   Thank you for using RVM!
#   I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne

step< 'display_thank_you' finished with 0
step> 'display_notes' started
# In case of problems:
#      run and read: rvm notes
#         read docs: http://rvm.io/
#        talk to us: http://webchat.freenode.net/?channels=rvm (http://freenode.net/faq.shtml#plusr)
#   read cheatsheet: http://cheat.errtheblog.com/s/rvm
#  watch screencast: http://screencasts.org/episodes/how-to-use-rvm
# open a bug report: https://github.com/wayneeseguin/rvm/issues

Upgrade Notes:

/Users/JackSymons/.bash_profile:3:export PATH=/usr/local/bin:/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/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin

  * WARNING: Above files contains `PATH=` with no `$PATH` inside, this can break RVM,
    for details check https://github.com/wayneeseguin/rvm/issues/1351#issuecomment-10939525
    to avoid this warning append #PATH.

  * No new notes to display.

step< 'display_notes' finished with 0
RVM reloaded!
__rvm_rm_rf already gone: /usr/local/rvm/tmp/2000*
@mpapis
Copy link
Member

mpapis commented Oct 10, 2013

the message shows:

/Users/JackSymons/.bash_profile:3:export PATH=/usr/local/bin:/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/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin

this means you need to edit /Users/JackSymons/.bash_profile and change or remove line 3, you can automatically remove it with:

sed -i'' -e '3 d' /Users/JackSymons/.bash_profile

this should also fix the error you see when you run rvm after opening new shell tab/window

@ghost
Copy link
Author

ghost commented Oct 10, 2013

You're a hero - thanks mpapis!

@KeiEMB
Copy link

KeiEMB commented Apr 28, 2015

Hey mpapis,

Would you have any suggestions for this fix?

Keion-Embrys-MacBook-Pro:~ kyrozstorm$ rvm ruby 2.0.0-p645
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p392/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-1.9.3-p392'.

@pkuczynski pkuczynski added help and removed support labels Oct 7, 2016
@pkuczynski pkuczynski added this to the rvm-1.27.0-before milestone May 8, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants