# Problem with the Installing of VTK in Ubuntu

**URL:** https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658
**Category:** Support
**Created:** [June 3, 2022, 8:53pm UTC](https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658 "2022-06-03T20:53:54Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![YMAkib](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/y/8e7dd6/32.png) [@YMAkib](https://discourse.vtk.org/u/YMAkib)
#### Post date: [June 3, 2022, 8:53pm UTC](https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658/1 "2022-06-03T20:53:54Z")

</div>

I am facing the following problem. Can Anyone please help? Thank you.

```auto
Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Error at CMake/FindPythonLibs.cmake:183 (FILE):
  FILE STRINGS file "/usr/include/python3.6/patchlevel.h" cannot be read.
Call Stack (most recent call first):
  CMake/vtkWrapPython.cmake:167 (find_package)
  Utilities/Python/CMakeLists.txt:4 (include)

CMake Error at CMake/FindPythonLibs.cmake:183 (FILE):
  FILE STRINGS file "/usr/include/python3.6/patchlevel.h" cannot be read.
Call Stack (most recent call first):
  CMake/vtkPythonWrapping.cmake:6 (find_package)
  Wrapping/PythonCore/CMakeLists.txt:2 (include)

CMake Warning at CMake/vtkPythonWrapping.cmake:14 (message):
  Python library . mismatches python 3.10.
Call Stack (most recent call first):
  Wrapping/PythonCore/CMakeLists.txt:2 (include)

CMake Deprecation Warning at ThirdParty/verdict/vtkverdict/CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

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

CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find LibPROJ (missing: LibPROJ_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  CMake/FindLibPROJ.cmake:43 (find_package_handle_standard_args)
  CMake/vtkModuleMacros.cmake:891 (find_package)
  ThirdParty/libproj/CMakeLists.txt:1 (vtk_module_third_party)

-- Configuring incomplete, errors occurred!
See also "/home/slm_lab/vtk/build/CMakeFiles/CMakeOutput.log".
See also "/home/slm_lab/vtk/build/CMakeFiles/CMakeError.log".

```

---

<div class="post-metadata">

### Author: ![mau\_igna\_06](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mau_igna_06/32/8064_2.png) [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)
#### Post date: [June 4, 2022, 9:16am UTC](https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658/2 "2022-06-04T09:16:37Z")

</div>

Did you try building Slicer to know if the same issue happens there?

It’s a side step but I hope it helps

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [June 4, 2022, 9:22am UTC](https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658/3 "2022-06-04T09:22:47Z")

</div>

Please Install libproj-dev

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [June 6, 2022, 1:10pm UTC](https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658/4 "2022-06-06T13:10:51Z")

</div>

Well, the Python headers are also missing here.

---

<div class="post-metadata">

### Author: ![YMAkib](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/y/8e7dd6/32.png) [@YMAkib](https://discourse.vtk.org/u/YMAkib)
#### Post date: [June 7, 2022, 10:36pm UTC](https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658/5 "2022-06-07T22:36:38Z")

</div>

No I haven’t tried to build it by Slicer. May I know how to use it?

---

<div class="post-metadata">

### Author: ![YMAkib](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/y/8e7dd6/32.png) [@YMAkib](https://discourse.vtk.org/u/YMAkib)
#### Post date: [June 7, 2022, 10:38pm UTC](https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658/6 "2022-06-07T22:38:52Z")

</div>

I have already installed it but the same things happening all the time.

---

<div class="post-metadata">

### Author: ![mau\_igna\_06](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mau_igna_06/32/8064_2.png) [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)
#### Post date: [June 7, 2022, 11:16pm UTC](https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658/7 "2022-06-07T23:16:06Z")

</div>

Here ypu have:

[https://slicer.readthedocs.io/en/latest/developer\_guide/build\_instructions/windows.html](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/windows.html)

---

<div class="post-metadata">

### Author: ![YMAkib](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/y/8e7dd6/32.png) [@YMAkib](https://discourse.vtk.org/u/YMAkib)
#### Post date: [June 8, 2022, 2:14am UTC](https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658/8 "2022-06-08T02:14:22Z")

</div>

I am using the following steps to install LIGGGHTS. May I know where is the problem going on? When I am using "make auto ", I am getting the mentioned error.

```auto
sudo apt-get install ffmpeg
sudo apt install openmpi-bin
sudo apt install git
git clone https://github.com/CFDEMproject/LIGGGHTS-PUBLIC.git

sudo apt install cmake libavcodec-dev libavformat-dev libavutil-dev libboost-dev
libdouble-conversion-dev libeigen3-dev libexpat1-dev libfontconfig-dev libfreetype6-dev
libgdal-dev libglew-dev libhdf5-dev libjpeg-dev libjsoncpp-dev liblz4-dev liblzma-dev
libnetcdf-dev libnetcdf-cxx-legacy-dev libogg-dev libpng-dev libpython3-dev
libqt5opengl5-dev libqt5x11extras5-dev libsqlite3-dev libswscale-dev libtheora-dev
libtiff-dev libxml2-dev libxt-dev qtbase5-dev qttools5-dev zlib1g-dev

cd ~/LIGGGHTS-PUBLIC/src
make auto
gedit MAKE/Makefile.user
USE_VTK is set to “ON”
AUTOINSTALL_VTK = "ON"
make auto
sudo ln -s ~/LIGGGHTS-PUBLIC/src/lmp_auto /bin/lmp380
lmp380

```

Looking for some cordial help. Thank you.

---

<div class="post-metadata">

### Author: ![YMAkib](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/y/8e7dd6/32.png) [@YMAkib](https://discourse.vtk.org/u/YMAkib)
#### Post date: [June 8, 2022, 6:25am UTC](https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658/9 "2022-06-08T06:25:27Z")

</div>

Can you please tell me what is going on now?

```auto
slm_lab@slmlab-VirtualBox:~/LIGGGHTS-PUBLIC/src$ make auto
Creating list of contact models completed.
make[1]: Entering directory '/home/slm_lab/LIGGGHTS-PUBLIC/src/Obj_auto'
Makefile:945: ***'Could not determine suitable appendix of VTK library with VTK_INC="-I../../lib/vtk/install/include/vtk-8.0", VTK_LIB="-L/home/liggghts/vtk/lib" and VTK_APPENDIX="-8.0"'. Stop.
make[1]: Leaving directory '/home/slm_lab/LIGGGHTS-PUBLIC/src/Obj_auto'
make: *** [Makefile:114: auto] Error 2

```

---

<div class="post-metadata">

### Author: ![mau\_igna\_06](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mau_igna_06/32/8064_2.png) [@mau\_igna\_06](https://discourse.vtk.org/u/mau_igna_06)
#### Post date: [June 8, 2022, 8:01am UTC](https://discourse.vtk.org/t/problem-with-the-installing-of-vtk-in-ubuntu/8658/10 "2022-06-08T08:01:04Z")

</div>

Probably you should check your dirdtotires
