草庐IT

wicked-gem

全部标签

ruby-on-rails - 无法在 Windows 上安装 ruby​​-debug gem

我在Windows上安装Ruby-DebugGem时遇到问题。这个错误是什么意思?我怎样才能解决这个问题?谢谢C:\Users\Steve>geminstallruby-debugBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingruby-debug:ERROR:Failedtobuildgemnativeextension.C:/Ruby19/bin/ruby.exeextconf.rbCan'thandle1.9.xyet***extconf.rbfailed***CouldnotcreateMa

ruby - 在 Windows 上安装 Ruby gems 时出现 "certificate verify failed"错误

我正在使用运行8.1并使用RubyInstaller2.1.5的WindowsPC。安装gem时出现错误:C:\>geminstallbundleERROR:Couldnotfindavalidgem'bundle'(>=0),hereiswhy:Unabletodownloaddatafromhttps://rubygems.org/-SSL_connectreturned=1errno=0state=SSLv3readservercertificateB:certificateverifyfailed(https://api.rubygems.org/latest_specs.4.

ruby - Windows 7上“无法构建gem native 扩展”(系统找不到指定的路径)

总之的问题我在Windows上,运行geminstalljson—platform=ruby时遇到以下错误:Thesystemcannotfindthepathspecified.TemporarilyenhancingPATHtoincludeDevKit...Buildingnativeextensions.Thiscouldtakeawhile...Thesystemcannotfindthepathspecified.ERROR:Errorinstallingjson:ERROR:Failedtobuildgemnativeextension.C:/Ruby193/bin/ru

windows - sqlite3-ruby gem : Failed to build gem native extension

更新:查看后续问题:GemUpdateonWindows-isitbroken?在Windows上,当我这样做时:geminstallsqlite3-ruby我收到以下错误:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingsqlite3-ruby:ERROR:Failedtobuildgemnativeextension.c:/ruby/bin/ruby.exeextconf.rbinstallsqlite3-ruby--platformWin32checkingforfdatasync()inrt

ruby - Gem 安装错误 : You have to install development tools first (Windows)

此问题适用于Windows我尝试安装gem'sinatra-websocket',但是当我运行geminstallsinatra-websocket时,我得到了这个错误...错误:构建gem原生扩展失败...连同...C:/Ruby193/bin/ruby.exeextconf.rbcheckingformain()in-lc...***extconf.rbfailed***CouldnotcreateMakefileduetosomereason,probablylackofnecessarylibrariesand/orheaders.Checkthemkmf.logfilefor

ruby-on-rails - 安装 libv8 时出错 : ERROR: Failed to build gem native extension

我做了一个Rails项目,railsnewtest_bootstrap.成功了。移动到项目目录并添加gemgem"therubyracer"gem"less-rails"#Sprockets(whatRails3.1usesforitsassetpipeline)supportsLESSgem"twitter-bootstrap-rails"然后运行bundleinstall在那之后,我有这个错误。Installinglibv8(3.16.14.3)Gem::Installer::ExtensionBuildError:ERROR:Failedtobuildgemnativeexten

ruby-on-rails - 带有 Rubber gem 的 EC2 - Redis/Resque FileUtils 权限问题

我使用Rubbergem设置了一个EC2实例。我正在尝试使用Redis/Resque创建一个zip文件。当我从Rails控制台运行该命令时,该命令工作正常,但当Redis/Resque尝试时,它会收到权限被拒绝的错误。我假设Redis/Resque正在作为另一个用户运行,不确定如何轻松解决这个问题——如果可以修改Rubber配置以提高权限等......任何建议表示赞赏...... 最佳答案 如果您在远程控制台上运行它,您很可能是使用root执行的。Rubber开始使用app用户重新启动resqueworkers,因此它是一个受限帐户

ruby-on-rails - rails : soulmate gem pipelining for multiple types

我正在使用soulmate我的Rails应用程序中用于自动完成的gem,我遇到的一个大问题是从客户端到Redis服务器再返回的查询延迟。快速浏览gem代码显示#inlib/soulmate/server.rb#searchtypes.eachdo|type|matcher=Matcher.new(type)results[type]=matcher.matches_for_term(term,:limit=>limit)end如您所见,为每个类型(即“location”、“user”、“venue”、等),然后使用matches_for_term方法查询Redis服务器。这意味着如果我

ruby-on-rails - 我应该使用什么 Rails gem 来使用 Resque 进行重复性工作?

我的应用程序中有一个“播放”按钮,用于从API检查股票值并创建一个包含该值的Position对象。此操作使用Resque通过以下方式使用Resque和Redis进行后台作业:Controller-stock_controller.rb:defstart_tracking@stock=Stock.find(params[:id])Resque.enqueue(StockChecker,@stock.id)redirect_to:backendworker:classStockChecker@queue=:stock_checker_queuedefself.perform(stock_i

ruby - 为我正在开发的 rails ORM gem 创建 railtie 的问题

我正在开发一个Rubygem,Ampere,它充当Redis数据库的ORM。我正在尝试支持它的Rails集成,并且能够绑定(bind)初始化程序和控制台Hook,但我的生成器还不能工作。我有一个生成器ampere:config,它安装了默认配置YAML文件,以及模型生成器的替代品。当我将我的gem安装到测试Rails应用程序中时,当我在命令行上运行railsgenerate时,ampere:config生成器会出现在列表中,但是当我输入railsgampere:config,我得到:Couldnotfindgeneratorampere:config.除此之外别无其他。我的生成器位于g