Installation Issue - no rule to make target

I am installing root on my laptop which runs the latest version of macOS (Big Sur 11.4). I need root for python3 so I am trying to build it and was using the following commands:

git clone GitHub - root-project/root: The official repository for ROOT: analyzing, storing and visualizing big data, scientifically
mkdir build
cd build
cmake …/root
make -j8

cmake didn’t give any warnings but the build failed at 90%. I pasted the last bit of output below

[ 88%] Linking CXX shared library …/…/lib/libMinuit.so

[ 88%] Built target Minuit

[ 88%] Building CXX object net/http/CMakeFiles/RHTTP.dir/src/THttpWSEngine.cxx.o

[ 88%] Building CXX object html/CMakeFiles/Html.dir/src/TDocInfo.cxx.o

make[2]: *** No rule to make target roofit/roofitcore/Minuit2', needed by roofit/roofitcore/G__RooFitCore.cxx’. Stop.

make[1]: *** [roofit/roofitcore/CMakeFiles/G__RooFitCore.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs…

[ 88%] Building CXX object net/http/CMakeFiles/RHTTP.dir/src/THttpWSHandler.cxx.o

[ 88%] Building CXX object html/CMakeFiles/Html.dir/src/TDocOutput.cxx.o

[ 88%] Building CXX object geom/geom/CMakeFiles/Geom.dir/src/TGeoVolume.cxx.o

[ 88%] Building CXX object net/http/CMakeFiles/RHTTP.dir/src/TRootSniffer.cxx.o

[ 88%] Linking CXX shared library …/…/lib/libPostscript.so

[ 88%] Built target Postscript

[ 88%] Building CXX object html/CMakeFiles/Html.dir/src/TDocParser.cxx.o

[ 88%] Building CXX object geom/geom/CMakeFiles/Geom.dir/src/TGeoVoxelFinder.cxx.o

[ 90%] Building CXX object html/CMakeFiles/Html.dir/src/THtml.cxx.o

[ 90%] Building CXX object geom/geom/CMakeFiles/Geom.dir/src/TGeoXtru.cxx.o

[ 90%] Building CXX object net/http/CMakeFiles/RHTTP.dir/src/TRootSnifferStore.cxx.o

[ 90%] Building C object net/http/CMakeFiles/RHTTP.dir/civetweb/civetweb.c.o

[ 90%] Building CXX object geom/geom/CMakeFiles/Geom.dir/src/TGeoTessellated.cxx.o

[ 90%] Building CXX object geom/geom/CMakeFiles/Geom.dir/src/TGeoVector3.cxx.o

[ 90%] Building CXX object geom/geom/CMakeFiles/Geom.dir/src/TVirtualGeoConverter.cxx.o

[ 90%] Building CXX object geom/geom/CMakeFiles/Geom.dir/src/TVirtualGeoPainter.cxx.o

[ 90%] Building CXX object geom/geom/CMakeFiles/Geom.dir/src/TVirtualGeoTrack.cxx.o

[ 90%] Building CXX object geom/geom/CMakeFiles/Geom.dir/src/TVirtualMagField.cxx.o

[ 90%] Linking CXX shared library …/lib/libHtml.so

[ 90%] Built target Html

[ 90%] Linking CXX shared library …/…/lib/libGeom.so

[ 90%] Built target Geom

[ 90%] Linking CXX shared library …/…/lib/libRHTTP.so

[ 90%] Built target RHTTP

make: *** [all] Error 2

While we should be able to make ROOT compile on your Mac, if you don’t need a version compiled from sources it is probably quicker to use a prebuild 6.24 release. We have some instructions on how to install the pre-built binaries.

Are those not only compiled for python 2 for macOS?

Sorry, I overlooked the python3 part. In this case, you can install ROOT from conda or homebrew.

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