Permission denied on run 'make tests'

Matt Mackall mpm at selenic.com
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 run-tests.py
> Traceback (most recent call last):
>   File "setup.py", line 176, in <module>
>     f = open("mercurial/__version__.py", "w")
> IOError: [Errno 13] Permission denied: 'mercurial/__version__.py'
> 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