0

我想使用 private_pub gem 来跟随这个截屏视频:http ://railscasts.com/episodes/316-private-pub

但是,当我运行时rails g private_pub:install,我收到此错误Could not find hiredis-0.3.2 in any of the sources

但是,运行 bundle install install 大多数依赖 项会fatal error: sys/socket.h: No such file or directory在尝试安装hiredis时给出。

那么,如何在 Windows 7 中使用 private_pub?

4

2 回答 2

1
Could not find hiredis-0.3.2 is any of the sources
  • Windows 7的

Windows 上不支持hiredis(截至此答案)。您可以在hiredis的github 存储库中查看Windows 的拉取请求

关于您的 private_pub gem-railscast 视频上的评论显示该问题在 Windows 上已经出现了一段时间

于 2013-01-01T11:59:00.703 回答
0

我可以private_pub在windows上使用。我很久以前就这样做了,但我运行private_pub的是:

bundle exec private_pub.ru -s thin -E production

它仅适用于 ruby​​ 1.9.2。我在 1.9.3 上没有成功。

于 2013-03-01T09:33:21.887 回答