• 应该怎么解决呢 T_T

  • 谢谢各位前辈的指导,我都尝试了但是还是没能解决。。。555 我又重新创建了一个 app,可是进不去该目录,代码如下:

    chihwoo:// goki$ rails new tweet_app
          create  
    /Users/goki/.rbenv/versions/2.3.0/lib/ruby/2.3.0/fileutils.rb:253:in `mkdir': Permission denied @ dir_s_mkdir - /tweet_app (Errno::EACCES)
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/2.3.0/fileutils.rb:253:in `fu_mkdir'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/2.3.0/fileutils.rb:227:in `block (2 levels) in mkdir_p'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/2.3.0/fileutils.rb:225:in `reverse_each'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/2.3.0/fileutils.rb:225:in `block in mkdir_p'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/2.3.0/fileutils.rb:211:in `each'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/2.3.0/fileutils.rb:211:in `mkdir_p'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:50:in `block in invoke!'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:116:in `invoke_with_conflict_check'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:49:in `invoke!'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:14:in `empty_directory'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/generators/app_base.rb:138:in `create_root'
        from (eval):1:in `create_root'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/commands/application.rb:17:in `<top (required)>'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.6/lib/rails/cli.rb:14:in `<top (required)>'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /Users/goki/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/railties-4.2.6/bin/rails:9:in `<top (required)>'
        from /Users/goki/.rbenv/versions/2.3.0/bin/rails:23:in `load'
        from /Users/goki/.rbenv/versions/2.3.0/bin/rails:23:in `<main>'
    chihwoo:// goki$ cd tweet_app
    -bash: cd: tweet_app: No such file or directory
    chihwoo:// goki$ 
    
    

    请问是什么原因呢?

  • 十分感谢。

  • 多谢,这就去搜一搜。

  • 好的,我试试看,谢谢!

  • 请教有没有最新的安装教程呢? 人在海外。谢啦

  • Error: Your Xcode (7.3.1) is too outdated.
    Please update to Xcode 9.4 (or delete it).
    Xcode can be updated from the App Store.
    

    好像提示我 Xcode 的版本低。。。我正在升级试试看。

  • 谢谢回复。 gem_make.out 里的内容如下。 如何看哪里爆了呢?

    current directory: /Users/goki/tong_app/vendor/bundle/gems/nokogiri-1.8.2/ext/nokogiri
    /Users/goki/.rbenv/versions/2.3.0/bin/ruby -r ./siteconf20180609-10739-7kuq0s.rb extconf.rb --use-system-libraries
    checking if the C compiler accepts ... yes
    checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
    Building nokogiri using system libraries.
    checking for xmlParseDoc() in libxml/parser.h... yes
    checking for xsltParseStylesheetDoc() in libxslt/xslt.h... yes
    checking for exsltFuncRegister() in libexslt/exslt.h... yes
    checking for xmlHasFeature()... yes
    checking for xmlFirstElementChild()... yes
    checking for xmlRelaxNGSetParserStructuredErrors()... yes
    checking for xmlRelaxNGSetParserStructuredErrors()... yes
    checking for xmlRelaxNGSetValidStructuredErrors()... yes
    checking for xmlSchemaSetValidStructuredErrors()... yes
    checking for xmlSchemaSetParserStructuredErrors()... yes
    creating Makefile
    
    current directory: /Users/goki/tong_app/vendor/bundle/gems/nokogiri-1.8.2/ext/nokogiri
    make "DESTDIR=" clean
    
    current directory: /Users/goki/tong_app/vendor/bundle/gems/nokogiri-1.8.2/ext/nokogiri
    make "DESTDIR="
    compiling html_document.c
    couldn't understand kern.osversion `16.7.0'
    In file included from /Users/goki/.rbenv/versions/2.3.0/include/ruby-2.3.0/ruby.h:33,
                     from ./nokogiri.h:33,
                     from ./html_document.h:4,
                     from html_document.c:1:
    /Users/goki/.rbenv/versions/2.3.0/include/ruby-2.3.0/ruby/ruby.h:926: error: wrong number of arguments specified for deprecated attribute
    /Users/goki/.rbenv/versions/2.3.0/include/ruby-2.3.0/ruby/ruby.h:1419: error: wrong number of arguments specified for deprecated attribute
    /Users/goki/.rbenv/versions/2.3.0/include/ruby-2.3.0/ruby/ruby.h:1428: error: wrong number of arguments specified for deprecated attribute
    make: *** [html_document.o] Error 1
    
    make failed, exit code 2
    
  • chihwoo:~ goki$ brew install libxml2 libxslt
    Error: libxml2 2.9.4 is already installed
    To upgrade to 2.9.7, run `brew upgrade libxml2`
    Error: libxslt 1.1.28_1 is already installed
    To upgrade to 1.1.32, run `brew upgrade libxslt`
    

    谢谢,貌似没有问题。

  • 🐱 🌸 🌺

  • 支持!下周五晚上到台北,估计赶不上了...

  • 感觉身边的エンジニア用 mac 的多...😀

  • RubyConf China 2016 视频 at 2016年11月25日

    😊