This repository has been archived by the owner. It is now read-only.

Error when attempting to symlink ossp-uuid #11427

Closed
mhen opened this Issue Apr 3, 2012 · 4 comments

Comments

Projects
None yet
4 participants
@mhen

mhen commented Apr 3, 2012

When I tried to install postgresql I received the following error:

https://gist.github.com/2294988

I then ran brew doctor, resolved a number of issues, leaving these:

https://gist.github.com/2295026

However, when I attempt symlink ossp-uuid into the homebrew prefix, I receive this:

    Error: Permission denied - /usr/local/lib/pkgconfig

And running as super-user:

    Password:
    Cowardly refusing to `sudo brew link'```

There is, however, no pkgconfig in that directory. What could be going wrong here?
@Sharpie

This comment has been minimized.

Show comment
Hide comment
@Sharpie

Sharpie Apr 4, 2012

Contributor

sudo brew is never the answer---in fact it can cause the problem by creating things in the brew prefix that are owned by root.

Try giving yourself ownership of /usr/local/lib/pkgconfig instead:

sudo chown -R `whoami` /usr/local/lib/pkgconfig
Contributor

Sharpie commented Apr 4, 2012

sudo brew is never the answer---in fact it can cause the problem by creating things in the brew prefix that are owned by root.

Try giving yourself ownership of /usr/local/lib/pkgconfig instead:

sudo chown -R `whoami` /usr/local/lib/pkgconfig
@mhen

This comment has been minimized.

Show comment
Hide comment
@mhen

mhen Apr 4, 2012

Debugged the link command, and tried sudo chown 'whoami' usr/local/lib/, which solved it. Homebrew made it look like it didn't have access rights to a directory that it had not created yet, or I misunderstood the message. In any case, mystery solved!

mhen commented Apr 4, 2012

Debugged the link command, and tried sudo chown 'whoami' usr/local/lib/, which solved it. Homebrew made it look like it didn't have access rights to a directory that it had not created yet, or I misunderstood the message. In any case, mystery solved!

@mhen mhen closed this Apr 4, 2012

@FabricioFernandes

This comment has been minimized.

Show comment
Hide comment
@FabricioFernandes

FabricioFernandes May 30, 2012

I got it when I tried to install postgresql:
Error: Could not symlink file: /usr/local/Cellar/ossp-uuid/1.6.2/share/man/man3/uuid.3
/usr/local/share/man/man3 is not writable. You should change its permissions.

Then I did:
sudo chown -R whoami /usr/local/share/man/man3

I got it when I tried to install postgresql:
Error: Could not symlink file: /usr/local/Cellar/ossp-uuid/1.6.2/share/man/man3/uuid.3
/usr/local/share/man/man3 is not writable. You should change its permissions.

Then I did:
sudo chown -R whoami /usr/local/share/man/man3

@arieljake

This comment has been minimized.

Show comment
Hide comment

@Homebrew Homebrew locked and limited conversation to collaborators Aug 18, 2015

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.