Tag: rubygems

无法安装mysql2 gem

我无法在我的Windows7 x64系统中安装mysql2 gem。 我尝试使用32位和64位版本的MySQL服务器,但没有一个让我更进一步。 我安装了Ruby 1.8,开发工具包和Rails平台。 我甚至安装了minGW来允许C ++ / C编译。 MySQL Server安装在默认位置。 运行命令时: C:\Users\Arne>gem install mysql2 — –with-mysql-include=”C:\Program Files (x86)\MySQL\MySQL Server 5.1\include” –with-mysql-lib=”C:\Program Files (x86)\MySQL\MySQL Server 5.1\lib\” 我从控制台收到以下输出: Temporarily enhancing PATH to include DevKit… Building native extensions. This could take a while… *** extconf.rb failed *** Could not create Makefile due to some reason, probably […]

如何修复Rubygems最近的弃用警告?

我最近运行更新: gem update –system gem update 现在,每次加载gem时,我都会收到很多弃用警告。 例如, rails console : NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Users/user/.rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /Users/user/.rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10. NOTE: Gem::Specification#default_executable= is deprecated with no […]

如何在jRuby中启用C扩展支持?

我想安装一个gem,但是我收到以下错误: Building native extensions. This could take a while… ERROR: Error installing twitter-login: ERROR: Failed to build gem native extension. C:/nwcloud/jruby-1.7.2/bin/jruby.exe extconf.rb NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS or modify .jrubyrc to enable. 我也用同样的问题阅读了这个问题,但我甚至不知道如何使用这三个选项启用支持,因为我不知道如何将-Xcext.enabled=true传递给JRuby或设置JRUBY_OPTS或修改.jrubyrc启用。 任何人都可以帮我解决我的初学者问题吗?

无法在Windows 7上安装MySQL2 gem

我在安装时收到以下错误消息,请告诉我是否需要发布更多详细信息。 我按照以下位置的说明操作: https : //github.com/oneclick/rubyinstaller/wiki/Development-Kit 我正在使用ruby 1.9.2p136(2010-12-25)[i386-mingw32]。 这是我得到的: E:\work_desk\trunk>gem install mysql2 -v 0.2.4 Temporarily enhancing PATH to include DevKit… Building native extensions. This could take a while… ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. C:/Ruby192/bin/ruby.exe extconf.rb checking for rb_thread_blocking_region()… yes checking for main() in -llibmysql… no *** extconf.rb failed *** Could […]

如何通过“http://gems.rubyforge.org/似乎不是存储库”错误消息

问题828421问了类似的问题,但只收到一个真正的答案(更新rubygems),并且该尝试导致相同的错误。 Windows上的Ruby版本1.9.1.p243。 包含Gem,版本1.3.5。 从未安装任何gem; 从来没有为这个Ruby做任何特殊的配置。 Ruby本身和irb一样工作,“gem”运行但不能安装(也许还有其他操作)。 试过这个(从一本书): gem安装rspec 明白啦: 错误: http : //gems.rubyforge.org/似乎不是一个存储库 错误:执行gem时…(Gem :: RemoteFetcher :: FetchError)SocketError:getaddrinfo:存储控制块被破坏。 ( http://gems.rubyforge.org/yaml ) 当我使用MSIE7访问该URL(没有“yaml”)时,我得到一个标题为“Gemcutter | awesome gem hosting”的页面,并且没有任何问题在该网站上游荡。 所以我不认为 – 这是一个代理问题(虽然这都是来自企业防火墙/代理/等)。 当我转到那个URL -with-“yaml”时,它转到“ http://production.s3.rubygems.org/yaml ”并显示我认为是更新规范页面,从这开始:—!ruby/对象:gem:: SourceIndex 我没有销毁任何“存储控制块”。 那么什么阻止gem安装gem? 网络搜索显示很多人在很长一段时间内都遇到同样的问题,但是我还没有看到有人说“这是因为这个,所以要解决这个问题。” 好吧,有人建议更新“gem”,但尝试得到同样的错误。 请帮忙?

将HTML转换为word文件?

如何转换word文件中的ruby文件即(docx文件)。 对于pdf,我们大虾gem。 但是有没有word文件的gem。 我试图在word文件中转换我的html文件,以便它也可以为用户编辑。 那个案子该怎么办? 我打算在word文件中转换该文件。 是否有可能。