chmod before building, and run everything as sudo