Permission denied on run 'make tests'

Matt Mackall mpm at
Fri May 27 10:33:04 CDT 2011

On Fri, 2011-05-27 at 23:29 +0800, yun lee wrote:
> hello, when I run 'make tests'
> make tests
> cd tests && python
> Traceback (most recent call last):
>   File "", line 176, in <module>
>     f = open("mercurial/", "w")
> IOError: [Errno 13] Permission denied: 'mercurial/'
> make: *** [tests] Error 1
> what's the problem, please?

As it says, you don't have permission to write to that file.

..and if you check the permissions on that file, you'll probably
discover it's because it's owned by root.

Why would it be owned as root? Probably because you ran the last install
as root and it created the file.

Mathematics is the supreme nostalgia of our time.

More information about the Mercurial-devel mailing list