rvm

Your Ruby version is 2.3.1, but your Gemfile specified 2.4.1 when running rails s

孤人 提交于 2019-12-11 02:34:52
问题 I am trying to upgrade from ruby 2.3.0 to 2.4.1. To do this, I did rvm use 2.4.1@my-project --create (I am already using 2.4.1 for another project). I changed the gemfile from ruby "2.3.0" to ruby "2.4.1" , and I ran bundle install. My gemfile.lock correctly changed. However, when trying to run rails s in console, I have the error: Your Ruby version is 2.3.1, but your Gemfile specified 2.4.1 This is not logical because when I am running which ruby I get the following answer : /.rvm/rubies

error while installing ruby 1.9.3 using rvm

我怕爱的太早我们不能终老 提交于 2019-12-11 01:57:58
问题 I am trying to install ruby using rvm. I get the following error on the below command - rvm install 1.9.3 Extracting rubygems-latest-1.8 ... ERROR: Error running 'gunzip < /usr/share/ruby-rvm/archives/rubygems-latest-1.8.tgz | tar xf - -C /usr/share/ruby-rvm/src', please read /usr/share/ruby-rvm/log/ruby-1.9.3-p194/rubygems.extract.log Installing rubygems for /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/bin/ruby ERROR: Error running 'GEM_PATH="/usr/share/ruby-rvm/gems/ruby-1.9.3-p194:/usr/share

Installing Ruby 2.0.0 using RVM with errors in configure

青春壹個敷衍的年華 提交于 2019-12-11 01:35:31
问题 I am currently running on Ruby 1.9.3p134 and trying to install Ruby 2.0.0 using RVM, however I keep running into the errors below. I am running on OSX 10.7.5: Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --prefix=/usr/local/rvm/rubies/ruby-2.0.0-p195 --with-opt-dir=/opt/sm/pkg/active --disable-install-doc --without-tcl --without-tk --enable-shared' please read /usr/local/rvm/log/ruby-2.0.0-p195/1369791751

Paperclip in Production with Unicorn: uninitialized constant Paperclip (NameError)

假如想象 提交于 2019-12-11 01:27:25
问题 I added Paperclip to my app then tried to deploy to my VPS using capistrano. The deploy happens successfully, but when I try to access my app on the VPS, I get the Rails Error Page. There is no information in production.log , but unicorn.log has the following error: E, [2013-06-25T19:44:07.372060 #21995] ERROR -- : uninitialized constant Paperclip (NameError) /home/deployer/apps/arcsite/releases/20130625182331/config/initializers/paperclip.rb:1:in `<top (required)>' The initializer file is

ubuntu 12.04 ruby 2.0 rails: Could not find 'thread_safe'

非 Y 不嫁゛ 提交于 2019-12-10 23:40:59
问题 im installing rails on ubuntu 12.04. installed manualy, using this method: How do I install ruby 2.0.0 correctly on Ubuntu 12.04? then: gem update --system gem install rails now if i run command "rails" the output is as following: /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'thread_safe' (~> 0.1) - did find: [thread_safe-0.1.2-java] (Gem::LoadError) from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1265:in `block in activate

Rails Error - `require': no such file to load — rubygems (LoadError)

十年热恋 提交于 2019-12-10 23:31:54
问题 I recently followed some instructions with RVM to install ruby-debug and I think it might have caused some problems. The link that I found the instructions are here: http://beginrescueend.com/support/troubleshooting/ The commands I used to install are the following: $ rvm reinstall 1.9.3 --patch debug --force-autoconf $ gem install ruby-debug19 -- --with-ruby-include="${MY_RUBY_HOME/rubies/src}" Now, when I try to start the rails server, I receive the following error: ./bundler_stubs/rails:13

“Your Ruby version is 1.9.3, but your Gemfile specified 1.9.3-p194”

徘徊边缘 提交于 2019-12-10 21:49:12
问题 RVM won't let me run bundle because it thinks my Ruby version is different from what my Gemfile says, but it isn't: $ rvm list rvm rubies => ruby-1.9.3-p194 [ x86_64 ] ruby-1.9.3-p429 [ x86_64 ] * ruby-2.0.0-p195 [ x86_64 ] # => - current # =* - current && default # * - default $ ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin13.0.0] Gemfile: ruby '1.9.3-p194' But then: $ bundle install Your Ruby version is 1.9.3, but your Gemfile specified 1.9.3-p194 $ This seems like a

attempting to execute any command starting “rails” yields “Could not locate Gemfile”

旧街凉风 提交于 2019-12-10 20:10:48
问题 I am trying to install a new rails app. I've already got several rails apps on my machine, all working fine. $ rails new app Could not locate Gemfile Then I figured I'd run a trace to figure out what was going on, as you wouldn't expect to have a Gemfile at this point anyway, as typically the above command would create an entire new rails app in a directory named app with the Gemfile contained within that directory. $ rails new app --trace Could not locate Gemfile So I tried to reinstall

Rails gem update not working (version 4.1.1 to 4.2.0) as a solution to “warning: circular argument reference” error

只谈情不闲聊 提交于 2019-12-10 19:53:49
问题 I keep getting the following error when I run any sort of rake command, and in particular rake db:seed which will abort without completing: $ rake db:seed /Users/rachel/.rvm/gems/ruby-2.2.0@rails4.2/gems/activesupport-4.1.1/lib/active_support/values/time_zone.rb:285: warning: circular argument reference - now rake aborted! ActiveRecord::UnknownAttributeError: unknown attribute: description I did some research and discovered this is an error (I think?) caused by an incompatible gem in Rails 4

rvm and bundle install in Ubuntu 12.10: Errno::EACCES

无人久伴 提交于 2019-12-10 19:20:39
问题 hope you can help me. i'm installing rvm with ruby, rails and the whole lot, and I've done it many times before, usually following this good tutorial http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ Everything seems to be fine, but I get this message when I try to run my bundle install (it's been working all afternoon actually): ERROR: Gem bundler is not installed, run `gem install bundler` first. If I then do as it says, I get: ERROR: While executing gem ... (Errno::EACCES)