rvm

Capistrano fails to deploy to remote server

时间秒杀一切 提交于 2019-12-04 12:08:49
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 deployment before, and I've done a few. Oh well, all in a days work. Credit goes to tonyflint in the

rvm install 1.9.3 failing

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 11:36:41
问题 I tried reinstalling ruby, xcode, and a bunch of other things because I kept getting these strange C compiler errors. At some point all my rubies were uninstalled so I started back at the beginning... rvm get head && rvm reload rvm install 1.9.3 I get the following error: No binary rubies available for: downloads/ruby-1.9.3-p327. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing Ruby from source to: /Users/mgriffel/.rvm/rubies/ruby-1.9.3

Whenever gem won't update crontab tasks

删除回忆录丶 提交于 2019-12-04 10:43:08
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 topics on SO as well as Google. Here is the code in deploy.rb: namespace :deploy do ... desc "Update the

How to completely wipe rubygems along with rails etc

人盡茶涼 提交于 2019-12-04 10:23:01
Ok, so I decided I'd be cool and try to use Rails3 that's in beta. Then, things were getting hard to manage so I got rvm. I installed ruby 1.9.2-head in rvm and things were working, and then a computer restart later rails wouldn't start up. So I figured I'd just try running the system ruby and start rails in it. same error. Then, I uninstalled rails3 and got rails: no such file or directory type errors.. So now I'm royally screwed because rails2 is still installed but will not uninstall because of invisible dependencies, along with a lot of other random gems. How do I completely clear out all

“No available formula for gcc46” while installing Ruby 1.9.3 on OS X with RVM:

寵の児 提交于 2019-12-04 10:18:00
问题 I have Homebrew installed, I'm trying to install RVM with: rvm install 1.9.3-head and I get this error: Installing required packages:gcc46 Error running 'requirements_osx_brew_libs_install gcc46', please read /Users/mike/.rvm/log/1384918134_ruby-1.9.3-head/package_install_gcc46.log Requirements installation failed with status: 1 brew doctor says I'm ready to brew. In the log I see: Error: Download failed: ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-4.3.2.tar.bz2 回答1: Ruby 1.9.3+ supports

Can't install therubyracer in JRuby

耗尽温柔 提交于 2019-12-04 09:54:33
I've installed RVM and then Jruby, this the version that i get when i type: jruby -v: jruby 1.6.5.1 (ruby-1.8.7-p330) (2011-12-27 1bf37c2) (Java HotSpot(TM) Client VM 1.7.0_02) [linux-i386-java] The problem is that I can't install therubyracer gem, i get this when i try to install by jruby -S gem install therubyracer: /usr/local/rvm/rubies/jruby-1.6.5.1/bin/jruby extconf.rb WARNING: JRuby does not support native extensions or the `mkmf' library very we$ Check http://kenai.com/projects/jruby/pages/Home for alternatives. Checking for Python...Unable to build libv8: Python not found! *** extconf

RVM, Capistrano and bundler path issues

自作多情 提交于 2019-12-04 09:32:23
问题 i seem to have a discrepancy between production's gem path when I installed manually versus by bundler+capistrano. After rvm installing ruby 1.9.2 and creating a gemset "myapp", i did install bundler via gem install bundler. It was installed into the path: /usr/local/rvm/gems/ruby-1.9.2-p290@myapp /gems Bundler via Capistrano installed the remaining gems into: /usr/local/rvm/gems/ruby-1.9.2-p290@myapp/ruby/1.9.1 /gems Beginning of my deploy.rb file is: $:.unshift(File.expand_path('./lib', ENV

undefined symbol: SSLv2_method when trying to run Thin webserver

回眸只為那壹抹淺笑 提交于 2019-12-04 09:27:20
I've installed OpenSSL with rvm ( rvm pkg install openssl ) and then did rvm reinstall 1.9.3 --with-openssl-dir=$rvm_path/usr When I try to run the thin webserver, I get the following error: /home/ubuntu/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/x86_64-linux/openssl.so: undefined symbol: SSLv2_method - /home/ubuntu/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/x86_64-linux/openssl.so (LoadError) This is running on Ubuntu 12.04, and I've read that Ubuntu 12 builds OpenSSL without SSLv2 support. Yet, here it's referencing RVM's package -- does RVM do the same? Is there any known workaround for

Library not loaded error — wrong ruby

随声附和 提交于 2019-12-04 09:17:13
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 thing is, it's referencing ruby-1.9.3-p327, which isn't even one of my RVM installs. Should I delete

How to solve the “You need to add gem 'daemons' to your Gemfile if you wish to use it” error in production mode?

时光总嘲笑我的痴心妄想 提交于 2019-12-04 07:48:06
I am trying to properly use Capistrano and RVM in order to deploy my Ruby on Rails 3.2.2 application to the remote machine that is running Ubuntu 10.04 LTS. It seams that I solved my previous problem related to the " Rvm - Capistrano integration on Linux Ubuntu ". However, on deploying I get the following error related to the DelayedJob gem: ... * executing "cd /srv/www/<APP_NAME>/releases/20120314135318 && bundle install" servers: ["<DOMAIN>"] [<DOMAIN>] executing command [<DOMAIN>] rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'ruby-1.9.3-p125' -c 'cd /srv/www/<APP_NAME>/releases