Hi,
I’d like to set up Proof on a Mac OS X machine using Fink installed from ROOT. I followed
http://root.cern.ch/twiki/bin/view/ROOT/XpdQuickSetup
but TProof::Open fails with
root [0] TProof *proof = TProof::Reset("")
Error in <TProofMgr::GetXProofMgrCtor>: can't locate /sw/lib/libProofx
Warning in <TProofMgr::Reset>: functionality not supported
The correct path on my machine is /sw/lib/root/libProofx.dylib. If I dig into the source I see
if (!fgTXProofMgrHook) {
// Load the appropriate library ...
#ifdef ROOTLIBDIR
TString prooflib = TString(ROOTLIBDIR);
#else
#ifndef WIN32
TString prooflib = TString(gRootDir) + "/lib";
#else
TString prooflib = TString(gRootDir) + "/bin";
#endif
#endif
prooflib += "/libProofx";
char *p = 0;
if ((p = gSystem->DynamicPathName(prooflib, kTRUE))) {
delete[] p;
if (gSystem->Load(prooflib) == -1)
::Error("TProofMgr::GetXProofMgrCtor",
"can't load %s", prooflib.Data());
} else
::Error("TProofMgr::GetXProofMgrCtor",
"can't locate %s", prooflib.Data());
}
I don’t know if this is a problem with Fink or a problem with Proof. In principle I suppose Fink could set ROOTLIBDIR during the build, but why does Proof need special help finding this library? Thanks,
Adam