Cern root on mac

Hi everyone,

Please help me install ROOT on mac.

I installed Xcode from apple developer website but did not get SDKs.

I used homebrew to install ROOT.

which root
opt/homebrew/bin/root

root

warning: no such sysroot directory: ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk’
warning: using sysroot for ‘MacOSX’ but targeting ‘iPhone’
C system headers (glibc/Xcode/Windows SDK) must be installed.
error: entry with relative path at the root level is not discoverable
{ ‘name’: ‘’, ‘type’: ‘directory’,
^~
Error in modulemap.overlay!

*** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/opt/homebrew/Cellar/root/6.26.06_1/lib/root/libCling.so] llvm::vfs::OverlayFileSystem::pushOverlay(llvm::IntrusiveRefCntPtrllvm::vfs::FileSystem) (no debug info)
[/opt/homebrew/Cellar/root/6.26.06_1/lib/root/libCling.so] (anonymous namespace)::createCIImpl(std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_deletellvm::MemoryBuffer >, cling::CompilerOptions const&, char const*, std::__1::unique_ptr<clang::ASTConsumer, std::__1::default_deleteclang::ASTConsumer >, std::__1::vector<std::__1::shared_ptrclang::ModuleFileExtension, std::__1::allocator<std::__1::shared_ptrclang::ModuleFileExtension > > const&, bool, bool) (no debug info)
[/opt/homebrew/Cellar/root/6.26.06_1/lib/root/libCling.so] cling::CIFactory::createCI(llvm::StringRef, cling::InvocationOptions const&, char const*, std::__1::unique_ptr<clang::ASTConsumer, std::__1::default_deleteclang::ASTConsumer >, std::__1::vector<std::__1::shared_ptrclang::ModuleFileExtension, std::__1::allocator<std::__1::shared_ptrclang::ModuleFileExtension > > const&) (no debug info)
[/opt/homebrew/Cellar/root/6.26.06_1/lib/root/libCling.so] cling::IncrementalParser::IncrementalParser(cling::Interpreter*, char const*, std::__1::vector<std::__1::shared_ptrclang::ModuleFileExtension, std::__1::allocator<std::__1::shared_ptrclang::ModuleFileExtension > > const&) (no debug info)
[/opt/homebrew/Cellar/root/6.26.06_1/lib/root/libCling.so] cling::Interpreter::Interpreter(int, char const* const*, char const*, std::__1::vector<std::__1::shared_ptrclang::ModuleFileExtension, std::__1::allocator<std::__1::shared_ptrclang::ModuleFileExtension > > const&, bool, cling::Interpreter const*) (no debug info)
[/opt/homebrew/Cellar/root/6.26.06_1/lib/root/libCling.so] TCling::TCling(char const*, char const*, char const* const*) (no debug info)
[/opt/homebrew/Cellar/root/6.26.06_1/lib/root/libCling.so] CreateInterpreter (no debug info)
[/opt/homebrew/Cellar/root/6.26.06_1/lib/root/libCore.so] TROOT::InitInterpreter() (no debug info)
[/opt/homebrew/Cellar/root/6.26.06_1/lib/root/libCore.so] ROOT::Internal::GetROOT2() (no debug info)
[/opt/homebrew/Cellar/root/6.26.06_1/lib/root/libCore.so] TApplication::TApplication(char const*, int*, char**, void*, int) (no debug info)
[/opt/homebrew/Cellar/root/6.26.06_1/lib/root/libRint.so] TRint::TRint(char const*, int*, char**, void*, int, bool, bool) (no debug info)
[/opt/homebrew/Cellar/root/6.26.06_1/bin/root.exe] main (no debug info)
[/usr/lib/dyld] start (no debug info)
^X^C%

Hi @ASHISH_SEHRAWAT,

As said, in addition to Xcode, you must install the corresponding SDK for your version of macOS.

Cheers,
J.

Hi,

Can you please tell me how to install SDKs on macOS Monterey version 12.6? I thought SDKs are part of Xcode package.

Regards

Could you try the following?

$ xcode-select --install

this does not work. It says Xcode is already installed.

Unfortunately, I’m not a ROOT-on-macOS user and I can only suggest trying to install ROOT using conda. I remember having read somewhere else that homebrew and Xcode do not play well together.

Other than that, maybe @couet or @Axel can provide more information or tips here.

Cheers,
J.

I never do that. I always install from sources.

Hi,

Can you please let me know how to install ROOT from sources on macOS Monterey Version 12.6?

Thanks,
Ashish

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