Installing root on MacOSX - root: can't figure out DISPLAY

Hi, I’m running MacOSX 10.4.2 and I’m completly newbie with this OS. I use to run Ubuntu before…

The problem is that I can’t make root working in normal mode, just batch mode…

After I decompress root, and set the variables with export, I get this error:

root: can’t figure out DISPLAY, set it manually

And exits, so after googling for a while, I set the DISPLAY variable using:

export DISPLAY=localhost:0.0

And then, I get into root but in batch mode:

d-h-142:~ fede$ root
sh: line 1: otool: command not found
Error in TGClient::TGClient: can’t open display “localhost:0.0”, switching to batch mode…

I really don’t know what else to do… If I remember correctly, I install X11 when installing the MacOSX (at least, the folder X11R6 is in my /local folder). This problem also happens either with 4.03 and 5.08 version.

Another question. How do I set the variables permanently in MacOSX??? because I used to add the export commands to my .bashrc file in Ubuntu, but this OS has no such file…

Ok, that’s it for now. Hope you can give me a hand, as always…

Hi,

ROOT on MacOS X uses X11, so you need to start the X11 application which is in the Applications/Utilities folder.

Cheers, Fons.

aaaaaahhhhhhh ok. I didn’t know that trick!!! sorry, I’m really newbie …

Now it works perfectly, but could you tell me how to set the environment variables permanently ???

Thanks a lot !!!

[quote=“rdm”]Hi,

ROOT on MacOS X uses X11, so you need to start the X11 application which is in the Applications/Utilities folder.

Cheers, Fons.[/quote]

Hello, Fons.
I noticed, that OpenGL ROOT’s part does not work under MacOS X. Do you know, why?