rvm

Ruby on Rails - error when running cucumber: You have already activated activesupport 3.2.1, but your Gemfile requires activesupport 3.1.0.

我与影子孤独终老i 提交于 2019-12-21 03:21:33
问题 I know this question has been asked in one form or the another before, but I still can't get a working solution for this. I'm taking the saas course offered online and the code is directly cloned from https://github.com/saasbook/hw3_rottenpotatoes When I run cucumber from the command prompt Using the default profile... You have already activated activesupport 3.2.1, but your Gemfile requires activesupport 3.1.0. Using bundle exec may solve this. (Gem::LoadError) /Users/chemin/.rvm/gems/ruby-1

Ruby on Rails - error when running cucumber: You have already activated activesupport 3.2.1, but your Gemfile requires activesupport 3.1.0.

亡梦爱人 提交于 2019-12-21 03:21:28
问题 I know this question has been asked in one form or the another before, but I still can't get a working solution for this. I'm taking the saas course offered online and the code is directly cloned from https://github.com/saasbook/hw3_rottenpotatoes When I run cucumber from the command prompt Using the default profile... You have already activated activesupport 3.2.1, but your Gemfile requires activesupport 3.1.0. Using bundle exec may solve this. (Gem::LoadError) /Users/chemin/.rvm/gems/ruby-1

Installing mysql2 gem on Mac os x Lion

大兔子大兔子 提交于 2019-12-21 02:42:17
问题 The other day I updated to Mac OSX Lion. It broke my rails install as I had to re complie mysql. While I have got that working reinstalling the mysql2 gem has become problematic. I was perviously running leopard so I am going from 32 to 64 bit. ~/code/rails/london (master)$ gem install mysql2 -- --with-mysql-dir=/usr/local/mysql Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /Users/stewartmatheson/.rvm/rubies

Using RVM, but can't set current Ruby version (Ubuntu 11.10)

妖精的绣舞 提交于 2019-12-21 01:26:11
问题 I have recently installed RVM on a fresh install of Ubuntu 11.10 and can not work out how to start using a particular ruby version. I have installed Ruby 1.8.7 and 1.9.2, and they show up in the list fine: $ rvm list rvm rubies ruby-1.8.7-p352 [ i386 ] ruby-1.9.2-p290 [ i386 ] When I try to use the "use" command, everything seems fine: $ rvm use 1.9.2 Using /usr/share/ruby-rvm/gems/ruby-1.9.2-p290 Running /usr/share/ruby-rvm/hooks/after_use But then when I test the current ruby version, I get

How to re-sync Gemfile.lock on changes to Gemfile

我们两清 提交于 2019-12-20 17:19:08
问题 How to re-sync Gemfile.lock on changes to Gemfile. Assuming I have 3 gems (gem1, gem2, gem3) in the Gemfile. bundle install creates a Gemfile.lock file. If I remove gem3 and run bundle install , I would like Gemfile.lock to be re-generated and gem3 removed from the rvm gemset. But it doesn't, how should I re-sync without dropping the gemset. 回答1: To bring the Gemfile.lock in line with Gemfile edits, run bundle check . To bring the Gemfile.lock in line with both the Gemfile edits AND the

How to re-sync Gemfile.lock on changes to Gemfile

我的未来我决定 提交于 2019-12-20 17:18:07
问题 How to re-sync Gemfile.lock on changes to Gemfile. Assuming I have 3 gems (gem1, gem2, gem3) in the Gemfile. bundle install creates a Gemfile.lock file. If I remove gem3 and run bundle install , I would like Gemfile.lock to be re-generated and gem3 removed from the rvm gemset. But it doesn't, how should I re-sync without dropping the gemset. 回答1: To bring the Gemfile.lock in line with Gemfile edits, run bundle check . To bring the Gemfile.lock in line with both the Gemfile edits AND the

Rubymine Not Locating Gems Specified by BUNDLE_PATH

ⅰ亾dé卋堺 提交于 2019-12-20 12:34:30
问题 I am using RubyMine IDE with RVM for Ruby version management and bundler install --path vendor/bundle to keep my gems local. However, RubyMine doesn't seem to be reading my .bundle/config file which specifies where my gems are located with the BUNDLE_PATH property: BUNDLE_PATH: vendor/bundle BUNDLE_DISABLE_SHARED_GEMS: '1' I have found some sources which indicate that RubyMine should support this, but can't seem to find any explanation of exactly how it works or how to fix it properly. This

Mac OS X Lion Xcode problems using RVM

六月ゝ 毕业季﹏ 提交于 2019-12-20 10:44:26
问题 I had Xcode 4.1 preview 5 working fine but decided to upgrade to the final xcode 4.1 thru the App store. I uninstalled Xcode first... sudo /Developer/Library/uninstall-devtools –mode=all Then installed Xcode thru the app store and rebooted. I also removed RVM completely but... now whenever I try and install a version of Ruby it fails. In the error file i get this: [2011-07-27 18:29:25] ./configure --prefix="/Users/holden/.rvm/usr" checking for a BSD-compatible install... /usr/bin/install -c

Problem installing RVM

烂漫一生 提交于 2019-12-20 10:39:51
问题 I have executed the commands as prescribed in the instructions at the rvm website but things don't seem to work.. Fetching the code from the git repository runs smoothly but when I try to use rvm notes Error: /usr/local/bin/rvm: line 73: /home/cody/.rvm/scripts/rvm: No such file or directory flashes in multiple lines and doesn't stop till I hit ctrl+C.. I am running Ubuntu 8.04 and currently I am running ruby 1.9.2.. Sorry, if I am missing out any necessary information. Thanks in advance. 回答1

bash: /home/XXX/.rvm/scripts/rvm: No such file or directory

微笑、不失礼 提交于 2019-12-20 10:29:47
问题 I just walk-through with the installation of Ruby on Rails on ubuntu using RVM. First I have logged me as root user. Then I started with the following commands. \curl -sSL https://get.rvm.io | bash -s stable --rails It has been installed without any error. source ~/.rvm/scripts/rvm When I run this command. It showing the error as bash: /home/XXX/.rvm/scripts/rvm: No such file or directory I added the [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" command in my .bashr file.