I posted about a week ago, but I think my post might have been confusing as to exactly what the problem is. I am still in the early learning stages of working with C++ and ROOT. I thought I would repost more clearly what the issue is.
I recently formatted and installed Mac OS X 10.5 (Leopard) on my computer, and had to reinstall ROOT. I installed version 5.17.08 from the source, following the instructions. I have XCode 3.0 and 2.5 installed, and the I haven’t changed X11 from what comes with the OS install (I saw that on ROOT Talk Digest). I also installed gcc and g77 following hpc.sourceforge.net/.
I have the following for $PATH, $ROOTSYS, $LD_LIBRARY_PATH and $DYLD_LIBRARY_PATH:
bash-3.2$ echo $ROOTSYS
/Users/travismartin/root
bash-3.2$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:./:/usr/local/bin/:/Users/travismartin/root/bin
bash-3.2$ echo $LD_LIBRARY_PATH
/Users/travismartin/root/lib
bash-3.2$ echo $DYLD_LIBRARY_PATH
/Users/travismartin/root/lib
(when I cd into these folders, they do work and I am in the ROOT directory.)
Now, when I run my makefile, I get the following output:
gcc -o data/zprime.exe -O -lg2c zprime.o coup.o dec.o pdf.o Cteq6Pdf-2004.o integrate.o rootset.o cross.o print.o rcuts.o hist.o thesis.o paper.o -L-L/Users/travismartin/root/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lfreetype -pthread -lm -ldl -L/usr/local/lib
ld: library not found for -lCore
collect2: ld returned 1 exit status
make: *** [zprime.exe] Error 1
(I have bolded the ROOT library part that I think shows the problem.)
I am not sure what the problem is, as I haven’t changed my makefile, and this same setup used to work when I was running OS X 10.4 (Tiger). Can anyone see the problem?
Sorry to fill up the board with two posts on the same issue, but I have tried everything I know and everything my fellow grad students know to try to get this to work. We are all stumped. One of them has ROOT running successfully on Leopard, and I know it is supposed to work, so I am wondering where I went wrong. (Lesson to self - don’t upgrade OS while working on the data for a paper.)[/b]