rubygems

Failed WATIR installation Server 2003

走远了吗. 提交于 2019-12-11 12:36:21
问题 I had to rebuild my box and I currently am unable to install Watir. gem install watir ERROR: Error installing watir: activesupport requires Ruby version >= 1.8.7. Which would be fine if Watir was able to use Ruby 1.8.7 . I am using ruby -v ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] gem -v 1.3.7 I am not sure when this started to occur, but the documentation on the site is lacking. 回答1: On Windows XP (Professional, Version 2002, Service Pack 3, fully pathched) I have installed

script/console won't work; reports “Missing the Rails gem. Please `gem install -v= rails`…” even though rails shows as installed

早过忘川 提交于 2019-12-11 12:23:52
问题 I'm trying to learn RoR, and running script/console fails, returning: Loading development environment (Rails 2.3.5) Missing the Rails gem. Please gem install -v= rails , update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. Both gem list and sudo gem list show rails (2.3.5) as installed. Additionally, script/server works fine. I found some sources that suggested the

How to resolve bundle install rake error and Gem::RemoteFetcher::FetchError

自古美人都是妖i 提交于 2019-12-11 12:23:19
问题 When I run bundle install on ruby 2.1.2 I get: Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/gems/rake-10.4.2.gem) An error occurred while installing rake (10.4.2), and Bundler cannot continue. Make sure that `gem install rake -v '10.4.2'` succeeds before bundling. When I run gem install rake I get: ERROR: Could not find a valid gem 'bundle' (>= 0), here is why: Unable to download data from

Ancestry db:migrate

五迷三道 提交于 2019-12-11 11:09:16
问题 I am trying to install the Ancestry gem but I am having problems with rake db:migrate . I am following the instructions on the Ancestry github page. After I have done rails g migration add_ancestry_to_message ancestry:string I am editing the migration file (following railcast #262) to be: class AddAncestryToMessage < ActiveRecord::Migration def self.up add_column :messages, :ancestry, :string add_index :messages, :ancestry end def self.down remove_index :messages, :ancestry remove_column

ruby gems in Google-Sketchup

孤人 提交于 2019-12-11 11:00:54
问题 How do I use ruby gems in google-sketchup? Whenever I try typing: > require 'rubygems' into the ruby console, I get the following: Error: #<LoadError: (eval):7:in `require': no such file to load -- rubygems> EDIT I am on OSX. 回答1: sorry this is not an answer, i just thought i could shed some more light... (i dont have enough rep points to comment yet) typing RUBY_VERSION in the SketchUp Ruby Console returns 1.8.5? i have several ruby versions on my mac but certainly not 1.8.5. using sketchup

Bypassing Devise gem registration form to create a new user?

流过昼夜 提交于 2019-12-11 10:36:22
问题 I am usin devise gem and recaptch in rails project can any one give me a hint: how to create a new user bypassing recaptcha and without submitting a form of devise gem. 回答1: You have to create a new controller by inheriting the Devise::SessionsController and override the action register . For more details: https://github.com/plataformatec/devise#configuring-controllers 回答2: There's an article on how to integrate devise & recaptcha in the Devise wiki docs here: Devise Wiki: Hot to use

Trouble with installation of gstreamer gem in Linux Mint

爷,独闯天下 提交于 2019-12-11 10:28:34
问题 I'm using linux mint. When I try to install with gem install gstreamer I see this error: ERROR: Error installing gstreamer: ERROR: Failed to build gem native extension. /home/msdc/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb` checking for -Wall option to compiler... yes checking for -Waggregate-return option to compiler... yes checking for -Wcast-align option to compiler... yes checking for -Wextra option to compiler... yes checking for -Wformat=2 option to compiler... yes checking for -Winit

selenium/webdriver/firefox/binary.rb:134:in `path': can't modify frozen String (FrozenError)

北慕城南 提交于 2019-12-11 10:09:30
问题 I tried to run a simple google look up code in selenium and ran it on EC2 instance(Amazon Linux). I am getting an error launching Firefox and cannot understand what the error means. Ruby version - ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux] selenium-webdriver version - 3.142.3 require 'selenium-webdriver' options = Selenium::WebDriver::Firefox::Options.new(args: ['-headless']) driver = Selenium::WebDriver.for(:firefox, options: options) driver.get "http://google.com" puts "Page

Cannot installing mechanize for ruby on mac

◇◆丶佛笑我妖孽 提交于 2019-12-11 09:58:44
问题 I am trying to install mechanize on a Mac OS X Version 10.7.3 with ruby version 1.8.7. The problem is with one of its dependencies nokogiri. I have seen other posts about having xcode installe and I do it is version 4.3.2 . Here is the error I am receiving. Thank you in advance. sudo gem install mechanize Building native extensions. This could take a while... ERROR: Error installing mechanize: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8

Deploying a Rails app on dreamhost issue

一世执手 提交于 2019-12-11 09:08:57
问题 So I'm at a loss with this one. My error is: Missing these required gems: jrails You're running: ruby 1.8.7.72 at /usr/bin/ruby1.8 rubygems 1.3.6 at /home/ryann/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8 Run rake gems:install to install the missing gems. I have unpacked jrails in my vendor directory and frozen my local rails environment. Everything works fine on my local machine. I am using config.gem 'jrails' in my environment.rb file. My trace is (sorry for the mess): 0 /home/ryann/intercomhq