Installing ROOT on Mac 10.5.3 - no Graphics

Hi,
I’m attempting to install ROOT (v5_19_04) on my Intel Mac os 10.5.3 from source

It has X11.app version 2.1.1
When I compile using
./configure macosx64 --prefix=/Users/james/Code/root_5_19_04_64bit/install/

All seems to compile ok.

I set up the correct ROOTSYS and PATH and LD and DYLD_LIBRARY_PATH.

When I run root, I do get the splash screen appearing, but within root I get errors when attempting to display any graphics.

james$ root


  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 5.19/04 14 May 2008 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      [root.cern.ch](http://root.cern.ch)            *
    
  •                                     *
    

ROOT 5.19/04 (trunk@23834, Jun 13 2008, 11:30:00 on macosx64)

CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]
root [0]
root [0] new TBrowser // no browser appears
(class TBrowser*)0x10150bb90
root [1] TH1D * h1 = new TH1D(h1,h1,100,-3,3)
root [2] h1->FillRandom(gaus,200)
root [3] h1->Draw(“e”)
Warning in TCanvas::ResizePad: c1 width changed from 0 to 10

Warning in TCanvas::ResizePad: c1 height changed from 0 to 10

TCanvas::MakeDefCanvas: created default TCanvas with name c1

*** Break *** segmentation violation
/Users/james/Code/root_5_19_04_64bit/install/35425: No such file or /Users/james/Code/root_5_19_04_64bit/instaling
/Users/james/Code/root_5_19_04_64bit/install s/Users/james/Code/root_5_19_04_64bit/instaldone
0x00007fff80b8c2c8 in wait4 ()
Root >

If I try to use the precompiled binary (for intel 10.4.8) root_v5.19.04.macosx-i386-gcc-4.0.tar.gz
from the website then it appears to work correctly.
Also, I get similar problems if I use the tag “macosx” in configure.

Any help would be appreicated.
Thanks,
James
make.out.gz (75.8 KB)
config.txt (132 KB)

Hi,

please don’t use the --prefix configure option. It is there primarily for system wide Linux installs.

Btw, if you run the latest svn trunk version on 10.5, and configure with:

./configure --with-rpath

you will not even have to set ROOTSYS and (DY)LD_LIBRARY_PATH anymore, and you can move the resulting build directory to any locations you want (as long as bin and lib stay in the same parent directory).

Cheers, Fons.

Hi Fons,

Thank you for that. the --enable-rpath seems to work perfectly.

Cheers,
James