ROOT installation for newbie

Hello

On root.cern.ch/drupal/content/inst … oot-source I found the guide to install ROOT on my mac (OS 10.4) but I am not sure of a few things:

  1. Where do I have to install ROOT? Do I have to move it to /usr/local/ as

software.icecube.wisc.edu/OFFLIN … a_mac.html

suggests? This didn’t work for me, maybe because I did not get how I should do

cd …
mv root-v4.04.02 root_aside
cd root_aside
make install
cd …
rm -rf root_aside

I don’t know, but in the first line, ist it the folder that has to be moved?

  1. In the installation guide on the ROOT homepage the 3rd thing to be done is:

Add bin/ to PATH and lib/ to LD_LIBRARY_PATH.
For the sh shell family do:
. bin/thisroot.sh
and for the csh shell family do:
source bin/thisroot.csh

I did not really get how to do this. What does it mean that PATH and LD_LIBRARY_PATH is variables?

  1. All the things I did leave in my system from my attemps to install ROOT are still laying around. Should I remove them before trying again? And do I do that just by deleting the folder root? or did the installation spread stuff all over the computer?

I am sorry, but I am really quite new to installing things this way.
Thank you!
Mathias

Okay, so I removed the root folder in /usr/local/ and configured it again.

The configuration ends with:

gfortran -O2 -m32 -std=legacy -o main/src/g2root.o -c main/src/g2root.f
gfortran -O2 -m32 -o bin/g2root main/src/g2root.o
-Llib lib/libminicern.dylib
/usr/local/lib/gcc/i386-apple-darwin8.10.1/4.3.0/…/…/…/libgfortran.dylib /usr/local/lib/gcc/i386-apple-darwin8.10.1/4.3.0/libgfortranbegin.a -lm -lpthread -ldl
/usr/bin/ld: warning can’t open dynamic library: /libgcc_s.1.dylib referenced from: /usr/local/lib/gcc/i386-apple-darwin8.10.1/4.3.0/…/…/…/libgfortran.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
cp cint/reflex/python/genreflex/gccdemangler.py lib/python/genreflex/gccdemangler.py
…(some more cp …)…
rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx

Before configurating I have tried, as suggested in Installing root on mac os x 10.5.2 to edit the .bash_profile with the addition mentioned there.

After the configuration ended i tried to set the environment, as described in root.cern.ch/root/EnvVars.html

and tried to run root. Then I get this message:
mathias-karsten-bjerres-computer:/usr/local/root Mathias$ root
dyld: warning, unknown environment variable: DYLD_LIBERARY_PATH
root: can’t figure out DISPLAY, set it manually
In case you run a remote ssh session, restart your ssh session with:
=========> ssh -Y

Anyone got at suggestion?
Thanks

you seem to have a typo in your script defining “DYLD_LIBERARY_PATH”. It should be DYLD_LIBRARY_PATH instead.

Rene

Oh, I am sorry.

But it did not solve the problem:
I try to run root and get this message:

root: can’t figure out DISPLAY, set it manually
In case you run a remote ssh session, restart your ssh session with:
=========> ssh -Y

Hi,

You need to set the DISPLAY variable to get rid of this message.

Cheers,
Philippe.

Okay, but how do I do that?

It depends on your shell on how you connect from your terminal to the server. In case you run a remote ssh session, restart your ssh session with:
=========> ssh -Y