Brew error: Could not symlink, path is not writable

后端 未结 5 543
醉梦人生
醉梦人生 2021-01-30 02:19

When I try to install a library with homebrew (brew install aLibrary), I got the following error:

Could not symlink lib/pkgconfig/a         


        
5条回答
  •  梦如初夏
    2021-01-30 02:35

    As explained here by Rick:

    Start with brew doctor which will show you errors with your brew setup.

    You might see something like this: "Warning: /usr/local/lib/pkgconfig isn't writable."

    It will give you the advice that: "You should probably chown /usr/local/lib/pkgconfig".

    This means: sudo chown -R $(whoami) /usr/local/lib/pkgconfig

    Then you will need to link the files with this: brew link yourLibrary

    If this does not work hopefully the output of brew doctor will give you enough to continue the search.

提交回复
热议问题