ROOT doesn't find XQuartz display on Mac OS Yosemite

Hi,

I installed Yosemite quite recently, and whenever I try to launch a TBrowser from a root session, I get this:

root [0] TBrowser g
Error in <TGClient::TGClient>: can't open display "/private/tmp/com.apple.launchd.hMWKyxFZxO/org.macosforge.xquartz:0", switching to batch mode...
 In case you run from a remote ssh session, reconnect with ssh -Y
root [1] 

I’m still using ROOT 5, and I tried updating ROOT 5.34.21 (I was using 5.34.18) to no avail. Should I try ROOT 6? On a related note, I thought that enabling Cocoa support, which is done by default when doing “./configure macosX64” would render the use of XQuartz unnecessary. I thought maybe there are some additional steps to take to enable the support, like redirecting the ROOT windows to the proper service, but then I fail to find instructions anywhere.

[quote=“emitc2h”]Hi,

I installed Yosemite quite recently, and whenever I try to launch a TBrowser from a root session, I get this:

root [0] TBrowser g
Error in <TGClient::TGClient>: can't open display "/private/tmp/com.apple.launchd.hMWKyxFZxO/org.macosforge.xquartz:0", switching to batch mode...
 In case you run from a remote ssh session, reconnect with ssh -Y
root [1] 

I’m still using ROOT 5, and I tried updating ROOT 5.34.21 (I was using 5.34.18) to no avail. Should I try ROOT 6? On a related note, I thought that enabling Cocoa support, which is done by default when doing “./configure macosX64” would render the use of XQuartz unnecessary. I thought maybe there are some additional steps to take to enable the support, like redirecting the ROOT windows to the proper service, but then I fail to find instructions anywhere.[/quote]

Both ROOT 5 and ROOT 6, both Cocoa and X11 versions work on Yosemite, and worked even with beta versions. If you do not explicitly disable Cocoa version, you work with Cocoa version (which does not require XQuartz installed). So what you have here seems to be X11 version. How did you configure/built ROOT?

Hi,

The Yosemite SDK came into my updates today. I ran

./configure macosx64
make

again and everything now works. I suppose there was some sort of conflict when ROOT attempted to use the 10.9 SDK to compile.

Cheers,
Michel