rvm

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

て烟熏妆下的殇ゞ 提交于 2019-12-03 04:39:09
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. Prakash Murthy 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 latest compatible gems, run bundle update . Related: This blogpost by viget has some good advice

Xcode - configure: error: no acceptable C compiler found in $PATH

╄→гoц情女王★ 提交于 2019-12-03 03:53:08
问题 rebuilding a mac from scratch. Installed xcode and rvm then trying to install rubies but they are all giving me: Error running ' ./configure --prefix=/Users/durrantm/.rvm/rubies/ruby-1.9.3-p125 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/durrantm/.rvm/usr ', please read /Users/durrantm/.rvm/log/ruby-1.9.3-p125/configure.log There has been an error while running configure. Halting the installation. Michaels-MacBook-Air:~ durrantm$ The log has: checking for gcc...

Installing Rails Path on Ubuntu with RVM

岁酱吖の 提交于 2019-12-03 03:42:11
问题 I'm a linux noob running Ubuntu 10.04 and trying to install rails. I first installed ruby and then RVM and then downloaded and installed rubygems and then installed rails. Rails only seems to respond if I have a 'sudo' in front of the command. If I write 'rails new test' in the terminal I get this: /usr/local/lib/site_ruby/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate' from

python: what's the difference between pythonbrew and virtualenv?

半腔热情 提交于 2019-12-03 03:32:43
问题 I am new to python and I am planning to learn django. I had a bit of experience with ruby (not rails) and I am familiar with RVM however I don't understand the difference between pythonbrew and virtualenv . I know pythonbrew is a mimic of RVM but I thought virtualenv is already doing what RVM does (or vice versa that pythonbrew is already doing what RVM does). Can someone please explain and perhaps provide some concrete examples/usages to help me understand it. Thanks very much! 回答1:

Ubuntu RVM Rails bash command not found

大憨熊 提交于 2019-12-03 03:28:06
I just installed ubuntu, and after that I wanted to install RVM with ruby and rails 3.1. Installations went fine but when I want to create a rails app it can't find the rails command. I know I can create an alias, but when rvm changes its gemset, the alias-path would be wrong right? This is my .bashrc file (/home/user/.bashrc): # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything [ -z "$PS1" ] && return # don't put duplicate lines in the history. See

RVM vs native installation of ruby

╄→尐↘猪︶ㄣ 提交于 2019-12-03 03:20:49
I was wondering if there is any downsides from using rvm in a production server. What should I prefer, rvm or native installation and why? Use RVM. Because it is more simple. You'll have all distributions in one place, all gems in one place, and you're using the same tool that you use in development. There are no performance issues either. Don't do it, err, maybe do it Simplicity is always rewarded. Rvm is a development tool. Since you will not be switching Ruby versions back and forth dynamically on a production server, it can do no good and could create arbitrary levels of pain and suffering

RVM Gemset - Bundler & Capistrano in Production

。_饼干妹妹 提交于 2019-12-03 03:15:53
问题 I'm deploying a rails app to a VPS with capistrano, bundler and rvm. Here is part of my deploy.rb $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) require "rvm/capistrano" require "bundler/capistrano" # Load RVM's capistrano plugin. set :rvm_type, :system set :rvm_ruby_string, '1.9.2@gemset_name' my .rvmrc rvm --create use 1.9.2@gemset_name When I logged into the server I noticed that the rvm gemset was created, however all the gems were installed in /shared/bundle/ruby/1.9.1/gems --not

Error installing any ruby version with RVM on OSX

女生的网名这么多〃 提交于 2019-12-03 03:11:49
问题 Guys I'm about to kill myself with this one! I had some problems with RVM installing multiple versions of Ruby, and following a thread on Stackoverflow I decided to remove it completely. After reinstalling RVM, I am unable to install any Ruby version at all. Mac OS X RVM 1.20.10 stable Homebrew 0.9.4 Here are some logs: rvm install 2.0.0-p0 or: rvm install 2.0.0-p195 --autolibs=enabled Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby

How to I undo the vendor/gems bundle install

五迷三道 提交于 2019-12-03 02:49:49
I ran bundle install vendor/gems and all the gems got saved to the gems directory as expected but when i delete them like rm -rf vendor/gems rails s Could not find rake-0.9.2.2 in any of the sources Run `bundle install` to install missing gems. I need to run bundle install again and all the gems install to the vendor/gems again. Is there a way to get this behavior to stop and just install as I used to using my .rvmrc file and not package the gems in the vendor/gems directory There is a hidden directory called .bundle in the root of your directory. Remove that, then run bundle again. 来源: https:

Removing Node.Js from Mountain Lion [duplicate]

纵饮孤独 提交于 2019-12-03 02:29:30
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X) I'm trying to remove Node.js from my system so I can reinstall it using the NVM version manager. I installed Node.js a while ago and according to node --version , I'm running v0.6.8 I've had a look around but most of the answers i've found are limited to Node being installed via a PKG file and their remedies don't work for me.. 回答1: