Hi Rooters,
I configured my portable as master and slave of a PROOF cluster, and then I
run the following macro:
////////////////////////////////////////////////////////////////////////
//
// Interactive Program to look for microcalcifications
// Ej.
// ./gpcalma -b -q 'micro.C("/data/gpcalma/images/F21/1")'
//
micro_proof( char *filename="/data/gpcalma/images/F21/1" )
{
// gSystem->Exec("export GPCALMA=/home/cerello/gpcalma");
cout << "PATH: " << endl;
gSystem->Exec("echo $PATH");
TString bindir;
# ifdef GPCBINDIR
bindir = GPCBINDIR;
# else
bindir = "/usr/local/gpcalma/bin/tgt_Linux";
# endif
cout << "bindir is: " << bindir.Data() << endl;
TString path;
path = gSystem->Getenv("PATH");
if (!bindir.IsNull()) bindir += ":";
bindir += path;
gSystem->Setenv("PATH", bindir);
cout << "new PATH: " << bindir.Data() << endl;
gSystem->Exec("echo $PATH");
cout << "ldpath:" << endl;
gSystem->Exec("echo $LD_LIBRARY_PATH");
TString libdir;
# ifdef GPCLIBDIR
libdir = GPCLIBDIR;
# else
libdir = "/usr/local/gpcalma/lib/tgt_Linux";
# endif
cout << "libdir is: " << libdir.Data() << endl;
TString ldpath;
ldpath = gSystem->Getenv("LD_LIBRARY_PATH");
if (!libdir.IsNull()) libdir += ":";
libdir += ldpath;
gSystem->Setenv("LD_LIBRARY_PATH", libdir);
cout << "new ldpath: " << libdir.Data() << endl;
gSystem->Exec("echo $LD_LIBRARY_PATH");
cout << "Load shared libraries" << endl;
gSystem->Load("libSTEER.so");
gSystem->Load("libGPCGUI.so");
gSystem->Load("libMICRO.so");
gSystem->Load("libMASSE.so");
CALMAImage ima( filename );
CALMAMicrocalSeeker seeker( "${GPCALMA}/MICRO/", &ima );
seeker.Exec("");
}
In "ROOT" mode, everything is alright and the output is:
[cerello@PB-S-160-R-30-7-1 macros]$ root
*******************************************
* *
* W E L C O M E to R O O T *
* *
* Version 3.03/09 15 October 2002 *
* *
* You are welcome to visit our Web site *
* http://root.cern.ch *
* *
*******************************************
Compiled for linux with thread support.
CINT/ROOT C/C++ Interpreter version 5.15.60, Sep 29 2002
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] .x micro_proof.C
PATH:
/home/cerello/gpcalma/gpcalma/bin/tgt_Linux:/data/ROOT/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/data/Office52:/usr/local/Acrobat5/bin:/home/cerello/bin:/home/cerello/gpcalma/alien/bin
bindir is: /usr/local/gpcalma/bin/tgt_Linux
new PATH: /usr/local/gpcalma/bin/tgt_Linux:/home/cerello/gpcalma/gpcalma/bin/tgt_Linux:/data/ROOT/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/data/Office52:/usr/local/Acrobat5/bin:/home/cerello/bin:/home/cerello/gpcalma/alien/bin
/usr/local/gpcalma/bin/tgt_Linux:/home/cerello/gpcalma/gpcalma/bin/tgt_Linux:/data/ROOT/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/data/Office52:/usr/local/Acrobat5/bin:/home/cerello/bin:/home/cerello/gpcalma/alien/bin
ldpath:
/data/ROOT/root/lib:/home/cerello/gpcalma/gpcalma/lib/tgt_Linux:/data/ROOT/root/lib:
libdir is: /usr/local/gpcalma/lib/tgt_Linux
new ldpath: /usr/local/gpcalma/lib/tgt_Linux:/data/ROOT/root/lib:/home/cerello/gpcalma/gpcalma/lib/tgt_Linux:/data/ROOT/root/lib:
/usr/local/gpcalma/lib/tgt_Linux:/data/ROOT/root/lib:/home/cerello/gpcalma/gpcalma/lib/tgt_Linux:/data/ROOT/root/lib:
Load shared libraries
1897
490
1
1897
520
1
1897
610
1
root [1]
If I run proof, I get an error when I try to load the GPCALMA shared libraries.
(see the output in the following)
I checked the environment, and unless I miss something, it looks alright.
ROOT is downloaded and compiled from the CVS server.
Any suggestion to solve the problem?
thanks!!
piergiorgio
[cerello@PB-S-160-R-30-7-1 macros]$ root
*******************************************
* *
* W E L C O M E to R O O T *
* *
* Version 3.03/09 15 October 2002 *
* *
* You are welcome to visit our Web site *
* http://root.cern.ch *
* *
*******************************************
Compiled for linux with thread support.
CINT/ROOT C/C++ Interpreter version 5.15.60, Sep 29 2002
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] gROOT->Proof()
**** Welcome to the PROOF server @ PB-S-160-R-30-7-1.cern.ch ****
**** PROOF slave server @ PB-S-160-R-30-7-1.cern.ch started ****
PROOF set to sequential mode
root [1] gProof->Exec(".x micro_proof.C")
PATH:
/usr/local/root/bin:/bin:/usr/bin:/usr/local/bin
bindir is: /usr/local/gpcalma/bin/tgt_Linux
new PATH: /usr/local/gpcalma/bin/tgt_Linux:/usr/local/root/bin:/bin:/usr/bin:/usr/local/bin
/usr/local/gpcalma/bin/tgt_Linux:/usr/local/root/bin:/bin:/usr/bin:/usr/local/bin
ldpath:
/usr/local/root/lib
libdir is: /usr/local/gpcalma/lib/tgt_Linux
new ldpath: /usr/local/gpcalma/lib/tgt_Linux:/usr/local/root/lib
/usr/local/gpcalma/lib/tgt_Linux:/usr/local/root/lib
Load shared libraries
dlopen error: /usr/local/gpcalma/lib/tgt_Linux/libSTEER.so: undefined symbol: gClient
Load Error: Failed to load Dynamic link library /usr/local/gpcalma/lib/tgt_Linux/libSTEER.so
*** Interpreter error recovered ***
(int)(-1)
(Int_t)0
root [2]
Piergiorgio Cerello
I.N.F.N. Sez. di Torino
Via P. Giuria 1
10125 - TORINO, Italy
Tel. +390116707416
Fax. +390116707417
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET