3

実行brew doctorしたところ、修正するために取るべきアクションはわかっているが、正しい軌道に乗っているかどうかを確認したいといういくつかの警告メッセージが表示されました。受け取った警告のリストは次のとおりです。

Warning: /usr/local/lib/pkgconfig isn't writable.

This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/lib/pkgconfig

Warning: Some directories in /usr/local/share/man aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:

    /usr/local/share/man/mann

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libtcl8.6.dylib
    /usr/local/lib/libtk8.6.dylib

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
    /usr/local/lib/pkgconfig/tcl.pc
    /usr/local/lib/pkgconfig/tk.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
    /usr/local/lib/libtclstub8.6.a
    /usr/local/lib/libtkstub8.6.a

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:

    libyaml

最初のケースでは、実行する必要がありますchown <user>/usr/local/lib/pkgconfig

Warning: /usr/local/lib/pkgconfig isn't writable.

    This can happen if you "sudo make install" software that isn't managed by
    by Homebrew. If a formula tries to write a file to this directory, the
    install will fail during the link step.

    You should probably `chown` /usr/local/lib/pkgconfig

それではchown <user>/usr/local/share/man/mann次のメッセージへ

Warning: Some directories in /usr/local/share/man aren't writable.
    This can happen if you "sudo make install" software that isn't managed
    by Homebrew. If a brew tries to add locale information to one of these
    directories, then the install will fail during the link step.
    You should probably `chown` them:

        /usr/local/share/man/mann

ファイルの削除に関するこれらの警告に対して何をすべきかわからない. (???)

Warning: Unbrewed dylibs were found in /usr/local/lib.
    If you didn't put them there on purpose they could cause problems when
    building Homebrew formulae, and may need to be deleted.

    Unexpected dylibs:
        /usr/local/lib/libtcl8.6.dylib
        /usr/local/lib/libtk8.6.dylib

    Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
    If you didn't put them there on purpose they could cause problems when
    building Homebrew formulae, and may need to be deleted.

    Unexpected .pc files:
        /usr/local/lib/pkgconfig/tcl.pc
        /usr/local/lib/pkgconfig/tk.pc

    Warning: Unbrewed static libraries were found in /usr/local/lib.
    If you didn't put them there on purpose they could cause problems when
    building Homebrew formulae, and may need to be deleted.

    Unexpected static libraries:
        /usr/local/lib/libtclstub8.6.a
        /usr/local/lib/libtkstub8.6.a

最後に実行しbrew link libyamlますか?

Warning: You have unlinked kegs in your Cellar
    Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
    those kegs to fail to run properly once built. Run `brew link` on these:

        libyaml
4

2 に答える 2

0

アクセス許可の問題を解決するには、chown -R your_username /usr/local/usr/local の下にあるすべての所有権を再帰的に変更します。

あなたがする必要がありbrew link libyamlます。

dylib に関する警告は、Tcl/Tk ライブラリが /usr/local にインストールされていることを示しています。どうやってそこにたどり着いたかが分かっていて、必要がないことがわかっている場合は、アンインストールできます。どうやってそこにたどり着いたのかわからない場合は、そのファイルの名前を変更して、ビルドがそれを取得しないようにすることができます (そして、何かがそれらに依存していることがわかった場合に元に戻すことができます)。Tk 関連の方法で何かが壊れない限り、また壊れるまでそのままにしておくことはおそらく問題ありません。トラブルを引き起こすことは決してない可能性があります。

于 2014-08-22T02:23:48.477 に答える
0

を実行して問題を解決しましsudo chown <user>/usr/local/lib/pkgconfigsudo chown <user>/usr/local/share/man/mann

次に、推奨されたファイルを削除して実行brew link libyamlしましたが、すべて問題ありませんでした。

于 2014-08-22T02:24:21.090 に答える