jjzjj

ruby - 错误 : Failed to build gem native extension (ruby extconf. rb): Mac OSX

这个问题在这里已经有了答案:RubyGeminstallJsonfailsonMavericksandXcode5.1-unknownargument:'-multiply_definedsuppress'(11个答案)关闭7年前。我正在尝试安装一个gem,但出现了这个错误,这是我自己和gem作者以前从未见过的。我该如何解决这个问题?Davids-MacBook-Pro:webdavid$sudo/usr/bin/geminstallcompass--prePassword:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Err

ruby - 执行 gem ... ["extconf.rb", ...] 不是文件

我正在尝试围绕C扩展构建一个ruby​​gem。使用rubyextconf.rb可以很好地编译C扩展;制作;sudomakeinstall例程,但是当我尝试使用rake构建gem时,该过程终止并出现此跟踪底部的错误。我正在使用帖子here,具有相同的目录结构,以创建gem。我的配置有什么问题?我的gemspec和Rakefile位于跟踪下方(该gem称为netconf)。//跟踪**Executecopy:netconf:i686-linux:1.9.2install-ctmp/i686-linux/netconf/1.9.2/netconf.solib/netconf/netconf

ruby - 有没有人得到一个在 Windows 上工作的 ruby​​ memcached 客户端?

谷歌搜索。卡在安装libmemcached上。更新:这是Ruby1.9.3的新错误日志checkingforpthread-config...noconfigure:error:couldnotfindlibpthread***extconf.rbfailed***CouldnotcreateMakefileduetosomereason,probablylackofnecessarylibrariesand/orheaders.Checkthemkmf.logfileformoredetails.Youmayneedconfigurationoptions.Providedconfi

c++ - 如何将 C++ 编译器标志添加到 extconf.rb

我正在编写一个Ruby扩展,为此我有一个标准的mkmf配置脚本,但我需要向所有C++编译步骤添加一个特殊的包含标志(--std=c++0x)。我不想在C编译步骤中使用它,因为它会引发警告。我应该怎么做?require'mkmf'create_makefile('thing')例如,我试过$CXXFLAGS,但CXXFLAGS尚未定义。如果我使用$CXXFLAGS='-I..',它只是稍后被覆盖。 最佳答案 这对我有用。$CXXFLAGS+="-std=c++11" 关于c++-如何将C+

ruby - 如何在没有 'extconf failure: need libxml2' 的情况下安装 ruby​​ gem libxml

我目前正在尝试安装一个ruby​​gem,但失败了,因为extconf说它需要libxml,所以当我按照these进行操作时安装libxml的说明(其中包括theseruby​​开发工具包安装说明)我得到以下输出:$geminstalllibxml-ruby--platformx86-mswin32-60TemporarilyenhancingPATHtoincludeDevKit...Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallinglibxml-ruby:ERROR:Failedtobuildge

ruby-on-rails - 无法构建 gem native 扩展 - 找不到 extconf.rb

尝试安装时'bcrypt-ruby',:lib=>'bcrypt'和'hpricot'我在两种情况下都得到了这个(使用WindowsXP)C:/Ruby/bin/ruby.exe:Nosuchfileordirectory--extconf.rb(LoadError)我从这里安装http://rubyinstaller.org/downloads/Rb1.8.6,包括开发工具包有什么提示吗,谢谢 最佳答案 RubyInstallerWiki中现在有一个条目解决这个潜在问题:Usingacommandprompt,invokethef

ruby-on-rails - Gem Rmagick 安装错误:extconf.rb:171:in `` ': No such file or directory - convert -version (Errno::ENOE NT)

我在安装rmagick时遇到此错误,我遵循了各种指南,但每次都遇到相同的错误。这次我遵循了本指南:http://www.youtube.com/watch?v=gEWAVlNCKhg&feature=youtu.be:C:/Ruby192/bin/ruby.exeextconf.rb--with-opt-include=C:/ImageMagick/SourceCode--with-opt-lib=C:/ImageMagickcheckingforRubyversion>=1.8.5...yes***extconf.rbfailed***CouldnotcreateMakefiledu

ruby-on-rails - 无法安装 Rails extconf.rb 失败

我是RubyonRails的新手,在安装时出现以下错误。请注意,我已经安装了最新的Xcode和命令行工具,并且我使用的是OSX10.8.4。我也安装了Ruby2.0.0。-bash-3.2$sudogeminstallrailsPassword:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingrails:ERROR:Failedtobuildgemnativeextension./Users/WillieTran/.rvm/rubies/ruby-2.0.0-p247/bin/rubyextconf

ruby - 如何在 extconf.rb 中为 SWIG 正确包含库路径和其他标志?

假设我要用命令编译一个C文件g++a.cpp-I/usr/local/gr/include-L/usr/local/gr/lib-lGR-lm-Wl,-rpath,/usr/local/gr/lib如何在SWIG中定义extconf.rb文件,使其不忽略链接器路径?这是我当前的extconf.rb文件。require'mkmf'system('swig-c++-rubyexample.i')orabort$CXXFLAGS+="-I/usr/local/gr/include-L/usr/local/gr/lib-lGR-lm-Wl,-rpath,/usr/local/gr/lib"cr

ruby-on-rails - 安装 Rails 时出现 "extconf.rb failed"消息

这里是新手。我在网站上搜索了其他类似的问题,但仍然无法解决问题。我已经安装了Ruby2.0.0和RubyGem2.0.3,但是当我尝试安装Rails4.0.0时,我得到了:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingrails:ERROR:Failedtobuildgemnativeextension./Users/yuanhunglo/.rvm/rubies/ruby-2.0.0-p0/bin/rubyextconf.rb***extconf.rbfailed***Couldnotcreate
12