# "Installing" ITK 5

**URL:** https://discourse.itk.org/t/installing-itk-5/2766
**Category:** Engineering
**Created:** [February 26, 2020, 5:22pm UTC](https://discourse.itk.org/t/installing-itk-5/2766 "2020-02-26T17:22:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![imikejackson](https://discourse.itk.org/user_avatar/discourse.itk.org/imikejackson/32/35_2.png) [@imikejackson](https://discourse.itk.org/u/imikejackson)
#### Post date: [February 26, 2020, 5:22pm UTC](https://discourse.itk.org/t/installing-itk-5/2766/1 "2020-02-26T17:22:08Z")

</div>

We are currently using ITK 5.1rc2 for our project. We have noticed that if we just set ITK\_DIR to the build directory for ITK our project will compile. If we do an “install” of ITK into a different directory then set ITK\_DIR to that installation we start getting header not found errors and library not found errors. (This is with a clean configuration and compile of our project). Is using an actual “install” of ITK supported? I know in the distant path it wasn’t really supported and so we have been using the ITK build directory for this entire time (a few years at least). Just curious if anything has changed or was intended to be changed.

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [February 26, 2020, 5:39pm UTC](https://discourse.itk.org/t/installing-itk-5/2766/2 "2020-02-26T17:39:34Z")

</div>

Installing should also work. Since that is used far less frequently (people mostly set ITK\_DIR to the build tree), every once in a while some error creeps into the install option. The bugs should be reported, and ideally a PR made.

---

<div class="post-metadata">

### Author: ![imikejackson](https://discourse.itk.org/user_avatar/discourse.itk.org/imikejackson/32/35_2.png) [@imikejackson](https://discourse.itk.org/u/imikejackson)
#### Post date: [February 26, 2020, 5:41pm UTC](https://discourse.itk.org/t/installing-itk-5/2766/3 "2020-02-26T17:41:00Z")

</div>

Thanks for the sanity check. The issues were in the TotalVariation remote module. I don’t think the headers are installed into the correct location. I will get one of our engineers to replicate the issue.

---

<div class="post-metadata">

### Author: ![phcerdan](https://discourse.itk.org/user_avatar/discourse.itk.org/phcerdan/32/286_2.png) [@phcerdan](https://discourse.itk.org/u/phcerdan)
#### Post date: [February 26, 2020, 6:20pm UTC](https://discourse.itk.org/t/installing-itk-5/2766/4 "2020-02-26T18:20:16Z")

</div>

The TotalVariation remote module was updated a few days ago, now it installs headers in a standard ITK location. Could you try to reproduce your error with current ITK master? If you still have problems, please report it here or with an issue in github with a complete log of the error/warnings.

---

<div class="post-metadata">

### Author: ![imikejackson](https://discourse.itk.org/user_avatar/discourse.itk.org/imikejackson/32/35_2.png) [@imikejackson](https://discourse.itk.org/u/imikejackson)
#### Post date: [February 26, 2020, 9:08pm UTC](https://discourse.itk.org/t/installing-itk-5/2766/5 "2020-02-26T21:08:47Z")

</div>

Unfortunately I am not sure I can attempt to reproduce right now. We are dependent on the 5.1rc2 (or at least I am told) so I am hesitant to upend my dev environment after I just got it working again.  
@dzenanz @matt.mccormick Can I use ITK master instead of rc2 for our work?

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [February 26, 2020, 9:30pm UTC](https://discourse.itk.org/t/installing-itk-5/2766/6 "2020-02-26T21:30:19Z")

</div>

You can use bdeb5186bb280624c168297d73536c319e290bb3, which is after TotalVariation update, but before b6ad2853de39734dd2427635949a88a398147df3 which makes a change to remote module system.
