# Build Slicer in Windows subsystem complaining rename permission denied

**URL:** <https://discourse.slicer.org/t/build-slicer-in-windows-subsystem-complaining-rename-permission-denied/10370>\
**Category:** Support\
**Tags:** build\
**Created:** [February 20, 2020, 7:53pm UTC](https://discourse.slicer.org/t/build-slicer-in-windows-subsystem-complaining-rename-permission-denied/10370 "2020-02-20T19:53:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhiy](https://avatars.discourse-cdn.com/v4/letter/z/0ea827/32.png) [@Zhiy](https://discourse.slicer.org/u/Zhiy)\
**Post date:** [February 20, 2020, 7:53pm UTC](https://discourse.slicer.org/t/build-slicer-in-windows-subsystem-complaining-rename-permission-denied/10370/1 "2020-02-20T19:53:01Z")

</div>

I tried to build Slicer nightly code in Ubuntu 18 (subsystem of windows 10). The cmake version is 3.13.4. The gcc/g++ versions are both 7.4. I ran cmake -DCMAKE\_BUILD\_TYPE:STRING=Debug   
-DQt5\_DIR:PATH=/home/me/Qt/5.14.0/gcc\_64/lib/cmake/Qt5   
-DSlicer\_USE\_SYSTEM\_QT:BOOL=1   
…/Slicer and configured it successfully. Then I ran sudo make. The building process complains that 🙂 CMake Error at python-source-prefix/src/python-source-stamp/extract-python-source.cmake:51 (file):

file RENAME failed to rename

```
/home/me/MyProjects/Slicer-SuperBuild-Debug/ex-python-source1234/Python-3.6.7

```

to

```
/home/me/MyProjects/Slicer-SuperBuild-Debug/Python-3.6.7

```

because: Permission denied

Any help is appreciate.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 21, 2020, 1:41am UTC](https://discourse.slicer.org/t/build-slicer-in-windows-subsystem-complaining-rename-permission-denied/10370/2 "2020-02-21T01:41:08Z")

</div>

It does not look like an error specific to Slicer. Can you do the rename manually?
