rubygems

While installing RubyGems 1.7.2 it installed 1.3.5 instead

十年热恋 提交于 2019-12-11 07:29:49
问题 I just went through the install of Ruby 1.7.2 and for some reason I ended up with version 1.3.5 So now when I do this command: gem --version 1.3.5 My thinking is that I have to purge the 1.3.5 version and install the 1.7.2 fresh correct? The funny thing is that I do have 1.7.2 on my file system at /usr/local/rubygems-1.7.2 How do I un-confuse the system into seeing the right version? The whole issue is stemming when I try to install rails by doing this: gem install rails ERROR: Error

I cant load Ruby Gems

Deadly 提交于 2019-12-11 07:16:15
问题 i am getting this error whenever i try to load a ruby gem /home/hilarl/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- twit ter (LoadError) from /home/hilarl/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from sample.rb:2:in `<main>' can you please help? 回答1: You missed to use a ruby, in normal console first run: rvm use 1.9.3 If it's in a script then instead use

Rails 2.3.5 startup: remove_const cannot remove Object::NotSupported (NameError)

社会主义新天地 提交于 2019-12-11 07:14:41
问题 I assume I'm in gem dependency hell here, but if anyone can help I'd be much appreciated (Googling for "cannot remove Object::NotSupported" literally returned zero results). I have a Rails 2.3.5 app and I get this stack trace on initialization: usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:603:in `remove_const': cannot remove Object::NotSupported (NameError) from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:603:in

Rails: gem.config & rake gems:install — no such file to load

情到浓时终转凉″ 提交于 2019-12-11 07:01:53
问题 I'm trying to use config/environment.rb to install a ruby gem dependency (because I don't have sudo access to our server; ergo, can't just call gem install hpricot ). I've tried including sundry arguments ( :version , :source , :lib ) but I still get rake aborted! no such file to load -- hpricot Update: It turns out that when I remove the plugin which requires hpricot, then I can execute rake gems:install successfully. But that's not very helpful. It means that if I ever move my app, I run

devise sign out not working after implementation of devise invitable

让人想犯罪 __ 提交于 2019-12-11 06:36:07
问题 all the things were working fine with devise's Registration and session related but when I added devise invitable in the project, after that my session controller's destroy functionality not working. when I clicked on logout button the request sent to here Started DELETE "/logout" for 127.0.0.1 at 2018-12-15 06:49:20 +0500 Processing by Devise::SessionsController#destroy as HTML Parameters:{"authenticity_token"=>"Z9dNZ0yj+pIFkPKaU/Ir7h99b4dYse3KCaQ7GYUm3g6ZAgZVF+B

ActionView::Template::Error (undefined method `getlocal' for “2008-02-14T02:20:50Z”:String):

邮差的信 提交于 2019-12-11 06:28:41
问题 After updating Mongoid 3.0.1 / Rails 3.2.6 it start getting a 'getlocal' method error when displaying created_at : Showing /home/lsoave/rails/github/gitwatcher/app/views/shared/_watch-list-table.html.haml where line #28 raised: undefined method `getlocal' for "2008-02-14T02:20:50Z":String Extracted source (around line #28): 28: %td= repo.created_at.to_s(:pretty) UPDATE I've got a config/initializers/time_formats.rb which set that format $ cat config/initializers/time_formats.rb Time::DATE

Using active record and mysql on ruby script

Deadly 提交于 2019-12-11 06:17:08
问题 I've been trying to use mysql and active record on a ruby script but I'm getting the following message: Outdated mysql gem. Upgrade to 2.8.1 or later. In your Gemfile: gem 'mysql', '2.8.1'. Or use gem 'mysql2' (RuntimeError). Before I was getting a message about gem 'mysql2' missing but then i checked the source code on the connection adapters in active record and saw that it require mysql gem which i didnt have installed. this is my script: require 'rubygems' require 'active_record' require

Ruby JSON gem install error: Ruby 2.4.1, JSON 1.8.6 (Windows 10)

匆匆过客 提交于 2019-12-11 05:35:49
问题 Running gem install json and receiving the following error Fetching: json-1.8.6.gem (100%) Temporarily enhancing PATH for MSYS/MINGW... Building native extensions. This could take a while... 1 [main] make 8392 child_info_fork::abort: C:\msys32\usr\bin\msys-intl-8.dll: Loaded to different address: parent(0x30000) != child(0x20000) 1 [main] make 332 child_info_fork::abort: C:\msys32\usr\bin\msys-intl-8.dll: Loaded to different address: parent(0x20000) != child(0x30000) ERROR: Error installing

Not able to run/install Gems using Gemfile

心不动则不痛 提交于 2019-12-11 05:28:52
问题 When i give bundle install or bundle exec i am getting this error Could not find gem 'acts_as_ferret-0.4.4.gem (>= 0) ruby' in any of the gem sources listed in your Gemfile. Apparently the first gem in the Gemfile is acts_as_ferret-0.4.4 and source is source 'http://rubygems.org' I tried other sources also but still not working!!! 回答1: As Pete is saying there probably is a problem with your gemfile Try to open it and see if your acts_as_ferret looks something like this. gem "acts_as_ferret",

Error using capybara-webkit (really QtWebKit webkit_server) on MacOS X due to libpng version incompatibility

a 夏天 提交于 2019-12-11 05:19:00
问题 I get the following error when trying to execute any capybara test using the capybara-webkit driver: dyld: Library not loaded: /usr/X11/lib/libpng15.15.dylib Referenced from: /usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/QtGui Reason: Incompatible library version: QtGui requires version 20.0.0 or later, but libpng15.15.dylib provides version 17.0.0 /Users/chris/.rvm/gems/ruby-1.9.2-p290/gems/capybara-webkit-0.9.0/lib/capybara/driver/webkit/browser.rb:200:in initialize': Can't