質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

ただいまの
回答率

90.51%

  • Ruby

    9444questions

    Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

  • Ruby on Rails

    8865questions

    Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

  • MySQL

    7004questions

    MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

  • Ruby on Rails 4

    2544questions

    Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

nokogiri1.6.8がbundleできない(インストールはできる)

解決済

回答 1

投稿

  • 評価
  • クリップ 0
  • VIEW 3,842

k.m.m.m

score 59

OSX YOSEMITE 10.10.5

ruby 2.1.3

railsのアプリを--skip-bundle -d mysqlをしてアプリを作成した後、

bundleをしようとしても、nokogiriでエラーが起きます。

MacBook-Pro-3:app_name user_name$ bundle
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies.....
Using rake 11.2.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.9.0
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using pkg-config 1.1.7
Installing nokogiri 1.6.8 with native extensions

Errno::EACCES: Permission denied - /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8/gem_make.out

An error occurred while installing nokogiri (1.6.8), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.8'` succeeds before bundling.

このようなエラーがでるので、
gem install nokogiri -v '1.6.8'

をすると、以下のエラーが出ます。

MacBook-Pro-3:app_name user_name$ gem install nokogiri -v '1.6.8'
Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

    current directory: /Users/user_name/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.8/ext/nokogiri
/Users/user_name/.rbenv/versions/2.1.3/bin/ruby -r ./siteconf20160629-10816-pe1drn.rb extconf.rb
Using pkg-config version 1.1.7
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 packaged libraries.
Using mini_portile version 2.1.0
checking for iconv.h... yes
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxml2-2.9.4.

Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:

    gem install nokogiri -- --use-system-libraries
        [--with-xml2-config=/path/to/xml2-config]
        [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install

Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.4.tar.gz into tmp/x86_64-apple-darwin14.5.0/ports/libxml2/2.9.4... OK
Running 'configure' for libxml2 2.9.4... OK
Running 'compile' for libxml2 2.9.4... ERROR, review '/Users/user_name/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.8/ext/nokogiri/tmp/x86_64-apple-darwin14.5.0/ports/libxml2/2.9.4/compile.log' to see what happened. Last lines are:
========================================================================
    unsigned short* in = (unsigned short*) inb;
                         ^~~~~~~~~~~~~~~~~~~~~
encoding.c:815:27: warning: cast from 'unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* out = (unsigned short*) outb;
                          ^~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
  CC       error.lo
  CC       parserInternals.lo
  CC       parser.lo
  CC       tree.lo
  CC       hash.lo
  CC       list.lo
  CC       xmlIO.lo
xmlIO.c:1450:52: error: use of undeclared identifier 'LZMA_OK'
    ret =  (__libxml2_xzclose((xzFile) context) == LZMA_OK ) ? 0 : -1;
                                                   ^
1 error generated.
make[2]: *** [xmlIO.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
========================================================================
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/Users/user_name/.rbenv/versions/2.1.3/bin/ruby
    --help
    --clean
    --use-system-libraries
    --enable-static
    --disable-static
    --with-zlib-dir
    --without-zlib-dir
    --with-zlib-include
    --without-zlib-include=${zlib-dir}/include
    --with-zlib-lib
    --without-zlib-lib=${zlib-dir}/lib
    --enable-cross-build
    --disable-cross-build
/Users/user_name/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:366:in `block in execute': Failed to complete compile task (RuntimeError)
    from /Users/user_name/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:337:in `chdir'
    from /Users/user_name/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:337:in `execute'
    from /Users/user_name/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:111:in `compile'
    from /Users/user_name/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/mini_portile2-2.1.0/lib/mini_portile2/mini_portile.rb:150:in `cook'
    from extconf.rb:364:in `block (2 levels) in process_recipe'
    from extconf.rb:257:in `block in chdir_for_build'
    from extconf.rb:256:in `chdir'
    from extconf.rb:256:in `chdir_for_build'
    from extconf.rb:363:in `block in process_recipe'
    from extconf.rb:262:in `tap'
    from extconf.rb:262:in `process_recipe'
    from extconf.rb:555:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /Users/user_name/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0-static/nokogiri-1.6.8/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /Users/user_nae/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.8 for inspection.
Results logged to /Users/user_name/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0-static/nokogiri-1.6.8/gem_make.out

そして、

MacBook-Pro-3:app_name user_name$ NOKOGIRI_USE_SYSTEM_LIBRARIES=1 \
> gem install nokogiri -- \
>   --with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config \
>   --with-xslt-config=/usr/local/opt/libxslt/bin/xslt-config
Building native extensions with: '--with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config --with-xslt-config=/usr/local/opt/libxslt/bin/xslt-config'
This could take a while...
Successfully installed nokogiri-1.6.8
Parsing documentation for nokogiri-1.6.8
Done installing documentation for nokogiri after 1 seconds
1 gem installed

とすると、nokogiriをインストールできるんですが、
またbundleしても同じエラーが出ます。

どなたかわかりますか?
ググったら、たくさん文書が出てきたのですが、これだという文書が見つからず、

MacBook-Pro-3:app_name user_name$ NOKOGIRI_USE_SYSTEM_LIBRARIES=1 \
> gem install nokogiri -- \
>   --with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config \
>   --with-xslt-config=/usr/local/opt/libxslt/bin/xslt-config


これをやって、インストールできたので文書が終わっているとかばかりで、肝心なbundleしようとしても
エラーがでるところの解決まではありませんでした。
どなたかわかる方いませんでしょうか?
もう1日半くらいはまっています。
よろしくお願いします。

  • 気になる質問をクリップする

    クリップした質問は、後からいつでもマイページで確認できます。

    またクリップした質問に回答があった際、通知やメールを受け取ることができます。

    クリップを取り消します

  • 良い質問の評価を上げる

    以下のような質問は評価を上げましょう

    • 質問内容が明確
    • 自分も答えを知りたい
    • 質問者以外のユーザにも役立つ

    評価が高い質問は、TOPページの「注目」タブのフィードに表示されやすくなります。

    質問の評価を上げたことを取り消します

  • 評価を下げられる数の上限に達しました

    評価を下げることができません

    • 1日5回まで評価を下げられます
    • 1日に1ユーザに対して2回まで評価を下げられます

    質問の評価を下げる

    teratailでは下記のような質問を「具体的に困っていることがない質問」、「サイトポリシーに違反する質問」と定義し、推奨していません。

    • プログラミングに関係のない質問
    • やってほしいことだけを記載した丸投げの質問
    • 問題・課題が含まれていない質問
    • 意図的に内容が抹消された質問
    • 広告と受け取られるような投稿

    評価が下がると、TOPページの「アクティブ」「注目」タブのフィードに表示されにくくなります。

    質問の評価を下げたことを取り消します

    この機能は開放されていません

    評価を下げる条件を満たしてません

    評価を下げる理由を選択してください

    詳細な説明はこちら

    上記に当てはまらず、質問内容が明確になっていない質問には「情報の追加・修正依頼」機能からコメントをしてください。

    質問の評価を下げる機能の利用条件

    この機能を利用するためには、以下の事項を行う必要があります。

回答 1

checkベストアンサー

+2

$ bundle config build.nokogiri --with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config --with-xslt-config=/usr/local/opt/libxslt/bin/xslt-config
$ bundle install

で,bundle install 時にもオプションを付与する必要が有ると思います!

投稿

  • 回答の評価を上げる

    以下のような回答は評価を上げましょう

    • 正しい回答
    • わかりやすい回答
    • ためになる回答

    評価が高い回答ほどページの上位に表示されます。

  • 回答の評価を下げる

    下記のような回答は推奨されていません。

    • 間違っている回答
    • 質問の回答になっていない投稿
    • スパムや攻撃的な表現を用いた投稿

    評価を下げる際はその理由を明確に伝え、適切な回答に修正してもらいましょう。

  • 2016/06/29 19:12 編集

    回答ありがとうございます。

    しかし、できませんでした・・・。

    `$ bundle config build.nokogiri --with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config --with-xslt-config=/usr/local/opt/libxslt/bin/xslt-config`
    これをすると、
    `You are replacing the current global value of build.nokogiri, which is currently "--use-system-libraries"`
    これがでてきたので、

    `$ bundle config build.nokogiri --use-system-libraries --with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config --with-xslt-config=/usr/local/opt/libxslt/bin/xslt-config`

    これを実行し、
    `$ bundle install`
    bundle installしても、エラーの結果は同じでした。

    キャンセル

  • 2016/06/29 19:15 編集

    $ bundle install --path vendor/bundle
    はどうでしょうか?

    グローバルのnokogiriを置換しようとしているみたいなので.

    キャンセル

  • 2016/06/29 19:21

    できませんでした。

    Fetching gem metadata from https://rubygems.org/...........
    Fetching version metadata from https://rubygems.org/...
    Fetching dependency metadata from https://rubygems.org/..
    Resolving dependencies....
    Installing rake 11.2.2
    Installing i18n 0.7.0
    Installing json 1.8.3 with native extensions
    Installing minitest 5.9.0
    Installing thread_safe 0.3.5
    Installing tzinfo 1.2.2
    Installing activesupport 4.2.5
    Installing builder 3.2.2
    Installing erubis 2.7.0
    Installing mini_portile2 2.1.0
    Installing pkg-config 1.1.7
    Installing nokogiri 1.6.8 with native extensions

    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /Users/m.k/workspace2/line/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.8/ext/nokogiri
    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20160629-18991-13zy2zf.rb extconf.rb --use-system-libraries --with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config --with-xslt-config=/usr/local/opt/libxslt/bin/xslt-config
    Using pkg-config version 1.1.7
    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... no
    checking for xmlParseDoc() in -lxml2... no
    checking for xmlParseDoc() in -llibxml2... no
    -----
    libxml2 is missing. Please locate mkmf.log to investigate how it is failing.
    -----
    *** extconf.rb failed ***
    Could not create Makefile due to some reason, probably lack of necessary
    libraries and/or headers. Check the mkmf.log file for more details. You may
    need configuration options.

    Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
    --help
    --clean
    --use-system-libraries
    --with-zlib-dir
    --without-zlib-dir
    --with-zlib-include
    --without-zlib-include=${zlib-dir}/include
    --with-zlib-lib
    --without-zlib-lib=${zlib-dir}/lib
    --with-xml2-dir
    --without-xml2-dir
    --with-xml2-include
    --without-xml2-include=${xml2-dir}/include
    --with-xml2-lib
    --without-xml2-lib=${xml2-dir}/lib
    --with-libxml-2.0-config
    --without-libxml-2.0-config
    --with-pkg-config
    --without-pkg-config
    --with-xslt-dir
    --without-xslt-dir
    --with-xslt-include
    --without-xslt-include=${xslt-dir}/include
    --with-xslt-lib
    --without-xslt-lib=${xslt-dir}/lib
    --with-libxslt-config
    --without-libxslt-config
    --with-exslt-dir
    --without-exslt-dir
    --with-exslt-include
    --without-exslt-include=${exslt-dir}/include
    --with-exslt-lib
    --without-exslt-lib=${exslt-dir}/lib
    --with-libexslt-config
    --without-libexslt-config
    --with-xml2lib
    --without-xml2lib
    --with-libxml2lib
    --without-libxml2lib

    To see why this extension failed to compile, please check the mkmf.log which can be found here:

    /Users/m.k/workspace2/line/vendor/bundle/ruby/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8/mkmf.log

    extconf failed, exit code 1

    Gem files will remain installed in /Users/m.k/workspace2/line/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.8 for inspection.
    Results logged to /Users/m.k/workspace2/line/vendor/bundle/ruby/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8/gem_make.out
    An error occurred while installing nokogiri (1.6.8), and Bundler cannot continue.
    Make sure that `gem install nokogiri -v '1.6.8'` succeeds before bundling.

    以上のエラーが吐かれました。
    エラーの中に、
    libxml2 is missing. Please locate mkmf.log to investigate how it is failing.
    というのがあるのですが、関係ありますかね?

    キャンセル

  • 2016/06/29 19:27 編集

    一番下のメッセージは,
    libxml2 に失敗した, mkmf.log からどのように失敗したのか調査してください.
    というメッセージです.

    http://stackoverflow.com/questions/19643153/error-to-install-nokogiri-on-osx-10-9-maverick

    ここを参考に,

    bundle config build.nokogiri --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 --use-system-libraries

    としてみてはいかがでしょうか?
    (微妙にオプションが異なるので気をつけてください)

    あと,システムのバージョンでディレクトリバスが異なる可能性があるので,実際にファイル,ディレクトリがあることを確認してから実行してください

    キャンセル

  • 2016/06/29 20:16

    できなかったです。

    $ bundle config build.nokogiri --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 --use-system-libraries

    これをやっても何も表示されず、
    次のコマンド待ちの状態(MacBook-Pro-3:app_name user_name$ )になるだけです。

    キャンセル

  • 2016/06/29 20:19

    bundle config は .bundle/config ファイルに設定を書き込んでいるだけなので,追加で bundle install する必要があります.

    bundle install は, ,bundle/config に基づいて各モジュールをインストールします

    キャンセル

  • 2016/06/29 20:31

    bundle installをしてもエラーは変わりませんでした。

    Fetching gem metadata from https://rubygems.org/...........
    Fetching version metadata from https://rubygems.org/...
    Fetching dependency metadata from https://rubygems.org/..
    Resolving dependencies....
    Using rake 11.2.2
    Using i18n 0.7.0
    Using json 1.8.3
    Using minitest 5.9.0
    Using thread_safe 0.3.5
    Using tzinfo 1.2.2
    Using activesupport 4.2.5
    Using builder 3.2.2
    Using erubis 2.7.0
    Using mini_portile2 2.1.0
    Using pkg-config 1.1.7
    Installing nokogiri 1.6.8 with native extensions

    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /Users/m.k/workspace2/line/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.8/ext/nokogiri
    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20160629-2423-bkqfic.rb extconf.rb --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 --use-system-libraries
    Using pkg-config version 1.1.7
    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... no
    checking for xmlParseDoc() in -lxml2... no
    checking for xmlParseDoc() in -llibxml2... no
    -----
    libxml2 is missing. Please locate mkmf.log to investigate how it is failing.
    -----
    *** extconf.rb failed ***
    Could not create Makefile due to some reason, probably lack of necessary
    libraries and/or headers. Check the mkmf.log file for more details. You may
    need configuration options.

    Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
    --help
    --clean
    --use-system-libraries
    --with-zlib-dir
    --without-zlib-dir
    --with-zlib-include
    --without-zlib-include=${zlib-dir}/include
    --with-zlib-lib
    --without-zlib-lib=${zlib-dir}/lib
    --with-xml2-dir
    --without-xml2-dir
    --with-xml2-include=${xml2-dir}/include
    --with-xml2-lib
    --without-xml2-lib=${xml2-dir}/lib
    --with-xslt-dir
    --without-xslt-dir
    --with-xslt-include
    --without-xslt-include=${xslt-dir}/include
    --with-xslt-lib
    --without-xslt-lib=${xslt-dir}/lib
    --with-libxslt-config
    --without-libxslt-config
    --with-pkg-config
    --without-pkg-config
    --with-exslt-dir
    --without-exslt-dir
    --with-exslt-include
    --without-exslt-include=${exslt-dir}/include
    --with-exslt-lib
    --without-exslt-lib=${exslt-dir}/lib
    --with-libexslt-config
    --without-libexslt-config
    --with-xml2lib
    --without-xml2lib
    --with-libxml2lib
    --without-libxml2lib

    To see why this extension failed to compile, please check the mkmf.log which can be found here:

    /Users/m.k/workspace2/line/vendor/bundle/ruby/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8/mkmf.log

    extconf failed, exit code 1

    Gem files will remain installed in /Users/m.k/workspace2/line/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.8 for inspection.
    Results logged to /Users/m.k/workspace2/line/vendor/bundle/ruby/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8/gem_make.out
    An error occurred while installing nokogiri (1.6.8), and Bundler cannot continue.
    Make sure that `gem install nokogiri -v '1.6.8'` succeeds before bundling.

    キャンセル

  • 2016/06/29 20:34 編集

    ```
    brew install libxml2 libxslt
    brew link libxml2 libxslt --force
    rm -rf .bundle/config
    bundle config build.nokogiri --use-system-libraries --with-xml2-include=/usr/local/include/libxml2 --with-xml2-lib=/usr/lib/
    bundle install
    ```

    はどうでしょうか?

    キャンセル

  • 2016/06/29 20:44

    できませんでした・・・。
    libxml2 libxslt のlinkはもうすでにしてありましたが、一度外して、またlinkさせました。

    以下が実行と結果です。

    $ brew link libxml2 libxslt --force

    Linking /usr/local/Cellar/libxml2/2.9.4... 17 symlinks created
    Linking /usr/local/Cellar/libxslt/1.1.28_1... 22 symlinks created

    $ rm -rf .bundle/config

    $ bundle config build.nokogiri --use-system-libraries --with-xml2-include=/usr/local/include/libxml2 --with-xml2-lib=/usr/lib/

    You are replacing the current global value of build.nokogiri, which is currently "--wit h-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX. platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 --use-system-libr aries"

    $ bundle install
    Fetching gem metadata from https://rubygems.org/...........
    Fetching version metadata from https://rubygems.org/...
    Fetching dependency metadata from https://rubygems.org/..
    Resolving dependencies.....
    Using rake 11.2.2
    Using i18n 0.7.0
    Using json 1.8.3
    Using minitest 5.9.0
    Using thread_safe 0.3.5
    Using tzinfo 1.2.2
    Using activesupport 4.2.5
    Using builder 3.2.2
    Using erubis 2.7.0
    Using mini_portile2 2.1.0
    Using pkg-config 1.1.7
    Installing nokogiri 1.6.8 with native extensions

    Errno::EACCES: Permission denied - /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8/gem_make.out
    An error occurred while installing nokogiri (1.6.8), and Bundler cannot continue.
    Make sure that `gem install nokogiri -v '1.6.8'` succeeds before bundling.

    キャンセル

  • 2016/06/29 20:47

    /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8/gem_make.out

    に書き込み権限がなくてこけてますね.

    ユーザー権限を正しい物にするか,該当のディレクトリを削除したあとにもう一度インストールすると馬木行きそうです.

    rm -rf /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8

    もしかすると,gem install を sudo で行ってしまっていて, アクセス権限がなくて削除できないかもしれないので,その場合は,
    sudo rm -rf /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8

    して,

    bundle install ですかね...

    キャンセル

  • 2016/06/29 21:05

    できませんでした・・・。
    最初rm -rfコマンド許可されず、sudoでやって、bundle installしましたが、だめでした。

    $ rm -rf /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8

    rm: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8/gem_make.out: Permission denied
    rm: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8/mkmf.log: Permission denied
    rm: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8: Permission denied



    $ sudo rm -rf /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8
    Password:


    $ bundle install
    Fetching gem metadata from https://rubygems.org/...........
    Fetching version metadata from https://rubygems.org/...
    Fetching dependency metadata from https://rubygems.org/..
    Resolving dependencies....
    Using rake 11.2.2
    Using i18n 0.7.0
    Using json 1.8.3
    Using minitest 5.9.0
    Using thread_safe 0.3.5
    Using tzinfo 1.2.2
    Using activesupport 4.2.5
    Using builder 3.2.2
    Using erubis 2.7.0
    Using mini_portile2 2.1.0
    Using pkg-config 1.1.7
    Installing nokogiri 1.6.8 with native extensions

    Errno::EACCES: Permission denied - /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.8
    An error occurred while installing nokogiri (1.6.8), and Bundler cannot continue.
    Make sure that `gem install nokogiri -v '1.6.8'` succeeds before bundling.

    キャンセル

  • 2016/06/29 21:07

    ls -l /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/

    で,ユーザー権限を見て,rootになっているものを chown コマンドで自ユーザーに変更してください

    キャンセル

  • 2016/06/29 21:36

    not permittedになってしまいました。

    $ ls -l /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/
    total 0
    これをしたら、
    drwxrwxr-x 5 root wheel 170 Mar 28 01:03 bcrypt-3.1.11
    drwxrwxr-x 6 root wheel 204 Mar 28 01:03 bcrypt-3.1.7
    drwxrwxr-x 7 root wheel 238 Mar 28 01:03 bigdecimal-1.2.7
    drwxrwxr-x 4 root wheel 136 Mar 28 01:03 binding_of_caller-0.7.2
    drwxrwxr-x 4 root wheel 136 Mar 28 01:03 binding_of_caller-0.7.3.pre1
    drwxrwxr-x 5 root wheel 170 Mar 28 01:03 byebug-3.4.0
    drwxrwxr-x 5 root wheel 170 Mar 28 01:03 byebug-8.2.1
    drwxrwxr-x 5 root wheel 170 Mar 28 01:03 byebug-8.2.2
    drwxrwxr-x 5 root wheel 170 Mar 28 01:03 debug_inspector-0.0.2
    drwxr-xr-x 4 root wheel 136 Jun 28 16:58 eventmachine-1.2.0.1
    drwxrwxr-x 6 root wheel 204 Mar 28 01:03 ffi-1.9.10
    drwxrwxr-x 5 root wheel 170 Mar 28 01:03 json-1.8.3
    drwxrwxr-x 6 root wheel 204 Mar 28 01:03 libxml-ruby-2.8.0
    drwxrwxr-x 6 root wheel 204 Mar 28 01:03 mysql2-0.4.3
    drwxr-xr-x 4 root wheel 136 Mar 29 13:10 nokogiri-1.6.6.2
    drwxrwxr-x 6 root wheel 204 Mar 28 01:03 nokogiri-1.6.7
    drwxrwxr-x 6 root wheel 204 Mar 28 01:03 nokogiri-1.6.7.2
    drwxrwxr-x 6 root wheel 204 Mar 28 01:03 psych-2.0.15
    drwxrwxr-x 6 root wheel 204 Mar 28 01:03 rmagick-2.15.4
    drwxrwxr-x 6 root wheel 204 Mar 28 01:03 sqlite3-1.3.11
    drwxrwxr-x 6 root wheel 204 Mar 28 01:03 sqlite3-1.3.9
    drwxrwxr-x 6 root wheel 204 Mar 28 01:03 therubyracer-0.12.2

    このような結果でした。

    キャンセル

  • 2016/06/29 21:37

    chown -Rで全ての権限を変えようとしましたが、not permittedになりました。

    $ chown -R user_name /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/

    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bcrypt-3.1.11/bcrypt_ext.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bcrypt-3.1.11/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bcrypt-3.1.11/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bcrypt-3.1.11: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bcrypt-3.1.7/bcrypt_ext.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bcrypt-3.1.7/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bcrypt-3.1.7/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bcrypt-3.1.7/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bcrypt-3.1.7: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bigdecimal-1.2.7/bigdecimal/jacobian.rb: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bigdecimal-1.2.7/bigdecimal/ludcmp.rb: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bigdecimal-1.2.7/bigdecimal/math.rb: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bigdecimal-1.2.7/bigdecimal/newton.rb: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bigdecimal-1.2.7/bigdecimal/util.rb: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bigdecimal-1.2.7/bigdecimal: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bigdecimal-1.2.7/bigdecimal.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bigdecimal-1.2.7/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bigdecimal-1.2.7/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bigdecimal-1.2.7/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//bigdecimal-1.2.7: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//binding_of_caller-0.7.2/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//binding_of_caller-0.7.2/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//binding_of_caller-0.7.2: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//binding_of_caller-0.7.3.pre1/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//binding_of_caller-0.7.3.pre1/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//binding_of_caller-0.7.3.pre1: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-3.4.0/byebug/byebug.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-3.4.0/byebug: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-3.4.0/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-3.4.0/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-3.4.0: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-8.2.1/byebug/byebug.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-8.2.1/byebug: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-8.2.1/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-8.2.1/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-8.2.1: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-8.2.2/byebug/byebug.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-8.2.2/byebug: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-8.2.2/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-8.2.2/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//byebug-8.2.2: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//debug_inspector-0.0.2/debug_inspector.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//debug_inspector-0.0.2/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//debug_inspector-0.0.2/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//debug_inspector-0.0.2: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//eventmachine-1.2.0.1/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//eventmachine-1.2.0.1/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//eventmachine-1.2.0.1: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//ffi-1.9.10/ffi_c.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//ffi-1.9.10/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//ffi-1.9.10/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//ffi-1.9.10/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//ffi-1.9.10: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//json-1.8.3/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//json-1.8.3/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//json-1.8.3/json/ext/generator.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//json-1.8.3/json/ext/parser.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//json-1.8.3/json/ext: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//json-1.8.3/json: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//json-1.8.3: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//libxml-ruby-2.8.0/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//libxml-ruby-2.8.0/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//libxml-ruby-2.8.0/libxml_ruby.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//libxml-ruby-2.8.0/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//libxml-ruby-2.8.0: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//mysql2-0.4.3/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//mysql2-0.4.3/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//mysql2-0.4.3/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//mysql2-0.4.3/mysql2/mysql2.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//mysql2-0.4.3/mysql2: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//mysql2-0.4.3: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.6.2/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.6.2/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.6.2: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-

    キャンセル

  • 2016/06/29 21:37

    1.6.7/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.7/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.7/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.7/nokogiri/nokogiri.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.7/nokogiri: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.7: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.7.2/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.7.2/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.7.2/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.7.2/nokogiri/nokogiri.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.7.2/nokogiri: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//nokogiri-1.6.7.2: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//psych-2.0.15/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//psych-2.0.15/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//psych-2.0.15/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//psych-2.0.15/psych.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//psych-2.0.15: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//rmagick-2.15.4/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//rmagick-2.15.4/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//rmagick-2.15.4/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//rmagick-2.15.4/RMagick2.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//rmagick-2.15.4: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//sqlite3-1.3.11/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//sqlite3-1.3.11/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//sqlite3-1.3.11/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//sqlite3-1.3.11/sqlite3/sqlite3_native.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//sqlite3-1.3.11/sqlite3: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//sqlite3-1.3.11: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//sqlite3-1.3.9/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//sqlite3-1.3.9/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//sqlite3-1.3.9/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//sqlite3-1.3.9/sqlite3/sqlite3_native.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//sqlite3-1.3.9/sqlite3: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//sqlite3-1.3.9: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//therubyracer-0.12.2/gem.build_complete: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//therubyracer-0.12.2/gem_make.out: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//therubyracer-0.12.2/mkmf.log: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//therubyracer-0.12.2/v8/init.bundle: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//therubyracer-0.12.2/v8: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0//therubyracer-0.12.2: Operation not permitted
    chown: /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/: Operation not permitted

    キャンセル

  • 2016/06/29 21:43

    権限がないので sudo で実行してみてください.また,親ディレクトリが自分の権限になっていないのであれば,親ディレクトリの権限も同様に変更しないとダメだと思います.

    キャンセル

  • 2016/06/29 21:53

    おおおおおお!!!!!!
    できました!!!!!!!
    Library以下全て自ユーザー権限にしたら成功しました!!

    本当にありがとうございます(;_;)!!!!!!!
    感謝しきれないです・・・。
    ありがとうございました(;_;)

    キャンセル

  • 2016/06/29 22:34

    うまく行ったようでよかったです  👏

    キャンセル

同じタグがついた質問を見る

  • Ruby

    9444questions

    Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

  • Ruby on Rails

    8865questions

    Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

  • MySQL

    7004questions

    MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

  • Ruby on Rails 4

    2544questions

    Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。