rvm

Your Ruby version is 1.9.3, but your Gemfile specified 2.1.0

社会主义新天地 提交于 2019-11-30 18:28:03
问题 When I run rails server I get the error. There is some problem loading the gemsets $rvm list rvm rubies ruby-1.9.3-p484 [ i686 ] ruby-2.0.0-p353 [ i686 ] =* ruby-2.1.0 [ i686 ] # => - current # =* - current && default # * - default $ruby -v ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux] $rails -v Your Ruby version is 1.9.3, but your Gemfile specified 2.1.0 $bundle show rails /home/prasad/.rvm/gems/ruby-2.1.0/gems/rails-4.0.1 $bundle exec rails s Your Ruby version is 1.9.3, but your

How can I change Ruby to version 1.9.3 (again) with RVM?

十年热恋 提交于 2019-11-30 18:17:20
问题 I used to work with Ruby version 1.9.3 on Ubuntu and made an update that probably screwed my bash profile and I need help to turn it back rather than using version 1.8.7. Right now rails s opens the server with Ruby 1.8.7 and I get errors because of the newer syntax I use in my app. .bash_profile : cat ~/.bash_profile ### Added by the Heroku Toolbelt export PATH="/usr/local/heroku/bin:$PATH" [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session

Why is bundler not installing gems stored in get repo properly?

混江龙づ霸主 提交于 2019-11-30 18:14:33
问题 Bundler version 1.0.0.beta.2 Rvm Info system: uname: "Linux dane-r1f-ubuntu 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686 GNU/Linux" shell: "bash" version: "4.1.5(1)-release" rvm: type: "rvm is a function" version: "rvm 0.1.31 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]" ruby: interpreter: "ruby" version: "1.9.2dev" date: "2010-05-31" platform: "i686-linux" patchlevel: "2010-05-31 revision 28117" full_version: "ruby 1.9.2dev (2010-05-31

Why is my Ruby Git script hook run with the wrong $PATH?

六眼飞鱼酱① 提交于 2019-11-30 17:46:23
问题 I'm using RVM. I wrote a Git pre-commit hook for a project: #!/usr/bin/env ruby puts RUBY_VERSION puts `echo $PATH` exit(1) which outputs this when run by Git: $ git ci -m 'foo' 1.8.7 /usr/libexec/git-core:/usr/bin:/usr/local/heroku/bin:/Users/mgoerlich/.rvm/gems/ruby-2.0.0-p195@global/bin:/Users/mgoerlich/.rvm/rubies/ruby-2.0.0-p195/bin:/Users/mgoerlich/.rvm/bin:/Users/mgoerlich/adt-bundle-mac-x86_64-20130219/sdk/platform-tools:/Users/mgoerlich/adt-bundle-mac-x86_64-20130219/sdk/tools:/usr

RVM error while running make install. Error comes while installing power_assert gem

左心房为你撑大大i 提交于 2019-11-30 16:39:59
问题 Im trying to install ruby 2.2.2 in my arch machine. When I run rvm install, I get the following error. Tried several times. Even removed rvm and re-installed. Still the same issue. ○ rvm install 2.2.2 Searching for binary rubies, this might take some time. No binary rubies available for: arch/libc-2.21/x86_64/ruby-2.2.2. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for arch. Requirements installation successful.

Can I delete some folders of nokogiri and capybara-webkit inside of my rvm gemset?

爷,独闯天下 提交于 2019-11-30 16:17:09
问题 I was using a disk analyzer and I noticed in my .rvm folder two gems, nokogiri and capybara-webkit , bigger than the usual: Checking inside of them I found that for nokogiri there is a temp folder and for capybara-webkit a source folder. My question is: Is it safe to delete these folders?(Yeah, I'm a greedy disk space saver) and why nokogiri is creating that temporary folder? Because I have another gemset (with a lower version of ruby and nokogiri) and there isn't creating that folder. 回答1:

Can I delete some folders of nokogiri and capybara-webkit inside of my rvm gemset?

99封情书 提交于 2019-11-30 15:55:47
I was using a disk analyzer and I noticed in my .rvm folder two gems, nokogiri and capybara-webkit , bigger than the usual: Checking inside of them I found that for nokogiri there is a temp folder and for capybara-webkit a source folder. My question is: Is it safe to delete these folders?(Yeah, I'm a greedy disk space saver) and why nokogiri is creating that temporary folder? Because I have another gemset (with a lower version of ruby and nokogiri) and there isn't creating that folder. Yes, you can remove the tmp directory. If you don't have a new-enough version of libxml2 or libxslt nokogiri

How to remove XCode 4.2 and install 4.1 to develop Ruby / Rails on OSX Lion?

我怕爱的太早我们不能终老 提交于 2019-11-30 15:54:32
问题 I develop Rails apps using RVM (ruby version manager). I had to download XCode, in the app store I got only version 4.2. Now RVM says that it can't build rubies properly with this XCode, so I followed this tutorial: http://www.frederico-araujo.com/2011/07/30/installing-rails-on-os-x-lion-with-homebrew-rvm-and-mysql/ I downloaded the XCode version from the link that is shown when you type rvm requirements in the console. (https://developer.apple.com/downloads/download.action?path=Developer

How to remove XCode 4.2 and install 4.1 to develop Ruby / Rails on OSX Lion?

梦想的初衷 提交于 2019-11-30 15:50:34
I develop Rails apps using RVM (ruby version manager). I had to download XCode, in the app store I got only version 4.2. Now RVM says that it can't build rubies properly with this XCode, so I followed this tutorial: http://www.frederico-araujo.com/2011/07/30/installing-rails-on-os-x-lion-with-homebrew-rvm-and-mysql/ I downloaded the XCode version from the link that is shown when you type rvm requirements in the console. (https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg) Now, there is a 3.09 GB .dmg with an installXCodeLion

Can't get mysql2 gem to work with MAMP2 and RVM on Lion, Rails3 app

送分小仙女□ 提交于 2019-11-30 15:28:40
问题 I am using MAMP2, rvm on OS X Lion and there is no way I can get mysql2 gem to work with my Rails app. I've followed this blog post http://blog.mirotin.net/35/mamp-1-9-5-mysql-5-5-9-and-ruby-mysql2 and this one http://www.pa-ket.com/blog/show/12-osx-ruby-mysql2-gem-python-mysqldb-using-mamp These were the steps: $ cd /tmp $ mv /Users/yourname/Desktop/mysql-5.5.9.tar.gz . $ tar xf mysql-5.5.9.tar.gz $ cd mysql-5.5.9 $ brew install cmake $ cmake . -DMYSQL_UNIX_ADDR=/Applications/MAMP/tmp/mysql