# How to install an earlier release of ITK

**URL:** <https://discourse.itk.org/t/how-to-install-an-earlier-release-of-itk/4013>\
**Category:** Beginner Questions\
**Created:** [April 5, 2021, 11:37pm UTC](https://discourse.itk.org/t/how-to-install-an-earlier-release-of-itk/4013 "2021-04-05T23:37:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arswitze](https://discourse.itk.org/letter_avatar_proxy/v4/letter/a/46a35a/32.png) [@arswitze](https://discourse.itk.org/u/arswitze)\
**Post date:** [April 5, 2021, 11:37pm UTC](https://discourse.itk.org/t/how-to-install-an-earlier-release-of-itk/4013/1 "2021-04-05T23:37:11Z")

</div>

Hello,

I am trying to use a tool called PETPVC which requires the insight toolkit. I built and installed ITK version 5.1 on MacOSX15, however, I am unable to build PETPVC in Cmake because of a missing CylinderSpatialObject:

**fatal error:**  **‘itkCylinderSpatialObject.h’ file not found**  
#include “itkCylinderSpatialObject.h”

I have read that the only fix is to use version 4.13.3, as it still contains the missing object. How do I uninstall ITK 5.1 and replace it with ITK 4.13.3?

Thank you for your help.  
Aaron

---

<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:** [April 6, 2021, 12:59am UTC](https://discourse.itk.org/t/how-to-install-an-earlier-release-of-itk/4013/2 "2021-04-06T00:59:38Z")

</div>

Delete the directory where you have built the ITK, as well as any “installed” ITK files. Then download and build ITK 4.13.3.

---

<div class="post-metadata">

**Author:** ![arswitze](https://discourse.itk.org/letter_avatar_proxy/v4/letter/a/46a35a/32.png) [@arswitze](https://discourse.itk.org/u/arswitze)\
**Post date:** [April 6, 2021, 3:39am UTC](https://discourse.itk.org/t/how-to-install-an-earlier-release-of-itk/4013/3 "2021-04-06T03:39:09Z")

</div>

Thank you for your reply. I have deleted all files associated with version 5.1. When trying to configure the ITK 4.13.3 build using Cmake 3.20.0, it fails with the following errors:

CMake Deprecation Warning at Modules/ThirdParty/KWSys/src/KWSys/CMakeLists.txt:84 (CMAKE\_MINIMUM\_REQUIRED):  
Compatibility with CMake \< 2.8.12 will be removed from a future version of  
CMake.

Update the VERSION argument value or use a … suffix to tell  
CMake that the project does not need compatibility with older versions.

I have gone into CMakeLists.txt that is in the first directory of the source code and updated the version argument as it suggested but continue to get similar errors. As a result, I cannot build or install ITK 4.13.3 like I did with version 5.1. Any suggestions?

Thank you very mcuh

---

<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:** [April 6, 2021, 12:49pm UTC](https://discourse.itk.org/t/how-to-install-an-earlier-release-of-itk/4013/4 "2021-04-06T12:49:59Z")

</div>

> [@arswitze](#):
>
> CMake Deprecation Warning

This is a warning, ignore it. Do not modify the sources. After configuring once or twice, you will be able to click “Generate”. Then you will be able to build it via `ninja` or `make`.
