# Problems Loading Root to MacBook

**URL:** <https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571>\
**Category:** ROOT\
**Created:** [January 6, 2026, 11:55pm UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571 "2026-01-06T23:55:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Bowen](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james_bowen/32/39110_2.png) [@James\_Bowen](https://root-forum.cern.ch/u/James_Bowen)\
**Post date:** [January 6, 2026, 11:55pm UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/1 "2026-01-06T23:55:37Z")

</div>

* * *

_ROOT Version:_ 6.36.06  
_Platform:_ MacOS Tahoe 26.2  
_Compiler:_ ?

I have been unable to install Root on my MacBook since an OS update last year. With the most recent update, I tried again, unsuccessfully, using Homebrew. This is what happened when I tried to start Root after executing the Homebrew installation commands:

Mac:root jamesbowen$ root -l  
warning: no such sysroot directory: ‘/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk’  
C system headers (glibc/Xcode/Windows SDK) must be installed.  
fatal error: module map file ‘module.modulemap’ not found  
Module Darwin not found.  
Module std not found.  
\<\<\< cling interactive line includer \>\>\>: fatal error: module file ‘/private/tmp/root-20251126-18172-bvg823/root-6.36.06/builddir/lib/Darwin.pcm’ not found: module file not found  
\<\<\< cling interactive line includer \>\>\>: note: imported by module ‘\_Builtin\_intrinsics’ in ‘/usr/local/Cellar/root/6.36.06/lib/root/\_Builtin\_intrinsics.pcm’  
Failed to load module \_Builtin\_intrinsics  
Failed to load module ROOT\_Foundation\_C  
Failed to load module ROOT\_Config  
Failed to load module ROOT\_Rtypes  
Failed to load module ROOT\_Foundation\_Stage1\_NoRTTI  
Failed to load module Core  
Failed to load module Rint  
Failed to load module RIO  
Failed to load module MathCore  
Failed to load module Hist  
Failed to load module ROOTDataFrame  
Failed to load module XMLParser  
Failed to load module SpectrumPainter  
Failed to load module RooFitHS3  
Failed to load module Core  
Failed to load module SPlot  
Failed to load module TreePlayer  
Failed to load module Gpad  
Failed to load module Foam  
Failed to load module ROOTBrowserv7  
Failed to load module Physics  
Failed to load module ROOTBrowsable  
Failed to load module RCsg  
Failed to load module \_Builtin\_intrinsics  
Failed to load module Rint  
Failed to load module Minuit2  
Failed to load module Thread  
Failed to load module Imt  
Failed to load module PyMVA  
Failed to load module Graf3d  
Failed to load module FFTW  
Failed to load module Quadp  
Failed to load module RooFitMore  
Failed to load module Hbook  
Failed to load module Postscript  
Failed to load module ROOTGraphicsPrimitives  
Failed to load module Genetic  
Failed to load module ROOT\_Rtypes  
Failed to load module RSQLite  
Failed to load module GCocoa  
Failed to load module RIO  
Failed to load module HistFactory  
Failed to load module FITSIO  
Failed to load module ROOTGeomViewer  
Failed to load module MathCore  
Failed to load module Fumili  
Failed to load module FitPanel  
Failed to load module RHTTP  
Failed to load module Smatrix  
Failed to load module ROOT\_Foundation\_Stage1\_NoRTTI  
Failed to load module Spectrum  
Failed to load module ROOTFitPanelv7  
Failed to load module ASImageGui  
Failed to load module Geom  
Failed to load module Graf  
Failed to load module MultiProc  
Failed to load module Net  
Failed to load module Gviz3d  
Failed to load module Eve  
Failed to load module Minuit  
Failed to load module WebGui6  
Failed to load module TMVAUtils  
Failed to load module RooStats  
Failed to load module ROOTGpadv7  
Failed to load module GeomPainter  
Failed to load module GuiHtml  
Failed to load module RMySQL  
Failed to load module ROOTEve  
Failed to load module Cling\_Runtime\_Extra  
Failed to load module RDAVIX  
Failed to load module ROOTTPython  
Failed to load module HistPainter  
Failed to load module XMLIO  
Failed to load module MLP  
Failed to load module Ged  
Failed to load module GuiBld  
Failed to load module TMVA  
Failed to load module TMVAGui  
Failed to load module RooFitCodegen  
Failed to load module ROOTWebDisplay  
Failed to load module NetxNG  
Failed to load module RHTTPSniff  
Failed to load module RooFitXRooFit  
Failed to load module RGL  
Failed to load module Tree  
Failed to load module SQLIO  
Failed to load module ROOTNTuple  
Failed to load module ROOTTMVASofie  
Failed to load module ROOTVecOps  
Failed to load module RootAuth  
Failed to load module EG  
Failed to load module Gui  
Failed to load module ASImage  
Failed to load module ROOT\_Config  
Failed to load module RooFitJSONInterface  
Failed to load module Matrix  
Failed to load module Recorder  
Failed to load module Gdml  
Failed to load module ROOT\_Foundation\_C  
Failed to load module ROOTTreeViewer  
Failed to load module MathMore  
Failed to load module GenVector  
Failed to load module Cling\_Runtime  
Failed to load module RooFitCore  
Failed to load module RooFit  
Failed to load module Hist  
Failed to load module ROOTNTupleUtil  
Failed to load module TreeViewer

\*\*\* Break \*\*\* segmentation violation  
[/usr/lib/system/libsystem\_platform.dylib] \_sigtramp (no debug info)  
 (no debug info)  
[/usr/local/Cellar/root/6.36.06/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxtImpl::TNormalizedCtxtImpl(cling::LookupHelper const&) (no debug info)  
[/usr/local/Cellar/root/6.36.06/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxt::TNormalizedCtxt(cling::LookupHelper const&) (no debug info)  
[/usr/local/Cellar/root/6.36.06/lib/root/libCling.so] TCling::TCling(char const\*, char const\*, char const\* const\*, void\*) (no debug info)  
[/usr/local/Cellar/root/6.36.06/lib/root/libCling.so] CreateInterpreter (no debug info)  
[/usr/local/Cellar/root/6.36.06/lib/root/libCore.so] TROOT::InitInterpreter() (no debug info)  
[/usr/local/Cellar/root/6.36.06/lib/root/libCore.so] ROOT::Internal::GetROOT2() (no debug info)  
[/usr/local/Cellar/root/6.36.06/lib/root/libCore.so] TApplication::TApplication(char const\*, int\*, char\*\*, void\*, int) (no debug info)  
[/usr/local/Cellar/root/6.36.06/lib/root/libRint.so] TRint::TRint(char const\*, int\*, char\*\*, void\*, int, bool, bool) (no debug info)  
[/usr/local/Cellar/root/6.36.06/bin/root.exe] main (no debug info)  
[/usr/lib/dyld] start (no debug info)  
Mac:root jamesbowen$

Does anybody have any suggestions on how to fix this?

James Bowne

* * *

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 7, 2026, 1:17pm UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/2 "2026-01-07T13:17:13Z")

</div>

Have you tried to install it form sources ?

---

<div class="post-metadata">

**Author:** ![James\_Bowen](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james_bowen/32/39110_2.png) [@James\_Bowen](https://root-forum.cern.ch/u/James_Bowen)\
**Post date:** [January 7, 2026, 9:43pm UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/3 "2026-01-07T21:43:08Z")

</div>

Based on your implied recommendation, I went to the instructions for Building from Sources. I then went to Required Dependencies to make sure I was prepared. When I executed the following command:

_cmake ../root_

the following error occurred, which halted the process:

_– Looking for GLEW  
– Found GLEW: /usr/local/lib/cmake/glew/glew-config.cmake  
CMake Error at cmake/modules/SearchInstalledSoftware.cmake:764 (message):  
Please enable builtin Glew due a bug in CMake’s FindGlew \< v3.25 (use cmake  
option -Dbuiltin\_glew=ON).  
Call Stack (most recent call first):  
CMakeLists.txt:155 (include)_

_– Configuring incomplete, errors occurred!  
See also “/Users/jamesbowen/root/root-build/CMakeFiles/CMakeOutput.log”.  
See also “/Users/jamesbowen/root/root-build/CMakeFiles/CMakeError.log”.  
Jamess-MacBook-Pro:root-build jamesbowen$_

Could this be at least part of my problems? And if so, how does this get corrected?

James

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 8, 2026, 7:47am UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/4 "2026-01-08T07:47:15Z")

</div>

Have you tired what the error message recommend ie:  
`cmake -Dbuiltin_glew=ON ../root` ?

---

<div class="post-metadata">

**Author:** ![James\_Bowen](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james_bowen/32/39110_2.png) [@James\_Bowen](https://root-forum.cern.ch/u/James_Bowen)\
**Post date:** [January 13, 2026, 5:15pm UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/5 "2026-01-13T17:15:03Z")

</div>

Dear Couet,

Thank you. I followed your recommendation, and that apparently corrected that problem, as I was then able to complete the _cmake ../root_ step. I then proceeded to the next step, _make -j8_ . Several minutes of installation and building followed, until the following error came up:

_\*[63%] Building CXX object bindings/tpython/CMakeFiles/ROOTTPython.dir/src/TPyArg.cxx.o  
ld: warning: ignoring file ‘/opt/local/lib/libxml2.dylib’: found architecture ‘arm64’, required architecture ‘x86\_64’  
Undefined symbols for architecture x86\_64:  
“\_xmlCleanupParser”, referenced from:  
(anonymous namespace)::InitAndCleanupTheXMLParserOnlyOnceCommaEver::~InitAndCleanupTheXMLParserOnlyOnceCommaEver() in TXMLParser.cxx.o  
“\_xmlCreateFileParserCtxt”, referenced from:  
TDOMParser::ParseFile(char const\*) in TDOMParser.cxx.o  
TSAXParser::ParseFile(char const\*) in TSAXParser.cxx.o  
“\_xmlCreateMemoryParserCtxt”, referenced from:  
TDOMParser::ParseBuffer(char const\*, int) in TDOMParser.cxx.o  
TSAXParser::ParseBuffer(char const\*, int) in TSAXParser.cxx.o  
“\_xmlDocGetRootElement”, referenced from:  
TXMLDocument::TXMLDocument(\_xmlDoc\*) in TXMLDocument.cxx.o  
“\_xmlFreeDoc”, referenced from:  
TXMLDocument::~TXMLDocument() in TXMLDocument.cxx.o  
TXMLDocument::~TXMLDocument() in TXMLDocument.cxx.o  
TXMLDocument::~TXMLDocument() in TXMLDocument.cxx.o  
“\_xmlFreeParserCtxt”, referenced from:  
TXMLParser::~TXMLParser() in TXMLParser.cxx.o  
TXMLParser::ReleaseUnderlying() in TXMLParser.cxx.o  
“\_xmlInitParser”, referenced from:  
\_\_GLOBAL\_\_sub\_I\_TXMLParser.cxx in TXMLParser.cxx.o  
“\_xmlParseDocument”, referenced from:  
TDOMParser::ParseContext() in TDOMParser.cxx.o  
TSAXParser::Parse() in TSAXParser.cxx.o  
“\_xmlParserGetDirectory”, referenced from:  
TDOMParser::ParseFile(char const\*) in TDOMParser.cxx.o  
“\_xmlStopParser”, referenced from:  
TXMLParser::StopParser() in TXMLParser.cxx.o  
“\_xmlStrdup”, referenced from:  
TDOMParser::ParseFile(char const\*) in TDOMParser.cxx.o  
ld: symbol(s) not found for architecture x86\_64  
c++: error: linker command failed with exit code 1 (use -v to see invocation)  
make[2]: \*\*\* [lib/libXMLParser.so] Error 1  
make[1]: \*\*\* [io/xmlparser/CMakeFiles/XMLParser.dir/all] Error 2  
make[1]: \*\*\* Waiting for unfinished jobs…  
[63%] Building CXX object net/http/CMakeFiles/RHTTP.dir/src/THttpServer.cxx.o  
\*_

Moments later, after some more building, the process terminated, apparently due to that error:

_[64%] Linking CXX shared library ../../lib/libNet.so  
[64%] Built target Net  
make: \*\*\* [all] Error 2  
Jamess-MacBook-Pro:root-build jamesbowen$ -v  
-bash: -v: command not found  
Jamess-MacBook-Pro:root-build jamesbowen$_

Do you have any recommendations on how to correct this error? There’s a comment in there about using some command to see the invocation, but I’m not sure exactly how to do that.

Sincerely,

James

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 14, 2026, 7:09am UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/6 "2026-01-14T07:09:00Z")

</div>

It looks like there is some mismatch in the libraries installed on you machine. What is your machine exactly ? a Apple Silicon one ? to be sure you are doing a clen build you can try the following:

```auto
cd ~
git clone https://github.com/root-project/root.git root
mkdir build
cd build
cmake -Dbuiltin_glew=ON ../root
make -j8

```

---

<div class="post-metadata">

**Author:** ![James\_Bowen](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james_bowen/32/39110_2.png) [@James\_Bowen](https://root-forum.cern.ch/u/James_Bowen)\
**Post date:** [January 15, 2026, 12:39am UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/7 "2026-01-15T00:39:26Z")

</div>

Oliver,

I have a 2023 MacBook Pro with an Apple M2 Pro chip. The current OS is Tahoe 26.2. I previously installed Root successfully in May 2024 using Homebrew and the instructions for using Homebrew on the root.cern.ch website. However, that installation was apparently broken by an OS upgrade in March 2025, and I have since been unable to reinstall Root.

I also tried what you wrote above. I already had the root and build directories from my attempts to reinstall that I contacting you about. I therefore attempted the

Oliver,

I have a 2023 MacBook Pro with an Apple M2 Pro chip. The current OS is Tahoe 26.2. I previously installed Root successfully in May 2024 using Homebrew and the instructions for using Homebrew on the root.cern.ch website. However, that installation was apparently broken by an OS upgrade in March 2025, and I have since been unable to reinstall Root.

I also tried what you wrote above. I already had the root and build directories from my attempts to reinstall that I contacting you about. I therefore attempted the

```auto
cmake -Dbuiltin_glew=ON ../root

```

step, but it failed. Here is what was said upon failure:

_CMake Error in builtins/glew/CMakeLists.txt:  
Imported target “OpenGL::GL” includes non-existent path_

```auto
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

```

_in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:_

- _The path was deleted, renamed, or moved to another location._

- _An install or uninstall procedure did not complete successfully._

- _The installation package was faulty and references files it does not  
provide._

_CMake Error in builtins/glew/CMakeLists.txt:  
Imported target “OpenGL::GL” includes non-existent path_

```auto
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

```

_in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:_

- _The path was deleted, renamed, or moved to another location._

- _An install or uninstall procedure did not complete successfully._

- _The installation package was faulty and references files it does not  
provide._

_CMake Error in builtins/glew/CMakeLists.txt:  
Imported target “OpenGL::GL” includes non-existent path_

```auto
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

```

_in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:_

- _The path was deleted, renamed, or moved to another location._

- _An install or uninstall procedure did not complete successfully._

- _The installation package was faulty and references files it does not  
provide._

_CMake Error in graf3d/ftgl/CMakeLists.txt:  
Imported target “OpenGL::GL” includes non-existent path_

```auto
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

```

_in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:_

- _The path was deleted, renamed, or moved to another location._

- _An install or uninstall procedure did not complete successfully._

- _The installation package was faulty and references files it does not  
provide._

_CMake Error in graf3d/ftgl/CMakeLists.txt:  
Imported target “OpenGL::GL” includes non-existent path_

```auto
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

```

_in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:_

- _The path was deleted, renamed, or moved to another location._

- _An install or uninstall procedure did not complete successfully._

- _The installation package was faulty and references files it does not  
provide._

_CMake Error in graf3d/ftgl/CMakeLists.txt:  
Imported target “OpenGL::GL” includes non-existent path_

```auto
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

```

_in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:_

- _The path was deleted, renamed, or moved to another location._

- _An install or uninstall procedure did not complete successfully._

- _The installation package was faulty and references files it does not  
provide._

_CMake Error in graf3d/eve/CMakeLists.txt:  
Imported target “OpenGL::GL” includes non-existent path_

```auto
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

```

_in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:_

- _The path was deleted, renamed, or moved to another location._

- _An install or uninstall procedure did not complete successfully._

- _The installation package was faulty and references files it does not  
provide._

_CMake Error in graf3d/eve/CMakeLists.txt:  
Imported target “OpenGL::GL” includes non-existent path_

```auto
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

```

_in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:_

- _The path was deleted, renamed, or moved to another location._

- _An install or uninstall procedure did not complete successfully._

- _The installation package was faulty and references files it does not  
provide._

_CMake Error in graf3d/eve/CMakeLists.txt:  
Imported target “OpenGL::GL” includes non-existent path_

```auto
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

```

_in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:_

- _The path was deleted, renamed, or moved to another location._

- _An install or uninstall procedure did not complete successfully._

- _The installation package was faulty and references files it does not  
provide._

_CMake Error in graf3d/gl/CMakeLists.txt:  
Imported target “OpenGL::GL” includes non-existent path_

```auto
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

```

_in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:_

- _The path was deleted, renamed, or moved to another location._

- _An install or uninstall procedure did not complete successfully._

- _The installation package was faulty and references files it does not  
provide._

_CMake Error in graf3d/gl/CMakeLists.txt:  
Imported target “OpenGL::GL” includes non-existent path_

```auto
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

```

_in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:_

- _The path was deleted, renamed, or moved to another location._

- _An install or uninstall procedure did not complete successfully._

- _The installation package was faulty and references files it does not  
provide._

_CMake Error in graf3d/gl/CMakeLists.txt:  
Imported target “OpenGL::GL” includes non-existent path_

```auto
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

```

_in its INTERFACE\_INCLUDE\_DIRECTORIES. Possible reasons include:_

- _The path was deleted, renamed, or moved to another location._

- _An install or uninstall procedure did not complete successfully._

- _The installation package was faulty and references files it does not  
provide._

\*– Generating done  
CMake Generate step failed. Build files cannot be regenerated correctly.  
Jamess-MacBook-Pro:build jamesbowen$

- 

Do you have any further suggestions? Or do I need to show this to a Root expert in person?

V/R James

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 15, 2026, 7:41am UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/8 "2026-01-15T07:41:10Z")

</div>

The Mac environment you have does work fine for me with the last procedure I sent you (installation from source). According to the error messages you get (BTW, your last post has a lot of duplications which makes it difficult to read) it seems your OpenGL environment is problematic. Also I just noticed that your Xcode is 15.5. Can you check if your Mac (in “System Preferences”) proposes you an update of Xcode ?

On my MacOS26 machine I have:

```auto
% sw_vers
ProductName: macOS
ProductVersion: 26.2
BuildVersion: 25C56

% pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 26.2.0.0.1.1764812424
volume: /
location: /
install-time: 1767623608

```

---

<div class="post-metadata">

**Author:** ![James\_Bowen](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james_bowen/32/39110_2.png) [@James\_Bowen](https://root-forum.cern.ch/u/James_Bowen)\
**Post date:** [January 16, 2026, 8:58pm UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/9 "2026-01-16T20:58:55Z")

</div>

Oliver,

I apologize for that being difficult to read.

I checked my Xcode, and it looks like I have Version 26.2 as well. That’s what is says when I open Xcode in Applications.

How do I go about fixing my OpenGL environment?

Sincerely,

James

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 19, 2026, 9:16am UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/10 "2026-01-19T09:16:07Z")

</div>

I have installed XCode on my Mac running OS 26.2 and I see:

```auto
% ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs 
MacOSX.sdk	MacOSX26.2.sdk	MacOSX26.sdk

```

What do you have in that folder ?

What do you get when you type:

```auto
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

```

---

<div class="post-metadata">

**Author:** ![James\_Bowen](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james_bowen/32/39110_2.png) [@James\_Bowen](https://root-forum.cern.ch/u/James_Bowen)\
**Post date:** [February 1, 2026, 11:53pm UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/11 "2026-02-01T23:53:32Z")

</div>

Oliver,

I am sorry for my delayed reply. A new semester started since my last message, so I have been busy with teaching. For the list command you gave me above, I have the same thing as you do:

```auto
Jamess-MacBook-Pro:build jamesbowen$ ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
MacOSX.sdk	MacOSX26.2.sdk	MacOSX26.sdk

```

For the second command, this is what I got:

```auto
Jamess-MacBook-Pro:build jamesbowen$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
No receipt for ‘com.apple.pkg.CLTools_Executables’ found at ‘/’.

```

However, I got the same response on another, older Mac that I have where Root still works fine. So I am not sure how significant this is. What do you think?

Sincerely,

James

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [February 2, 2026, 8:38am UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/12 "2026-02-02T08:38:06Z")

</div>

Dear James,

The second output you get is very suspicious. You should get something like:

```auto
couet@macphsft36 roottest % pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 26.2.0.0.1.1764812424
volume: /
location: /
install-time: 1767623608

```

This command is used to check if the Command Line Tools (CLT) are installed on your Mac and to see which version is currently installed. The output you get suggests that the CLT are not properly installed on your machine. Can you try:

```auto
xcode-select --install

```

Olivier

---

<div class="post-metadata">

**Author:** ![nicconflo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/nicconflo/32/33351_2.png) [@nicconflo](https://root-forum.cern.ch/u/nicconflo)\
**Post date:** [February 2, 2026, 10:54pm UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/13 "2026-02-02T22:54:32Z")

</div>

Hi Olivier and James,

I have been having the same issue as James. When upgrading from 6.36.02 to 6.38 via Homebrew and updating Xcode via the App Store (also am on 26.2), I see identical errors and outputs from the previous commands in this thread. Upon running:

```auto
xcode-select --install

```

I see the following:

```auto
xcode-select: note: Command line tools are already installed. Use "Software Update" in System Settings or the softwareupdate command line interface to install updates

```

Removing the tools and reinstalling had no effect:

```auto
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install

```

Doing the following resulted in being able to locate with pkgutil:

```auto
sudo xcode-select -s /Library/Developer/CommandLineTools

```

However, reinstalling ROOT after this still does not work, yielding the same original error. Running brew config seems to locate the correct tools, so I am unsure what to do.

What do you make of this?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [February 3, 2026, 8:51am UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/14 "2026-02-03T08:51:12Z")

</div>

May be this recipe:

```auto
# remove the current Command Line Tools
sudo rm -r /Library/Developer/CommandLineTools

# Reset xcode-select
xcode-select -r

# Then install. You will be asked to click a button 
xcode-select --install

# Go in the System Settings -> General -> Software Update 
# if there is a new version of the Command Line Tools, update it.

# Install ROOT
git clone https://github.com/root-project/root.git
mkdir root-build
cd root-build
cmake ../root
make -j8

```

---

<div class="post-metadata">

**Author:** ![nicconflo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/nicconflo/32/33351_2.png) [@nicconflo](https://root-forum.cern.ch/u/nicconflo)\
**Post date:** [February 3, 2026, 11:24pm UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/15 "2026-02-03T23:24:44Z")

</div>

That worked for me–thank you!!

---

<div class="post-metadata">

**Author:** ![James\_Bowen](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james_bowen/32/39110_2.png) [@James\_Bowen](https://root-forum.cern.ch/u/James_Bowen)\
**Post date:** [February 14, 2026, 11:34pm UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/16 "2026-02-14T23:34:57Z")

</div>

Oliver,

I attempted what you posted for nicconflo above, but it did not work for me. This is what happened:

Jamess-MacBook-Pro:root-build jamesbowen$ cmake ../root  
– Building ROOT version 6.39.01  
– The default C++ standard in use by the detected compiler (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++) is lower than C++17. Setting C++17 as the minimum standard.  
– Performing Test HAS\_LIBCXX11  
– Performing Test HAS\_LIBCXX11 - Success  
– Found a macOS system  
– Found an x86\_64 system  
– ROOT default compression algorithm: zlib  
– Checking internet connectivity  
– Checking internet connectivity - found  
– Looking for ZLib  
– Looking for nlohmann/json.hpp  
– Found nlohmann/json.hpp in /usr/local/include;/usr/local/include (found version 3.12.0)  
– Building freetype version 2.12.1 included in ROOT itself  
– Looking for PCRE  
– Looking for LZMA  
– Looking for xxHash  
– Looking for ZSTD  
– Looking for LZ4  
– Looking for GSL  
– Looking for Python  
– Looking for OpenGL  
– Looking for GLEW  
CMake Error at cmake/modules/SearchInstalledSoftware.cmake:764 (message):  
Please enable builtin Glew due a bug in CMake’s FindGlew \< v3.25 (use cmake  
option -Dbuiltin\_glew=ON).  
Call Stack (most recent call first):  
CMakeLists.txt:155 (include)

– Configuring incomplete, errors occurred!  
See also “/Users/jamesbowen/root-build/CMakeFiles/CMakeOutput.log”.  
See also “/Users/jamesbowen/root-build/CMakeFiles/CMakeError.log”.  
Jamess-MacBook-Pro:root-build jamesbowen$

Was there something I missed?

James

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [February 16, 2026, 7:58am UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/17 "2026-02-16T07:58:49Z")

</div>

Hi James,  
you can try (after clean the `root-build`folder):

```auto
cmake ../root -Dbuiltin_glew=ON

```

---

<div class="post-metadata">

**Author:** ![James\_Bowen](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james_bowen/32/39110_2.png) [@James\_Bowen](https://root-forum.cern.ch/u/James_Bowen)\
**Post date:** [March 2, 2026, 12:16am UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/18 "2026-03-02T00:16:59Z")

</div>

Oliver,

I did this. It apparently got me past the previous hurdle, but a new error then emerged. Here are the relevant lines concerning the error. I have emboldened the specific error line, to hopefully make it a little easier for you to read:

[66%] Linking CXX shared library ../../lib/libXMLParser.so  
[66%] Linking CXX shared library ../../lib/libROOTVecOps.so  
ld: warning: ignoring file ‘/opt/local/lib/libxml2.dylib’: found architecture ‘arm64’, required architecture ‘x86\_64’  
ld: warning: ignoring file ‘/opt/local/lib/libvdt.dylib’: found architecture ‘arm64’, required architecture ‘x86\_64’  
Undefined symbols for architecture x86\_64:  
“\_xmlCleanupParser”, referenced from:  
(anonymous namespace)::InitAndCleanupTheXMLParserOnlyOnceCommaEver::~InitAndCleanupTheXMLParserOnlyOnceCommaEver() in TXMLParser.cxx.o  
“\_xmlCreateFileParserCtxt”, referenced from:  
TDOMParser::ParseFile(char const\*) in TDOMParser.cxx.o  
TSAXParser::ParseFile(char const\*) in TSAXParser.cxx.o  
“\_xmlCreateMemoryParserCtxt”, referenced from:  
TDOMParser::ParseBuffer(char const\*, int) in TDOMParser.cxx.o  
TSAXParser::ParseBuffer(char const\*, int) in TSAXParser.cxx.o  
“\_xmlDocGetRootElement”, referenced from:  
TXMLDocument::TXMLDocument(\_xmlDoc\*) in TXMLDocument.cxx.o  
“\_xmlFreeDoc”, referenced from:  
TXMLDocument::~TXMLDocument() in TXMLDocument.cxx.o  
TXMLDocument::~TXMLDocument() in TXMLDocument.cxx.o  
TXMLDocument::~TXMLDocument() in TXMLDocument.cxx.o  
“\_xmlFreeParserCtxt”, referenced from:  
TXMLParser::~TXMLParser() in TXMLParser.cxx.o  
TXMLParser::ReleaseUnderlying() in TXMLParser.cxx.o  
“\_xmlInitParser”, referenced from:  
\_\_GLOBAL\_\_sub\_I\_TXMLParser.cxx in TXMLParser.cxx.o  
“\_xmlParseDocument”, referenced from:  
TDOMParser::ParseContext() in TDOMParser.cxx.o  
TSAXParser::Parse() in TSAXParser.cxx.o  
“\_xmlParserGetDirectory”, referenced from:  
TDOMParser::ParseFile(char const\*) in TDOMParser.cxx.o  
“\_xmlStopParser”, referenced from:  
TXMLParser::StopParser() in TXMLParser.cxx.o  
“\_xmlStrdup”, referenced from:  
TDOMParser::ParseFile(char const\*) in TDOMParser.cxx.o  
ld: symbol(s) not found for architecture x86\_64  
**c++: error: linker command failed with exit code 1 (use -v to see invocation)**  
make[2]: \*\*\* [lib/libXMLParser.so] Error 1  
make[1]: \*\*\* [io/xmlparser/CMakeFiles/XMLParser.dir/all] Error 2  
make[1]: \*\*\* Waiting for unfinished jobs…  
[66%] Built target ROOTTPython  
[66%] Building CXX object net/net/CMakeFiles/Net.dir/src/TGridResult.cxx.o  
[66%] Built target XMLIO  
[66%] Built target ROOTVecOps  
[66%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RDisplayItem.cxx.o  
[66%] Building CXX object roofit/jsoninterface/CMakeFiles/RooFitJSONInterface.dir/src/JSONParser.cxx.o  
[66%] Building CXX object net/http/CMakeFiles/RHTTP.dir/src/TRootSniffer.cxx.o  
[66%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RDrawable.cxx.o  
[66%] Building CXX object net/http/CMakeFiles/RHTTP.dir/src/TRootSnifferStore.cxx.o  
[66%] Building CXX object net/net/CMakeFiles/Net.dir/src/TMessage.cxx.o  
[66%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RDrawableRequest.cxx.o  
[66%] Building C object net/http/CMakeFiles/RHTTP.dir/civetweb/civetweb.c.o  
[66%] Building CXX object net/net/CMakeFiles/Net.dir/src/TMonitor.cxx.o  
[66%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RAttrMap.cxx.o  
[66%] Building CXX object net/net/CMakeFiles/Net.dir/src/TNetFile.cxx.o  
[66%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RAttrBase.cxx.o  
[66%] Building CXX object net/net/CMakeFiles/Net.dir/src/TNetFileStager.cxx.o  
[66%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RAttrAggregation.cxx.o  
[66%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RPalette.cxx.o  
[66%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RStyle.cxx.o  
[66%] Building CXX object net/net/CMakeFiles/Net.dir/src/TParallelMergingFile.cxx.o  
[66%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RPadBase.cxx.o  
[66%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RPad.cxx.o  
[66%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RPadExtent.cxx.o  
[66%] Linking CXX shared library ../../lib/libRHTTP.so  
[66%] Linking CXX shared library ../../lib/libRooFitJSONInterface.so  
[67%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RPadLength.cxx.o  
[67%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RPadPos.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TPServerSocket.cxx.o  
[67%] Built target RHTTP  
[67%] Built target RooFitJSONInterface  
[67%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/RVirtualCanvasPainter.cxx.o  
[67%] Building CXX object graf2d/gpadv7/CMakeFiles/ROOTGpadv7.dir/src/TObjectDrawable.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TPSocket.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TSecContext.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TServerSocket.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TSocket.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TSQLColumnInfo.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TSQLMonitoring.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TSQLResult.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TSQLRow.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TSQLServer.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TSQLStatement.cxx.o  
[67%] Linking CXX shared library ../../lib/libROOTGpadv7.so  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TSQLTableInfo.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TUDPSocket.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TWebFile.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TSSLSocket.cxx.o  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TS3HTTPRequest.cxx.o  
[67%] Built target ROOTGpadv7  
[67%] Building CXX object net/net/CMakeFiles/Net.dir/src/TS3WebFile.cxx.o  
[67%] Linking CXX shared library ../../lib/libNet.so  
[67%] Built target Net  
make: \*\*\* [all] Error 2  
Jamess-MacBook-Pro:root-build jamesbowen$

Do you have any further recommendations?

James

P.S. Once again, I apologize for the delayed reply. I was on travel last weekend, and am catching up on things this weekend.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 2, 2026, 2:16pm UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/19 "2026-03-02T14:16:52Z")

</div>

```auto
ld: warning: ignoring file ‘/opt/local/lib/libxml2.dylib’: found architecture ‘arm64’, required architecture ‘x86_64’

```

Reading this message it looks like you have an intel machine but the xml library installed is a Mac arm processor one…

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [March 16, 2026, 2:17pm UTC](https://root-forum.cern.ch/t/problems-loading-root-to-macbook/64571/20 "2026-03-16T14:17:21Z")

</div>

Closed on March 16, 2026, 2:17pm UTC

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