Cmake error - PYTHON_LIBRARY (ADVANCED)

Hello Everybody!!

ROOT Version: 6.13.02
Platform: Ubuntu 16

I don’t what to do??

user@simulation:~/Softwares/root/root-6.13.02-build$ cmake  -DCMAKE_INSTALL_PREFIX=/home/lattes01/Softwares/root/root-6.13.02-install  python=ON  /home/lattes01/Softwares/root/root-6.13.02
....
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PYTHON_LIBRARY (ADVANCED)
    linked by target "PyROOT" in directory /home/user/Softwares/root/root-6.13.02/bindings/pyroot

-- Configuring incomplete, errors occurred!
See also "/home/lattes01/Softwares/root/root-6.13.02-build/CMakeFiles/CMakeOutput.log".
See also "/home/lattes01/Softwares/root/root-6.13.02-build/CMakeFiles/CMakeError.log".

I did export PYTHON_LIBRARY=/home/user/Softwares/root/root-6.13.02/bindings/pyroot/
But it didn’t help

Thanks in advance!
Valeriana

Hi Valeriana,

You need to install libpython-devel or libpython-dev or python-devel or python-dev or whatever else your distribution calls the python development package.

Also, you should use cmake ... -Dpython=ON

Cheers, Axel.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.