Installed, just not linked

前端 未结 10 1291
谎友^
谎友^ 2020-12-13 05:49

Note: I\'m not so good at using shell.

I was trying to install Valgrind using brew on Yosemite.

brew install --HEAD valgrind<

10条回答
  •  星月不相逢
    2020-12-13 06:10

    Here is what I tried and it worked:

    $ brew link --overwrite sdl
    Linking /usr/local/Cellar/sdl/1.2.15...
    Error: Could not symlink lib/pkgconfig/sdl.pc
    /usr/local/lib/pkgconfig is not writable.
    

    Looked for pkgconfig: (after chmod 750)

    drwxr-xr-x   4 root           wheel   136B Mar 30  2013 pkgconfig
    

    I tried chown as below:

    $ sudo chown -R  avkashchauhan:admin /usr/local/lib/pkgconfig
    

    it should look like as below:

    drwxr-xr-x   4 avkashchauhan  admin   136B Mar 30  2013 pkgconfig
    

    After I tried it:

    $ brew link sdl                                                                                                                                                                                                                    
    Linking /usr/local/Cellar/sdl/1.2.15... 182 symlinks created
    

提交回复
热议问题