rvm

Why does my delayed_job fail without RVM?

随声附和 提交于 2019-12-10 18:37:53
问题 I have a delayed_job installed, and I start the daemon to run the jobs with this Ruby script: require 'rubygems' require 'daemon_spawn' $: << '.' RAILS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) class DelayedJobWorker < DaemonSpawn::Base def start(args) ENV['RAILS_ENV'] ||= args.first || 'development' Dir.chdir RAILS_ROOT require File.join('config', 'environment') Delayed::Worker.new.start end def stop system("kill `cat #{RAILS_ROOT}/tmp/pids/delayed_job.pid`") end end

RVM keeps adding a directory to my PATH and then throws a warning that PATH isn't set up correctly

人盡茶涼 提交于 2019-12-10 18:34:08
问题 I know there's a lot of other questions out there addressing this issue, but I haven't been able to find anything solution that works for me, so I'm posting in case I've missed something. Using the command-line, when I cd into a Rails site directory, RVM changes my path by adding "Users/username/bin" to the front of the PATH variable and then it throws a warning about how PATH is not set up correctly because because the ruby gems version isn't in first place in PATH. Here's my $PATH output

Rails new gives “Could not find proper version of railties (4.2.5.1) in any of the sources” error

主宰稳场 提交于 2019-12-10 18:26:10
问题 I am trying to use Rails 5.0.0.rc1 with Ruby 2.3.1. However, if I try to create a new project within my "programming" directory, I get this:  ➜ ~/Documents/Programming rails new foo Could not find proper version of railties (4.2.5.1) in any of the sources Run `bundle install` to install missing gems. If I do a gem list, the only rails version I have installed in 5.0.0.rc1. What is interesting is I get the same error when I do rails -v, but do not when I do it from my home directory:  ➜ ~

rvm system-wide install: Warning! PATH is not properly set up

自闭症网瘾萝莉.ら 提交于 2019-12-10 18:25:22
问题 I have the multi-user version of RVM installed in /usr/local/rvm/bin on Ubuntu 12.10. When I upgraded Ruby from 1.9.3 to 2.0.0 this seems to have caused the following error message to pop up whenever I execute rvm version or similar commands: $ rvm version Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.0.0-p247/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your

Error running make when installing Ruby 1.8.7-p302 via RVM on Mac OS 10.5.8

独自空忆成欢 提交于 2019-12-10 17:52:28
问题 Running "rvm install 1.8.7-p302" provides the following feedback: rich-macbook:~ rich$ rvm install 1.8.7-p302 Installing Ruby from source to: /Users/rich/.rvm/rubies/ruby-1.8.7-p302, this may take a while depending on your cpu(s)... ruby-1.8.7-p302 - #fetching ruby-1.8.7-p302 - #extracted to /Users/rich/.rvm/src/ruby-1.8.7-p302 (already extracted) Applying patch 'stdout-rouge-fix' (located at /Users/rich/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch) ERROR: Error running 'patch -F 25 -p1 -N

RVM reports Gemfile ruby as not installed

笑着哭i 提交于 2019-12-10 17:22:22
问题 In my Gemfile, I have specified: ruby '1.9.3', engine: 'jruby', engine_version: '1.7.9' But entering my Rails project directory makes rvm throw up this error: RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too, you can ignore these warnings with 'rvm rvmrc warning ignore /home/petey/rails/kotoba/Gemfile'. To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'. ruby-1.9.3,engine:jruby,engine_version:1.7.9 is not installed. To install do:

RVM error when installing gems

℡╲_俬逩灬. 提交于 2019-12-10 17:15:49
问题 I get this RVM error when I install rubygems. /Users/yannick/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard.rb:38: [BUG] Bus Error ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0] -- control frame ---------- c:0019 p:---- s:0074 b:0074 l:000073 d:000073 CFUNC :callcc c:0018 p:0080 s:0071 b:0071 l:000a40 d:000a40 TOP /Users/yannick/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard.rb:38 c:0017 p:---- s:0068 b:0068 l:000067 d:000067 FINISH c:0016 p:---- s:0066 b:0066 l

Ruby On Rails libyaml

谁说胖子不能爱 提交于 2019-12-10 17:12:03
问题 I'm running rails version 3.2.8 and ruby version 1.9.3-p286 on Linux user1@company.com [~/rails_apps/myapp]# rails -v Rails 3.2.8 user1@company.com [~/rails_apps/myapp]# ruby -v ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux] user1@company.com [~/rails_apps/myapp]# I can generate a migration but I cannot run it. I keep getting the following error message user1@company.com [~/rails_apps/myapp]# rake db:migrate /home3/user1/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/yaml.rb:56:in `

Why am I not able to install Ruby 1.9.2 on Mac OSX Lion? [closed]

吃可爱长大的小学妹 提交于 2019-12-10 17:10:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I am trying to install Ruby 1.9.2 on a brand new MacBook Air with OSX Lion (10.7.2) and I keep getting an error message during the installation process. I'm new to Ruby and starting out with Ruby on Rails 3 Tutorial, so I downloaded RVM and then ran the command "$ rvm install 1.9.2." and this is what happened:

how to change ruby version in Pry

↘锁芯ラ 提交于 2019-12-10 16:41:34
问题 My command line ruby is 1.9.2 thanks to RVM, yet when I launch pry (which point to a 1.9.2 gem) it uses ruby 1.8.7 Do you know where is the ruby version pry uses specified ? macflashy:~ $rvm info ruby: interpreter: "ruby" version: "1.9.2p290" date: "2011-07-09" platform: "x86_64-darwin11.1.0" patchlevel: "2011-07-09 revision 32553" full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]" homes: gem: "/Users/nrolland/.rvm/gems/ruby-1.9.2-p290" ruby: "/Users/nrolland/