[code]
ROOT 5.21/04 (trunk@25661, Oct 02 2008, 13:17:00 on macosx)
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] gSystem->Load(“libHbook”)
dlopen error: dlopen(/Applications/root/521/lib/libminicern.so, 9): Library not loaded: /usr/local/lib/libgfortran.3.dylib
Referenced from: /Applications/root/521/lib/libminicern.so
Reason: image not found
Load Error: Failed to load Dynamic link library /Applications/root/521/lib/libminicern.so
(int)(-1)
*** Interpreter error recovered ***
root [1][/code]
I now have h2root in my PATH, but when I try to use it I get:
$ h2root sp-1005-all.rz ccbar.root
dyld: Library not loaded: /usr/local/lib/libgfortran.3.dylib
Referenced from: /Applications/root/521/bin/h2root
Reason: image not found
Trace/BPT trap
$
It seems I have problem with a gfortran dynamic lib. Which gcc are you using to compile this ROOT version? I don’t have that library in my /usr/local/lib.
I don’t know if it can help, but typing “gfortran -v” gives:
Using built-in specs.
Target: i386-apple-darwin8.10.1
Configured with: …/gcc-4.3-20070810/configure --enable-threads=posix --enable-languages=fortran
Thread model: posix
gcc version 4.3.0 20070810 (experimental)
gfortran -O2 -m64 -std=legacy -o main/src/g2root.o -c main/src/g2root.f
gfortran -O2 -m64 -bind_at_load -o bin/g2root main/src/g2root.o \
-Llib lib/libminicern.so \
/sw/lib/gcc4.2/lib/gcc/i686-apple-darwin9/4.2.2/../../../x86_64/libgfortran.dylib /sw/lib/gcc4.2/lib/gcc/i686-apple-darwin9/4.2.2/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
$
Any idea?
I’m trying to install into /Application/root/521 from source;
I have downloaded source and unpacked in /Application/root/.;
then I changed root main directory name to 521;
To install I’ve typed:
The -rpath option is only supported in 10.5 so it should work on any 10.5 system. Btw, thanks to this -rpath you don’t need to set ROOTSYS anymore. You only need to add /Application/root/521/bin to PATH.