Prob after installing root on mac

Hi,

After downloading root root_v5.25.02.source.tar.gz from the website and installing it without problem on a mac os 10.5.8, I cannot make it run properly… The error I have when launching it is the following :

root [0] TBrowser a
dlopen error: dlopen(/Applications/root/lib/libASImage.so, 9): Symbol not found: _alphablend_scanlines
Referenced from: /Applications/root/lib/libASImage.so
Expected in: dynamic lookup

Load Error: Failed to load Dynamic link library /Applications/root/lib/libASImage.so
Error in TCint::AutoLoad: failure loading library libASImage.so for class TASImage
Error in TPluginHandler::SetupCallEnv: class TASImage not found in plugin ASImage
Error in TGComboBox::TGComboBox: arrow_down.xpm not found
Error in TGVScrollBar::TGVScrollBar: arrow_*.xpm not found

I also tried :
root [1] TCanvas t = new TCanvas();
dlopen error: dlopen(/Applications/root/lib/libASImage.so, 9): Symbol not found: _alphablend_scanlines
Referenced from: /Applications/root/lib/libASImage.so
Expected in: dynamic lookup

Load Error: Failed to load Dynamic link library /Applications/root/lib/libASImage.so
Error in TGHScrollBar::TGHScrollBar: arrow_.xpm not found
Error in TGVScrollBar::TGVScrollBar: arrow_
.xpm not found

*** Break *** segmentation violation

Does anyone know how I could solve this ?

thanks for your help,

Catherine

Hi Catherine,

Looks like Root is using the wrong libAfterImage, or that libAfterImage is corrupted… How did you configure root (which options)?
Could you verify that $(ROOTSYS)/lib/libAfterImage.a exists?

Cheers, Bertrand.

Hi Bertrand,

Thanks for your suggestions.

I did not use any option when I configured, just :
./configure
make

Should I have used options ?

I verified and $(ROOTSYS)/lib/libAfterImage.a is there…

Catherine

Hi Catherine,

did you really install in the /Applications directory? Do you have ROOTSYS defined? Did you just do:

./configure
make

(and not “make install”)

Cheers, Fons.

Hi Fons,

Yes I have installed root here :
/Applications/root

and set the rootsys environment to :

setenv ROOTSYS /Applications/root

then just did

./configure
make

tryed

root

and got

ftuser% root
rootx xpm error: XpmColorFailed


  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 5.25/02 29 September 2009 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      [root.cern.ch](http://root.cern.ch)            *
    
  •                                     *
    

ROOT 5.25/02 (trunk@30530, Sep 29 2009, 15:28:19 on macosx64)

CINT/ROOT C/C++ Interpreter version 5.17.00, Dec 21, 2008
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] TBrowser a
dlopen error: dlopen(/Applications/root/lib/libASImage.so, 9): Symbol not found: _alphablend_scanlines
Referenced from: /Applications/root/lib/libASImage.so
Expected in: dynamic lookup

Load Error: Failed to load Dynamic link library /Applications/root/lib/libASImage.so
Error in TCint::AutoLoad: failure loading library libASImage.so for class TASImage
Error in TPluginHandler::SetupCallEnv: class TASImage not found in plugin ASImage
Error in TGComboBox::TGComboBox: arrow_down.xpm not found
Error in TGVScrollBar::TGVScrollBar: arrow_*.xpm not found
*** Break *** segmentation violation

Thread 1 (process 31368 thread 0x10b):
#0 0x00007fff80413378 in wait4 ()
#1 0x00007fff8042fdbb in system ()
#2 0x00000001000ced19 in TUnixSystem::StackTrace ()
#3 0x00000001000cd09d in TUnixSystem::DispatchSignals ()
#4 0x00007fff804123fa in _sigtramp ()
#5 0x5800000000000080 in ?? ()
#6 0x0000000100000000 in ?? ()

:frowning:

Other ideas ?

Thanks for your help,

Catherine

Could you please try to install in your home directory and add $ROOTSYS/bin to your path.

Cheers, Fons.

Hi Fons,

I’ve tried that, and followed the README again.
It worked !

I am not sure it is because of the installation location but it may be that I had forgotten to set all the environment variables previously :frowning:

  sh family:
    export PATH=$ROOTSYS/bin:$PATH
    export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
    export DYLD_LIBRARY_PATH=$ROOTSYS/lib:$DYLD_LIBRARY_PATH (MacOS X only)
  csh family:
    setenv PATH ${ROOTSYS}/bin:${PATH}
    setenv LD_LIBRARY_PATH ${ROOTSYS}/lib:${LD_LIBRARY_PATH}
    setenv DYLD_LIBRARY_PATH ${ROOTSYS}/lib:${DYLD_LIBRARY_PATH} (MacOS X)
    rehash

since I think I can reproduce my error with and without those…

Thanks a lot for you help !!

Catherine

Hi Catherine,

good to hear it works. In principle ROOT should work on the Mac without setting ROOTSYS and adding it to (DY)LD_LIBRARY_PATH as we use -rpath during linking of all the libs and executables (you only need to add ~/root/bin to your PATH). I don’t know what could have gone wrong the first time in the Applications directory. Enjoy.

Cheers, Fons.