rvm

Capistrano fails to deploy to remote server

主宰稳场 提交于 2019-12-06 07:16:27
问题 SOLUTION The solution was to add the following to the top of production.rb: $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path. require "rvm/capistrano" # Load RVM's capistrano plugin. set :rvm_ruby_string, '1.9.2@rails31dataserver' # Or whatever env you want it to run in. set :rvm_bin_path, '/usr/local/rvm/bin' The part I was missing before was set :rvm_bin_path, '/usr/local/rvm/bin' as I've never used that configuration setting in a Capistrano

RVM install issue - Unable to execute port (autoconf)

风格不统一 提交于 2019-12-06 06:54:48
问题 I'm trying to install Jekyll on OSX mountain lion. First of all I wanted to install RVM and then the latest ruby. However, the RVM install is failing and I can't solve the problem. Any help appreciated Here is what I did: Installed OSX Command Line Tools Attempted to install RVM ( \curl -L https://get.rvm.io | bash -s stable --ruby ) but it failed with an error in the log "Error: Please install Xcode and/or run xcode-select to specify its location." Installed XCode to see if that would help

Ruby: RVM Install Error “Could not source…”

◇◆丶佛笑我妖孽 提交于 2019-12-06 05:30:04
问题 A reinstall of RVM produced the following errors when done: WARNING: Could not source '/Users/developer/.rvm/scripts/base' as file does not exist. RVM will likely not work as expected. WARNING: Could not source '/Users/developer/.rvm/scripts/version' as file does not exist. RVM will likely not work as expected. WARNING: Could not source '/Users/developer/.rvm/scripts/selector' as file does not exist. RVM will likely not work as expected. WARNING: Could not source '/Users/developer/.rvm

Whenever gem won't update crontab tasks

女生的网名这么多〃 提交于 2019-12-06 05:29:18
问题 I have been using the whenever gem on my 2+ year old slice at Slicehost. I can't however do the same on my new slice. Main differences is that I'm now running RVM on both my MBP and the slice. I am also running Rails 3. I've got Rubygems v 1.5.0 and latest versions of RVM , Ruby 1.9.2p136, Capistrano and about every other package out there. I have tried a million things, read all the docs and as of now I'm using the whenever gem version 0.6.2. I have also looked at all questions on related

Library not loaded error — wrong ruby

怎甘沉沦 提交于 2019-12-06 04:59:28
问题 I'm using RVM with Ruby 1.9.3 p448, but when I try to run my rails server, I get this error (plus some other stuff) 9): Library not loaded: /Users/sashafklein/.rvm/rubies/ruby-1.9.3-p327/lib/libruby.1.9.1.dylib (LoadError) Referenced from: /Users/sashafklein/rails/<appname>/vendor/bundle/ruby/1.9.1/gems/posix-spawn-0.3.6/lib/posix_spawn_ext.bundle Reason: image not found - /Users/sashafklein/rails/<appname>/vendor/bundle/ruby/1.9.1/gems/posix-spawn-0.3.6/lib/posix_spawn_ext.bundle The weird

How do I get Sublime Text 2 to work with Ruby on Rails?

半城伤御伤魂 提交于 2019-12-06 04:32:13
I'm new to Ruby on Rails. Here’s what I’ve done so far: I’ve installed XCode, Homebrew, RVM, Ruby and Rails. Now how do I get Sublime Text 2 to work with Ruby on Rails? First thing you should do is install Package Control if you haven't already. This will make downloading packages and plugins way easier. Then you can look at some of the Rails specific packages to make your life easier when coding with Sublime Text. Sublime Text has native support for syntax coloring in .rb files, so you don't have to install anything for that. Dragging your project folder and dropping it on Sublime Text will

No binary rubies available for: osx/10.8/x86_64/ruby-1.9.2-p320

℡╲_俬逩灬. 提交于 2019-12-06 04:04:36
There's a two year old blog post here explaining how to fix the error 'you 'have to install development tools first' error that comes with Nokogiri, a problem that arises if you upgrade to Mountain Lion after having installed RVM. In the blog post he says you have to do rvm update head rvm --force install 1.9.2 gem install bundle ## in your rails app bundle Installing nokogiri (1.4.2) with native extensions ... rvm update head has now changed to rvm get head . However, after that I blindly did rvm --force install 1.9.2 and got this error message rvm --force install 1.9.2 Searching for binary

No binary rubies available for: osx/10.8/x86_64/ruby-1.9.2-p320

耗尽温柔 提交于 2019-12-06 04:02:46
There's a two year old blog post here explaining how to fix the error 'you 'have to install development tools first' error that comes with Nokogiri, a problem that arises if you upgrade to Mountain Lion after having installed RVM. In the blog post he says you have to do rvm update head rvm --force install 1.9.2 gem install bundle ## in your rails app bundle Installing nokogiri (1.4.2) with native extensions ... rvm update head has now changed to rvm get head . However, after that I blindly did rvm --force install 1.9.2 and got this error message rvm --force install 1.9.2 Searching for binary

Problems with heroku toolbelt

戏子无情 提交于 2019-12-06 02:13:21
问题 I'm absolute newbie in Ruby and Rails project, so I'm sorry if this is dumb question. I've installed heroku toolbelt using wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh . Also I tried gem install heroku . But when I type: MY_USER@home-PC:~$ heroku version <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError) from <internal:gem_prelude>:1:in `<compiled>' I've checked in google and people suggest that gem and current ruby are different versions

RVM installation missing $PATH

那年仲夏 提交于 2019-12-06 02:03:46
问题 When I attempted to reinstall the latest version of RVM, RVM gave me an error notice related to a missing or incorrect "$PATH" variable. Does anyone know (a) what this variable should be set to and (b) how to alter it? I've searched dozens of threads, but none appears to reference this problem exactly. Any help would be greatly appreciated. Thanks, Cody Codys-MacBook-Pro:demo_app Cody$ rvm get head && rvm reload ######################################################################## 100.0%