OS优胜美地10.10 我正在笔记本电脑上构建ror开发环境。 按照[installrails.com] [1]步骤,现在卡在安装rails。 有人帮助会很棒。感谢
构建原生扩展。这可能需要一段时间...错误:错误 安装rails:错误:无法构建gem原生扩展。
/Users/jasonyang/.rvm/rubies/ruby-2.2.0/bin/ruby -r ./siteconf20150329-3365-1fd5w4t.rb extconf.rb checking if the C
编译器接受...是检查C编译器是否接受 -Wno-error = unused-command-line-argument-hard-error-in-future ... no使用打包库构建nokogiri。检查gzdopen()in -lz ...是检查iconv ...是的 ************************************************** **********************重要通知:
使用打包版本的libxml2-2.9.2构建Nokogiri 应用以下补丁: - 0001-Revert-Missing-initialization-for-catalog-module.patch - 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
Nokogiri团队将继续尽最大努力提供安全保障 及时更新,但如果这是您关注的问题 改为使用系统库;中止此安装过程和 重新安装nokogiri如下:
gem install nokogiri -- --use-system-libraries [--with-xml2-config=/path/to/xml2-config] [--with-xslt-config=/path/to/xslt-config]
如果您使用的是Bundler,请告诉它使用选项:
bundle config build.nokogiri --use-system-libraries bundle install
但请注意,nokogiri与任意不完全兼容 OS /包供应商提供的libxml2版本。 ************************************************** **********************将libxml2-2.9.2.tar.gz解压缩到 tmp / x86_64-apple-darwin14.1.0 / ports / libxml2 / 2.9.2 ... OK运行补丁 同 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch ... 运行'补丁' for libxml2 2.9.2 ... OK运行补丁 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch。 .. 运行'补丁' for libxml2 2.9.2 ... OK运行' configure'对于 libxml2 2.9.2 ... OK运行'编译'对于libxml2 2.9.2 ...运行正常 '安装' for libxml2 2.9.2 ... OK激活libxml2 2.9.2(来自 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/x86_64-apple-darwin14.1.0/libxml2/2.9.2)... ************************************************** **********************重要通知:
使用打包版本的libxslt-1.1.28构建Nokogiri 应用以下补丁: - 0001-Adding-doc-update-related-to-1.1.28.patch - 0002-fix-a-couple-of-places-where-f-printf-parameters-wer.patch - 0003-Initialize-pseudo-random-number-generator-with-curre.patch - 0004-EXSLT-function-str-replace-is-broken-as-is.patch - 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch - 0007-Separate-function-for-predicate-matching-in-patterns.patch - 0008-Fix-direct-pattern-matching.patch - 0009-Fix-certain-patterns-with-predicates.patch - 0010-fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch - 0013-memory-leak-in-xsltCompileIdKeyPattern-error-path.patch - 0014-fix-for-bug-436589.patch - 0015-Fix-mkdir-for-mingw.patch
Nokogiri团队将继续尽最大努力提供安全保障 及时更新,但如果这是您关注的问题 改为使用系统库;中止此安装过程和 重新安装nokogiri如下:
gem install nokogiri -- --use-system-libraries [--with-xml2-config=/path/to/xml2-config] [--with-xslt-config=/path/to/xslt-config]
如果您使用的是Bundler,请告诉它使用选项:
bundle config build.nokogiri --use-system-libraries bundle install
*************** *************************将libxslt-1.1.28.tar.gz解压缩到 tmp / x86_64-apple-darwin14.1.0 / ports / libxslt / 1.1.28 ... OK运行补丁 同 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0001-Adding-doc-update-related-to-1.1.28.patch ... 运行'补丁' for libxslt 1.1.28 ... OK运行补丁 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0002-Fix-a-couple-of-places-where-f-printf-parameters- wer.patch ... 运行'补丁' for libxslt 1.1.28 ... OK运行补丁 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0003-Initialize-pseudo-random-number-generator-with-curre.patch ... 运行'补丁' for libxslt 1.1.28 ... OK运行补丁 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0004-EXSLT-function-str-replace-is-broken-as-is.patch。 .. 运行'补丁' for libxslt 1.1.28 ... OK运行补丁 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0006-Fix-str-padding-to-work-with-UTF-8-strings。补丁... 运行'补丁' for libxslt 1.1.28 ... OK运行补丁 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0007-Separate-function-for-predicate-matching-in-patterns.patch ... 运行'补丁' for libxslt 1.1.28 ... OK运行补丁 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0008-Fix-direct-pattern-matching.patch ... 运行'补丁' for libxslt 1.1.28 ... OK运行补丁 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0009-Fix-certain-patterns-with-predicates.patch ... 运行'补丁' for libxslt 1.1.28 ... OK运行补丁 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto- module.patch ... 运行'补丁' for libxslt 1.1.28 ... OK运行补丁 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch ... 运行'补丁' for libxslt 1.1.28 ... OK运行补丁 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0014-Fix-for-bug-436589.patch ... 运行'补丁' for libxslt 1.1.28 ... OK运行补丁 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0015-Fix-mkdir-for-mingw.patch ... 运行'补丁'对于libxslt 1.1.28 ... OK运行'配置'对于 libxslt 1.1.28 ... OK运行'编译'对于libxslt 1.1.28 ......好的 运行'安装' for libxslt 1.1.28 ... OK激活libxslt 1.1.28 (从 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports/x86_64-apple-darwin14.1.0/libxslt/1.1.28)... 检查-llzma中的main()...是否检查xmlParseDoc() libxml / parser.h ...是检查xsltParseStylesheetDoc() libxslt / xslt.h ...是检查exsltFuncRegister() libexslt / exslt.h ...是检查xmlHasFeature()...是检查 for xmlFirstElementChild()... yes check for xmlRelaxNGSetParserStructuredErrors()...是检查 xmlRelaxNGSetParserStructuredErrors()...是检查 xmlRelaxNGSetValidStructuredErrors()...是检查 xmlSchemaSetValidStructuredErrors()...是检查 xmlSchemaSetParserStructuredErrors()...是创建Makefile
制作" DESTDIR ="清洁
制作" DESTDIR ="编译html_document.c编译 html_element_description.c编译html_entity_lookup.c编译 html_sax_parser_context.c编译html_sax_push_parser.c编译 nokogiri.c编译xml_attr.c编译xml_attribute_decl.c 编译xml_cdata.c编译xml_comment.c编译xml_document.c 编译xml_document_fragment.c编译xml_dtd.c编译 xml_element_content.c编译xml_element_decl.c编译 xml_encoding_handler.c编译xml_entity_decl.c编译 xml_entity_reference.c编译xml_io.c编译 xml_libxml2_hacks.c编译xml_namespace.c编译xml_node.c xml_node.c:168:15:警告:未处理14个枚举值 切换:' XML_ATTRIBUTE_NODE',' XML_ENTITY_NODE', ' XML_DOCUMENT_NODE' ... [-Wswitch] switch(reparentee-> type){ ^ xml_node.c:186:15:警告:未在switch中处理15个枚举值:' XML_ATTRIBUTE_NODE',' XML_ENTITY_NODE', ' XML_DOCUMENT_NODE' ... [-Wswitch] switch(reparentee-> type){ ^ xml_node.c:197:15:警告:未在switch中处理19个枚举值:' XML_ELEMENT_NODE',' XML_ATTRIBUTE_NODE', ' XML_CDATA_SECTION_NODE' ... [-Wswitch] switch(reparentee-> type){ ^ xml_node.c:165:13:警告:未在switch中处理14个枚举值:' XML_CDATA_SECTION_NODE',' XML_ENTITY_NODE', ' XML_PI_NODE' ... [-Wswitch] switch(parent-> type){ ^ 4警告生成。编译xml_node_set.c编译xml_processing_instruction.c编译xml_reader.c编译 xml_relax_ng.c编译xml_sax_parser.c编译 xml_sax_parser_context.c编译xml_sax_push_parser.c编译 xml_schema.c编译xml_syntax_error.c编译xml_text.c 编译xml_xpath_context.c编译xslt_stylesheet.c xslt_stylesheet.c:217:21:警告:指向整数的指针不兼容 转换过程' void '参数类型' VALUE' (又名 ' unsigned long')[ - 转换] Data_Get_Struct(ctxt-> style-> _private,nokogiriXsltStylesheetTuple, ^ ~~~~~~~~~~~~~~~~~~~~ / Users / jasonyang / .rvm / rubies / ruby-2.2.0 / include /ruby-2.2.0 /ruby / ruby.h :1044:41: 注意:从宏' Data_Get_Struct'扩展 ((sval)=(type )rb_data_object_get(obj)) ^ /Users/jasonyang/.rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/ruby/ruby.h:1189:26: 注意:将参数传递给参数' obj'这里 rb_data_object_get(VALUE obj) ^ xslt_stylesheet.c:230:21:警告:指向整数转换的不兼容指针传递' void '至 类型参数' VALUE' (又名'无符号长')[ - 转换] Data_Get_Struct(ctxt-> style-> _private,nokogiriXsltStylesheetTuple, ^ ~~~~~~~~~~~~~~~~~~~~ / Users / jasonyang / .rvm / rubies / ruby-2.2.0 / include /ruby-2.2.0 /ruby / ruby.h :1044:41: 注意:从宏' Data_Get_Struct'扩展 ((sval)=(type )rb_data_object_get(obj)) ^ /Users/jasonyang/.rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/ruby/ruby.h:1189:26: 注意:将参数传递给参数' obj'这里 rb_data_object_get(VALUE obj) ^ 2警告生成。链接共享对象nokogiri / nokogiri.bundle ld:warning:找不到选项的目录 ' -L /用户/避难所/ .SM / PKG /活性/ lib中'清理文件仅用于 建立。 rm -rf /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-apple-darwin14.1.0/ports rmdir -p /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-apple-darwin14.1.0 rm -rf /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2/ports
制作" DESTDIR =" install make:/ usr / local / bin / gmkdir:没有这样的文件或 目录制作:*** [.RUBYARCHDIR .-。nokogiri.time]错误1
make install failed,退出代码2
Gem文件将保持安装状态 /Users/jasonyang/.rvm/gems/ruby-2.2.0/gems/nokogiri-1.6.6.2 for 检查。记录结果 /Users/jasonyang/.rvm/gems/ruby-2.2.0/extensions/x86_64-darwin-14/2.2.0-static/nokogiri-1.6.6.2/gem_make.out
答案 0 :(得分:5)
您需要安装 coreutils 才能解决此问题。
使用MacPorts:
sudo port install coreutils
对于Homebrew:
sudo brew install coreutils