小编zja*_*ang的帖子

在mac yosemite 10.10上安装rails

OS Yosemite 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
Run Code Online (Sandbox Code Playgroud)

编译器接受...是检查C编译器是否接受-Wno-error = unused-command-line-argument-hard-error-in-future ... no使用打包库构建nokogiri.在-lz中检查gzdopen()...是检查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]
Run Code Online (Sandbox Code Playgroud)

如果您使用的是Bundler,请告诉它使用以下选项:

bundle config build.nokogiri --use-system-libraries
bundle install
Run Code Online (Sandbox Code Playgroud)

但请注意,nokogiri与OS /软件包供应商提供的任意版本的libxml2不完全兼容.************************************************************************将libxml2-2.9.2.tar.gz解压缩到tmp/x86_64-apple-darwin14.1.0/ports/libxml2/2.9.2 ...运行补丁与/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 ...为libxml2运行'patch'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 ...为libxml2运行'patch'2.9.2 ... OK为libxml2 2.9.2运行'configure'... OK为libxml2运行'compile'2.9.2 ... OK为libxml2运行'install'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团队将继续尽最大努力及时提供安全更新,但如果这是您关注的问题,并希望使用系统库; …

ruby macos installation ruby-on-rails

2
推荐指数
1
解决办法
841
查看次数

标签 统计

installation ×1

macos ×1

ruby ×1

ruby-on-rails ×1