How to fix "recipe for target 'lib/libPyROOT.so' failed"


ROOT Version: 6.14.04
Platform: Ubuntu 18
Compiler: Not Provided


Hey there, I’ve been trying to get PyROOT to work for a while now and this last time I tried building from the source with cmake, but I got this error after running the “cmake --build .” command. Is there a way I could fix this?

Without the error you got it’s impossible to tell what may have gone wrong. Usually, it’s a problem with ABI compatibility between the C++ standard library and Python, or a problem in the configuration (i.e. using a mix of Python 2.x and 3.x in the configuration). However, instead of building ROOT from sources, I strongly recommend you to install from the binaries that we distribute on our website: https://root.cern/content/release-61404. Should be a lot easier. Just make sure you have all dependencies installed. You can see an up to date list here. Cheers,

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