rvm

uninitialized constant Bundler (NameError) with rails 3

╄→гoц情女王★ 提交于 2019-12-06 09:35:54
问题 When I try to run some rspec test cases I'm getting this error I'm using linux rails 3.0.0, ruby 1.9.2 (with RVM) config/boot.rb:8: uninitialized constant Bundler (NameError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' .. But when do a gem list , it shows both builder (2.1.2) bundler (1.0.10) so what can be the problem? 回答1: Just update your bundler, in latest version

How to upgrade ruby version of ruby on rails app using rvm

為{幸葍}努か 提交于 2019-12-06 09:26:27
问题 How do I safely upgrade my ruby on rails app to use a new ruby version, using rvm? 回答1: Suppose your app is my_app and you are using ruby version a.b.c and want to go to ruby version x.y.z. Step 0 Before starting, make sure you have the up to date version of rvm rvm get stable rvm reload Step 1 First if you do not have a gemset for your current ruby version create one and make it the default. This gives you an easy way to go back if your upgrade breaks your tests. If you do not want to do

Cron + whenever not working with RVM

女生的网名这么多〃 提交于 2019-12-06 09:17:08
问题 I am using RVM environment. RUby version : 2.1.2 rails : 4.1.1 schedule.rb : every 1.minute do runner "note.send_mail" end I used whenever --update-crontab to update the cron tab. when I check the jobs using crontab -l it shows up as below with no proper time set up. and the cron job does not work. * * * * * /bin/bash -l -c 'cd /Desktop/folder1/blog2 && bin/rails runner -e production '\''note.send_mail'\''' Can some one help me out fix this. Thanks! 回答1: Go to your ~/.rvmrc file and add the

Error when installing Ruby 1.9.3 on Mac OS X Lion

旧巷老猫 提交于 2019-12-06 09:03:51
问题 I'm trying to install Ruby 1.9.3 and Rails on MAC OS X Lion. (My Xcode is version 4.3) (I've installed Rails 3.2.2) No matter if I use: rvm install 1.9.3 --with-gcc=clang or: rvm install 1.9.3 My terminal shows: Error running 'make ', please read /Users/AlexHo/.rvm/log/ruby-1.9.3-p125/make.log There has been an error while running make. Halting the installation. Has anyone encountered the same situation? AlexHo@Nien-Yi-Hos-MacBook:~$ rvm install 1.9.3 Fetching yaml-0.1.4.tar.gz to /Users

Error running jekyll locally (rvm gemset issue)

﹥>﹥吖頭↗ 提交于 2019-12-06 08:31:20
I installed ruby 1.9.3 thru RVM, and now want to get the rekyll gem so that I can test my blog locally. When I gem install jekyll it intalls ok, but when i try to run jekyll --server i get an error: /Users/matt/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find jekyll (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError) from /Users/matt/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' from /Users/matt/.rvm/rubies/ruby-1.9.3

capistrano error msg: Please install the pg adapter: `gem install activerecord-pg-adapter` (cannot load such file --

风格不统一 提交于 2019-12-06 08:11:50
I am using capistrano and get this error message: Please install the pg adapter: `gem install activerecord-pg-adapter` (cannot load such file -- active_record/connection_adapters/pg_adapter) I have removed the gem 'pg' from my Gemfile and bundle install d . I don't see the pg gem in my Gemfile.lock. I have also changed my production db to a sqlite3 adapter. Why is Rails 3.2 / Capistrano / Bundler asking for this? I'm not using it and not in Gemfile.lock and how do I resolve it? I am using ubuntu 12.04 on server that this is happening on. thx in advance Also, when I run what it tells me to run,

RVM + Ruby 1.9.2 + Rmagick + Lion = System Works, RVM Doesn't

☆樱花仙子☆ 提交于 2019-12-06 07:53:32
问题 I've installed Ruby 1.9.2 through RVM on a fresh install of OS X Lion. I have installed ghostscript and imagemagick through homebrew, and when running gem install rmagick using RVM, it fails. When using gem install rmagick on the system install of ruby, it works just fine. This is the error that is produced: ─wedtm@WedHQ ~/.rvm/gems/ruby-1.9.2-p290/cache ‹ruby-1.8.7› ╰─$ gem install rmagick 1 ↵ Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR:

Why do I get a Readline error when trying to start rails console?

﹥>﹥吖頭↗ 提交于 2019-12-06 07:25:38
问题 UPDATE: I probably messed up my system while trying solutions found somewhere else. I started from scratch and Ruby 1.9.3 installed without a hitch. Now to try to get ree-1.8.7 to play nice alongside... I'm trying to install Ruby 1.9.3 using RVM on Kubuntu (11.10 I believe). I've been having plenty of issues with Readline so far, but found the answer to all but this one. I installed Ruby 1.9.3 this way: rvm install 1.9.3 # Install of ruby-1.9.3-p0 - #complete cd ~/.rvm/src/ruby-1.9.3-p0/ext

setting up an EC2 server with rvm via scripting

≡放荡痞女 提交于 2019-12-06 07:21:33
I'm looking for a way to install rvm, install a specific ruby version (using rvm) and set this installed ruby version as default. Before I can install rvm I have to install gcc and some other very basic software packages. What I've tried so far: 1) Using net/ssh I have to simulate a pseudo tty to be able to sudo some commands and up to now, I could not figure out, how to tell a success full command completion from a not success full one. after installing rvm, I've stumbled over problems using rvm ("rvm is not a function", error messages, leading to not being able to set a default ruby version)

Missing required gems when execute cron created by whenever gem in production environment

戏子无情 提交于 2019-12-06 07:19:56
I've ruby on rails application running in production, this apps have STOCK model and it should be updated every 1 minute. For updating this model i create simple rake task db:populate:stocks , when it contain only two operation : truncate the STOCK model fill STOCK model with latest data fetch from webservice this rake task should be execute every 1 minute, for this purpose i use whenever gem . Here my schedule.rb : env :PATH, ENV['PATH'] set :job_template, nil set :output, {:standard => '/home/admin/shared/log/cron.log', :error => '/home/admin/shared/log/cron-error.log'} job_type :rake, "cd