rubygems

Could not find a valid gem 'rhc'. SSL_connect server certificate verify failed on Windows, Unable to connect OpenShift Server

房东的猫 提交于 2019-12-24 16:22:16
问题 C:\>gem install rhc ERROR: Could not find a valid gem 'rhc' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/latest_specs.4.8.gz) tried with the following commands: gem sources -r https://rubygems.org gem sources -a http://rubygems.org But still same error exists when trying to setup rhc. rhc setup By following these steps rhc gem is installed

Error in installing json gem for ruby in windows

我只是一个虾纸丫 提交于 2019-12-24 14:08:19
问题 While I am trying to create the new rails project, I face to error that is related to the lack of json gem. When I try to install json gem, this error happens: Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension. C:/Ruby22-x64/bin/ruby.exe extconf.rb creating Makefile make "DESTDIR=" clean make "DESTDIR=" generating generator-x64-mingw32.def compiling generator.c In

Can't install Nokogiri 1.4.3 gem

六月ゝ 毕业季﹏ 提交于 2019-12-24 13:20:54
问题 Can't install nokogiri 1.4.3 gem. Nokogiri 1.6.6.2 installs without a problem. Using latest RVM on Ubuntu. pm@sniegas:~$ gem install nokogiri -v '1.4.3' Fetching: nokogiri-1.4.3.gem (100%) Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /home/pm/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150519-7580-2yzgsg.rb extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack

Writing a Logstash GEM gives an error: undefined local variable or method

狂风中的少年 提交于 2019-12-24 12:37:28
问题 Trying to build a gem to use it for Logstash as a filter. I'm using classes and methods from a .jar file. The following is my Jruby code so far: # encoding: utf-8 require "logstash/filters/base" require "logstash/namespace" require 'java' require 'Processing.jar' java_import 'process.Process' class LogStash::Filters::Process < LogStash::Filters::Base config_name "process" StringPath = "/path/to/file/" ML = JavaUtilities.get_proxy_class('processing.Processing') @ML = ML.new(StringPath) public

No such file to load — rufus-scheduler

感情迁移 提交于 2019-12-24 11:36:42
问题 I'am developing a plugin in redmine how send mail every days , so i install rufus-scheduler and in my Gemfile i add this line gem "rufus-scheduler " and also i install the gem sudo gem install rufus-scheduler --source http://gemcutter.org and in my redmine/plugins/latest-issues-redmine-plugin/lib/latest_issues/view_hook_listener.rb i do this class LatestIssuesViewHookListener < Redmine::Hook::ViewListener require File.join(File.dirname(__FILE__), '../../app/models/latest_issues_setup')

Error installing json on windows 8.1

Deadly 提交于 2019-12-24 11:27:42
问题 I have installed rails 4.2.3 and ruby 2.2.2p95 on windows 8.1 x64 . When I try to run "bundle install" the installation fails because of json -v 1.8.3 . I already have json version 1.8.1 installed. When I run rubygems update command it does not get updated. If I try to individually run gem install json -v 1.8.3 or gem install json --platform=ruby --version=1.8.3 I get the following error. ERROR: While executing gem ... (OptionParser::InvalidArgument) invalid argument: -platform=ruby C:\>gem

Setting address of whois service for ruby whois gem

耗尽温柔 提交于 2019-12-24 11:05:20
问题 Using the ruby whois gem, how do I set the server address of the whois service? Setting the bind_host, I get an error. > whois_client = Whois::Client.new(bind_host: "192.0.47.59", bind_port: 43) => #<Whois::Client:0x00000008188e7e50 @timeout=10, @settings={:bind_host=>"192.0.47.59", :bind_port=>43}> > record = whois_client.lookup('wandajackson.com') Whois::ConnectionError: Errno::EADDRNOTAVAIL: Can't assign requested address - bind(2) for "192.0.47.59" port 43 from (irb):4 回答1: I'm pretty

Ruby on Rails: “no such file or directory” with logger.rb

浪子不回头ぞ 提交于 2019-12-24 10:37:25
问题 I'm attempting to run a RoR app locally for the first time. I've started the server and I get the following error (after WEBrick starts): C:/Ruby/lib/ruby/1.9.1/logger.rb:599:in `initialize': No such file or directory - /dev/null (Errno::ENOENT) I try to run rake db:migrate and I get the same error: ** Execute environment rake aborted! No such file or directory - /dev/null C:/Ruby/lib/ruby/1.9.1/logger.rb:599:in `initialize' C:/Ruby/lib/ruby/1.9.1/logger.rb:599:in `open' C:/Ruby/lib/ruby/1.9

How to find out which gems depdend on gem X [duplicate]

雨燕双飞 提交于 2019-12-24 10:31:26
问题 This question already has answers here : Closed 9 years ago . Possible Duplicate: How do I find gems that depend on a given gem? I want to find out which gems depend on e.g. one of my gems, so i can see if i would break anything, is this supported/possible ? 回答1: gem-dependent tells you... 来源: https://stackoverflow.com/questions/4085301/how-to-find-out-which-gems-depdend-on-gem-x

Installing gem json 2.2.0 failed - windows

烂漫一生 提交于 2019-12-24 10:24:07
问题 I got an error trying to install gem json 2.2.0 to my project, so I look for many sites and tutorials but nothing help me with windows. Please see the problem below: Fetching json 2.2.0 Installing json 2.2.0 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-2.2.0/ext/json/ext/generator C:/Ruby24-x64/bin/ruby.exe -I C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0 -r ./siteconf20190412-3460-119pn5l.rb