English 中文(简体)
废墟机械化+链路(安装机)
原标题:ruby mechanize + https link causes ruby segfault (with rvm installed)

我遵循国际民主和选举援助学会规定的使用机械师的指示,但当我试图获得一个皇家警察部队的网页时,我就遭到ault击。

require  rubygems 
require  mechanize 

agent = Mechanize.new

ruby-1.9.3-p0 :005 > agent.get("https://google.com")
/Users/wlue/.rvm/gems/ruby-1.9.3-p0/gems/net-http-persistent-2.3.3/lib/net/http/persistent/ssl_reuse.rb:70: [BUG] Segmentation fault

我很想知道,我是否错误地混淆了某些how,但我不知道如何检验。 我的顶级也这样做了。

export rvm_path="/Users/wlue/.rvm"

I don t think this is a ruby bug, because no one else has had problems with calling get on an https page, but I m at a loss as to how to debug this.

edit:由于与铁路公司的互动,因此实际上造成改型。 当我直接到独立监管机构工作时,它会做的是罚款,但铁路公司却不然。

最佳回答

I was having this problem, but it seems to work now in ruby 1.9.3p194

问题回答

暂无回答




相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签