Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Cppcheck fails to build unless -vd flag is given on 10.7 #19464

Closed
dmwelch opened this issue Apr 26, 2013 · 8 comments
Closed

Cppcheck fails to build unless -vd flag is given on 10.7 #19464

dmwelch opened this issue Apr 26, 2013 · 8 comments

Comments

@dmwelch
Copy link

dmwelch commented Apr 26, 2013

Mountain Lion 10.7

https://gist.github.com/dmwelch/5469629

@mistydemeo
Copy link
Member

What are the permissions on /raid0/homes/dmwelch/Library/Logs?

This is working when you build verbose because build logs aren't written into the log directory. The build actually failed from Homebrew being unable to write the logs:

Error: Permission denied - /raid0/homes/dmwelch/Library/Logs

@dmwelch
Copy link
Author

dmwelch commented Apr 26, 2013

@adamv
Copy link
Contributor

adamv commented Apr 30, 2013

Mine are owned by "adamv adamv", not "adam user", though I don't suppose that makes any difference.

@adamv
Copy link
Contributor

adamv commented Apr 30, 2013

Works here without verbose, but I'm not installing with sudo either. Suggest using non-sudo Homebrew install, or making sure root can write to your log folder appropriately.

@adamv adamv closed this as completed Apr 30, 2013
@dmwelch
Copy link
Author

dmwelch commented Apr 30, 2013

Sudo should not be the issue, since the permissions are open.

@adamv: Why close an issue b/c "it works on my machine"? Leave it open for someone else to tackle, bro.

@mistydemeo
Copy link
Member

@dmwelch Just for comparison's sake, can you successfully sudo touch /raid0/homes/dmwelch/Library/Logs/cppcheck/foo?

@dmwelch
Copy link
Author

dmwelch commented Apr 30, 2013

@mistydemeo @adamv
That does fail. So does:

sudo touch /raid0/homes/dmwelch/Library/Logs/Homebrew/cppcheck/foo

The cppcheck/ dir doesn't exist, but I can't create that either as sudo.

Now this is something I can bring to my system admin. Thanks for the help guys.

@adamv adamv reopened this Apr 30, 2013
@adamv adamv closed this as completed May 1, 2013
@dmwelch
Copy link
Author

dmwelch commented May 1, 2013

Success!

sudo su -
brew install cppcheck

Per my admin:

I am going to guess it has something to do with the fact that your home directory is on a NFS share. I am betting that if you sudo su - and then try the homebrew install of the application, it will work."

Cheers!

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants