# Cannot compile ITK in CentOS 7

**URL:** https://discourse.itk.org/t/cannot-compile-itk-in-centos-7/5049
**Category:** Beginner Questions
**Created:** [June 3, 2022, 6:25pm UTC](https://discourse.itk.org/t/cannot-compile-itk-in-centos-7/5049 "2022-06-03T18:25:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Humberto\_M](https://discourse.itk.org/user_avatar/discourse.itk.org/humberto_m/32/2717_2.png) [@Humberto\_M](https://discourse.itk.org/u/Humberto_M)
#### Post date: [June 3, 2022, 6:25pm UTC](https://discourse.itk.org/t/cannot-compile-itk-in-centos-7/5049/1 "2022-06-03T18:25:05Z")

</div>

Hello, I have been trying to install ITK in my university’s interactive computing environment which runs Linux CentOS 7. Of course I do not have root access, so I’m not sure if that’s where the problem is coming from.

These are my steps:

1. Clone the git repository into my $HOME directory
2. mkdir ITK-build
3. cd ITK-build
4. ccmake …/ITK
5. I run the configuration steps and everything seems to be working fine (hit the c key twice and then g)
6. When I run make in the same directory, I get the following errors:

In file included from /home/hmonsiva/ITK-build/KWStyle/Utilities/boost/noncopyable.hpp(15),  
from /home/hmonsiva/ITK-build/KWStyle/Utilities/boost/xpressive/detail/core/state.hpp(18),  
from /home/hmonsiva/ITK-build/KWStyle/Utilities/boost/xpressive/detail/core/matcher/alternate\_end\_matcher.hpp(20),  
from /home/hmonsiva/ITK-build/KWStyle/Utilities/boost/xpressive/detail/core/matchers.hpp(17),  
from /home/hmonsiva/ITK-build/KWStyle/Utilities/boost/xpressive/regex\_primitives.hpp(22),  
from /home/hmonsiva/ITK-build/KWStyle/Utilities/boost/xpressive/xpressive\_static.hpp(24),  
from /home/hmonsiva/ITK-build/KWStyle/Utilities/boost/xpressive/xpressive.hpp(18),  
from /home/hmonsiva/ITK-build/KWStyle/kwsParser.cxx(18):  
/home/hmonsiva/ITK-build/KWStyle/Utilities/boost/core/noncopyable.hpp(42): error: defaulted default constructor cannot be constexpr because the corresponding implicitly declared default constructor would not be constexpr  
BOOST\_CONSTEXPR noncopyable() = default;  
^

compilation aborted for /home/hmonsiva/ITK-build/KWStyle/kwsParser.cxx (code 2)  
make[5]: \*\*\* [CMakeFiles/KWStyleLib.dir/kwsParser.cxx.o] Error 2  
make[4]: \*\*\* [CMakeFiles/KWStyleLib.dir/all] Error 2  
make[3]: \*\*\* [all] Error 2  
make[2]: \*\*\* [KWStyle-prefix/src/KWStyle-stamp/KWStyle-build] Error 2  
make[1]: \*\*\* [CMakeFiles/KWStyle.dir/all] Error 2  
make: \*\*\* [all] Error 2  
hmonsiva@workbench-fe03:~/ITK-build $

Any help would be greatly appreciated! I need ITK to be able to install ANTs.

---

<div class="post-metadata">

### Author: ![edgar](https://discourse.itk.org/letter_avatar_proxy/v4/letter/e/b487fb/32.png) [@edgar](https://discourse.itk.org/u/edgar)
#### Post date: [June 4, 2022, 4:55pm UTC](https://discourse.itk.org/t/cannot-compile-itk-in-centos-7/5049/2 "2022-06-04T16:55:29Z")

</div>

Hi. I’m not part of the ITK team, just a regular user.

1. There is a `CMakeCache.txt` file in the `build` directory which shows your compilation options. This file may be useful to know what you are actually using to compile.
2. Do you know if you have all the requirements? (e.g. boost libraries)

If this does not help, at least you know that someone read your post ( : . The developers will surely answer soon (they always do). Good luck!

---

<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: [June 6, 2022, 11:42am UTC](https://discourse.itk.org/t/cannot-compile-itk-in-centos-7/5049/3 "2022-06-06T11:42:38Z")

</div>

You might be using too old version of ITK, or too new version of the compiler.
