Install root from source on Mas OS snow leopard

Hi,
When i install root source 5.26, I always met a error which seems related to gfortran.
But I reinstalled gfortran, the error is still there.

Can anyone help me?

here is the error message at the very end:

g++ -O2 -m64 -o bin/h2root main/src/h2root.o
-Llib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lMathCore -lThread lib/libminicern.so
/usr/local/lib/gcc/i686-apple-darwin8/4.2.3/…/…/…/x86_64/libgfortran.dylib /usr/local/lib/gcc/i686-apple-darwin8/4.2.3/x86_64/libgfortranbegin.a -lm -Wl,-rpath,@loader_path/…/lib -pthread -ldl
gfortran -O2 -m64 -std=legacy -o main/src/g2root.o -c main/src/g2root.f
gfortran -O2 -m64 -o bin/g2root main/src/g2root.o
-Llib lib/libminicern.so
/usr/local/lib/gcc/i686-apple-darwin8/4.2.3/…/…/…/x86_64/libgfortran.dylib /usr/local/lib/gcc/i686-apple-darwin8/4.2.3/x86_64/libgfortranbegin.a -lm -Wl,-rpath,@loader_path/…/lib -pthread -ldl
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
collect2: ld returned 1 exit status
make: *** [bin/g2root] Error 1
rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx

Thanks a lot.

John

See:

Christian