ruby-2.0

Uninstalling all gems Ruby 2.0.0

拥有回忆 提交于 2019-11-26 18:51:35
问题 It seems that ruby 2.0.0 has added "default" gems to the mix and makes them non removable by gem uninstall. How can you remove all non default gems? 回答1: I used this one line script. for i in `gem list --no-versions`; do gem uninstall -aIx $i; done It ignores default gem errors and just proceeds. Simple and self-evident. 回答2: First, go to the gems directory Like ../ruby/2.0.0-p195/lib/ruby/gems/2.0.0/specifications You will find a directory named default , which including all the default gems

Getting “Warning! PATH is not properly set up” when doing rvm use 2.0.0 --default

佐手、 提交于 2019-11-26 17:54:41
问题 Above doesn't work first time, works 2nd time. Try to set ruby version to 2.0.0 for any new shell windows. Doing $ rvm use 2.0.0 --default gives Warning! PATH is not properly set up, '/home/durrantm/.rvm/gems/ruby-1.9.3-p125/ 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 --au to-dotfiles', to fix temporarily in this shell session run: 'rvm use ruby-1.9.3

Error “…cannot load such file — mysql2/2.0/mysql2 (LoadError)”. On Windows XP with Ruby 2.0.0

ε祈祈猫儿з 提交于 2019-11-26 17:48:26
问题 The command rails server throws this error. C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/mysql2.rb:2:in `require': cannot load such file -- mysql2/2.0/mysql2 (LoadError) I use Ruby 2.0.0 from RubyInstaller on Windows XP box. I figured out what is the problem but I don't know how to solve it. The problem is that there is no any 2.0/ directory in the mysql2-0.3.11-x86-mingw32 gem. This is the gem that rails installs as its dependency from Gemfile : GEM remote: https:

-bash: __git_ps1: command not found

ⅰ亾dé卋堺 提交于 2019-11-26 15:31:03
问题 I tried to install Ruby 2.0. My command line urped and now looks like the following: -bash: __git_ps1: command not found [11:58:28][whatever@whatever ~]$ I have not a clue how to get rid of the __git_ps1 command not found error. I've searched my .bash_profile and my .bashrc to see if it's trying to set a variable or something and am not seeing anything. The only place I can find git_ps1 mentioned is in ~/.dotfiles/.bash_prompt. I replace the content of that file completely, logout and log

“bin/rails: No such file or directory” w/ Ruby 2 & Rails 4 on Heroku

ぐ巨炮叔叔 提交于 2019-11-26 08:12:30
问题 While following the Rails 4 Beta version of Michael Hartl\'s Ruby on Rails Tutorial , my app fails to start on Heroku, but runs fine locally with bundle exec rails server . Checking heroku logs -t reveals the following error: $ heroku[web.1]: State changed from crashed to starting $ heroku[web.1]: Starting process with command `bin/rails server -p 33847 -e $RAILS_ENV` $ app[web.1]: bash: bin/rails: No such file or directory $ heroku[web.1]: Process exited with status 127 $ heroku[web.1]: