Rails gem tweetstream with Encryption not available on this event-machine 错误

2024-02-11

我正在尝试使用显示推文gem tweetstream并按照指南进行操作https://github.com/tweetstream/tweetstream https://github.com/tweetstream/tweetstream

In my tweets_helper.rb

  require "twitter" require 'tweetstream'

  module TweetsHelper   
    @@client = Twitter::REST::Client.new do |config|
    config.consumer_key        = Rails.application.config.twitter_key
    config.consumer_secret     = Rails.application.config.twitter_secret
    config.access_token        = Rails.application.config.twitter_oauth_token
    config.access_token_secret = Rails.application.config.twitter_oauth_secret
   end

  def user_timeline
    @@client.user_timeline   
  end

  TweetStream.configure do |config|
    config.consumer_key        = Rails.application.config.twitter_key
    config.consumer_secret     = Rails.application.config.twitter_secret
    config.oauth_token        = Rails.application.config.twitter_oauth_token
    config.oauth_token_secret = Rails.application.config.twitter_oauth_secret
    config.auth_method= :oauth  

  end

    TweetStream::Client.new.track('Pink Floyd') do |status|
      puts "#{status.text}"     
    end 
 end

但这在终端中引发了我这个错误并关闭了本地服务器

c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/tweetstream-2.6.1/lib/tweet Stream/client.rb:400:警告:此平台不支持 epoll c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/tweetstream-2.6.1/lib/tweet Stream/client.rb:401: 警告:kqueue 在此不受支持 抛出实例后调用平台终止 “std::runtime_error”what():加密在此不可用 事件机器

该应用程序已请求运行时终止它 不寻常的方式。请联系应用程序的支持团队了解更多信息 信息。

但是,如果我删除,服务器就会运行

TweetStream::Client.new.track('Pink Floyd') do |status|  
  puts "#{status.text}"
end

我该如何修复这个错误?

更新 我认为所有迹象都表明安装了 libssl-devhttps://github.com/plamoni/SiriProxy/issues/41 https://github.com/plamoni/SiriProxy/issues/41。在 Ubuntu 上是aptitude install libssl-dev。 我该如何在 Windows 8 上执行此操作?


None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Rails gem tweetstream with Encryption not available on this event-machine 错误 的相关文章

随机推荐