You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't remove ruby, reinstall ruby, start or test specific rails project using ruby 2.1.0.
How to remove & install new ruby?
Error's Examples:
1.
$ rails s
/Users/user/.rvm/gems/ruby-2.1.0/bin/rails:23:in `load': cannot load such file -- /Users/user/.rvm/gems/ruby-2.1.0/gems/railties-4.1.1/bin/rails (LoadError) from /Users/user/.rvm/gems/ruby-2.1.0/bin/rails:23:in `<main>' from /Users/user/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval' from /Users/user/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'
$ rvm remove ruby-2.1.0
ruby-2.1.0 - #removing src/ruby-2.1.0..
ruby-2.1.0 - #removing rubies/ruby-2.1.0......................................
Error running '__rvm_rm_rf /Users/user/.rvm/rubies/ruby-2.1.0',
showing last 15 lines of /Users/user/.rvm/log/1405545940_ruby-2.1.0/remove.rubies.log
rm: /Users/user/.rvm/rubies/ruby-2.1.0/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.2.1/test: Permission denied
rm: /Users/user/.rvm/rubies/ruby-2.1.0/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.2.1/test_all: Permission denied
rm: /Users/user/.rvm/rubies/ruby-2.1.0/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.2.1/Y_U_NO_GEMSPEC.md: Permission denied
rm: /Users/user/.rvm/rubies/ruby-2.1.0/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.2.1: Directory not empty
rm: /Users/user/.rvm/rubies/ruby-2.1.0/lib/ruby/gems/2.1.0/gems: Directory not empty
rm: /Users/user/.rvm/rubies/ruby-2.1.0/lib/ruby/gems/2.1.0: Directory not empty
rm: /Users/user/.rvm/rubies/ruby-2.1.0/lib/ruby/gems: Directory not empty
rm: /Users/user/.rvm/rubies/ruby-2.1.0/lib/ruby: Directory not empty
rm: /Users/user/.rvm/rubies/ruby-2.1.0/lib: Directory not empty
rm: /Users/user/.rvm/rubies/ruby-2.1.0: Directory not empty
++ typeset ret=1
++ rvm_debug '__rvm_rm_rf error removing target dir '\''/Users/user/.rvm/rubies/ruby-2.1.0'\''.'
++ ((0))
++ return 0
++ return 1
Removing nokogiri would affect other gems
Other attempts to fix: Unknown ruby string (do not know how to handle): ruby-2.1.0.
The text was updated successfully, but these errors were encountered:
siwka
changed the title
Can't remove ruby, want to reinstall because cannot run app: railties-4.1.1/bin/rails (LoadError)
Can't remove ruby, want to reinstall particular version because cannot run, test app, errors
Jul 17, 2014
the 1st error can be caused by installation of gems broken in half,
the 2nd error is caused by using sudo/rvmsudo/root with gems, use rvm fix-permissions to fix it
as for the last error Unknown ruby string (do not know how to handle): ruby-2.1.0. - this could be possibly fixed, but without seeing what caused it I can not be sure.
I can't remove ruby, reinstall ruby, start or test specific rails project using ruby 2.1.0.
How to remove & install new ruby?
Error's Examples:
1.
Removing nokogiri would affect other gems
Other attempts to fix:
Unknown ruby string (do not know how to handle): ruby-2.1.0.
The text was updated successfully, but these errors were encountered: