# Error in building Slicer from source about ITK

**URL:** <https://discourse.slicer.org/t/error-in-building-slicer-from-source-about-itk/10534>\
**Category:** Support\
**Tags:** build\
**Created:** [March 4, 2020, 2:45am UTC](https://discourse.slicer.org/t/error-in-building-slicer-from-source-about-itk/10534 "2020-03-04T02:45:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akash23](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@Akash23](https://discourse.slicer.org/u/Akash23)\
**Post date:** [March 4, 2020, 2:45am UTC](https://discourse.slicer.org/t/error-in-building-slicer-from-source-about-itk/10534/1 "2020-03-04T02:45:23Z")

</div>

Hi, all,

I ran the build in my ubuntu 18, with gcc/g++ 7.4 and cmake 3.13 and qt5. But it seems to me the path for ITK git repository is not correct. Anyone ran into this issue? How should I provide correct path for ITK build?  
fatal: not a git repository (or any of the parent directories): .git  
CMake Error at /home/me/MyProjects/Slicer-SuperBuild-Debug/ITK-prefix/tmp/ITK-gitupdate.cmake:13 (message):  
Failed to get the hash for HEAD

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [March 4, 2020, 2:19pm UTC](https://discourse.slicer.org/t/error-in-building-slicer-from-source-about-itk/10534/2 "2020-03-04T14:19:19Z")

</div>

Hmm, that’s an odd error, maybe a network glitch. Probably deleting the build tree and starting from scratch will work. If this is repeatable, then try checking out ITK manually and report back with full logs.
