Re: dlopen error

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Thu, 15 Sep 2011 10:37:24 -0500


< dlopen error: JetID_v2.0_cpp.so <http://JetID_v2.0_cpp.so>: cannot open shared object file: No such file or directory  > Load Error: Failed to load Dynamic link library /tmp/bawa/macros/./StatisticsAnalysis_C.so (int)(-1)

The directory in which JetID_v2.0_cpp.so <http://JetID_v2.0_cpp.so> exist is not in the LD_LIBRARY_PATH (in this case it might just '.' that is missing).

Cheers,
Philippe.

On 9/15/11 8:54 AM, Harinder Singh Bawa wrote:
> Hello,
>
> I failed to understand why my code compiles in my tier 3 system when I activate bare ROOT. It crashes while running(But thats
> seperate issue).
>
>
> But When I use the root coming with Athena in my fresno t3, OR in LXPLUS if I install latest version of root ( Using
> ./afs/cern.ch <http://cern.ch>/sw/lcg/external/gcc/4.3.2/x86_64-slc5/setup.sh
>
> ./afs/cern.ch <http://cern.ch>/sw/lcg/app/releases/ROOT/5.30.01/x86_64-slc5-gcc43-opt/root/bin/thisroot.sh
> )
>
> and runs, it complaints of
>
> dlopen error: JetID_v2.0_cpp.so <http://JetID_v2.0_cpp.so>: cannot open shared object file: No such file or directory
> Load Error: Failed to load Dynamic link library /tmp/bawa/macros/./StatisticsAnalysis_C.so
> (int)(-1)
>
> This JetIDxxx.so , I remade by first removing older JetIDxxx.so and then compiled the code. But it is complaning the same. I
> removed all *.d and *.so files and re-compiled. But when it runs, it again complains the same. This kid of complaint I am not
> getting in my fresno t3 system where I activate ROOT only(without athena).
>
>
> Here are the steps I am doing:
> ==========================
> [bawa_at_lxplus303 macros]$ ls
> all.ps <http://all.ps> JetID_v2.0_cpp.so <http://JetID_v2.0_cpp.so> setLimits.C
> appendToVector.C log.txt setLimits.h
> commonFunctions.h makeAngularDistribution.C signal
> compareSignalTemplates.C makeToyResonance.C singExclusionPlot
> compile.C masses.txt singRenameBranches
> cutFlow.C MCDSInfo.h StatisticsAnalysis.C
> d3pdDijetMassAndChi16.C mergeParallelExpectedLimits.bash StatisticsAnalysis_C.d
> d3pdDijetMassAndChi16_C.d ntuples StatisticsAnalysis_C.so
> d3pdDijetMassAndChi16_C.so parallel_expectedLimit.bash StatisticsAnalysis.h
> d3pdDijetMassAndChi16.h pics studyCorrelations.py
> d3pdDijetMassAndChi.C PileupReweighting studyWithFrederik.C
> d3pdDijetMassAndChi.h plotGraphsTogether.C testD3PD.C
> f_chi_output_J240.root presentDistributionOfLimits.C testMorph.C
> GRL producePlotsForICHEP.bash tools.h
> hardCodePlot.C README_instructionsForResonanceSearch.txt ToyGenerator.C
> inner_CI.root reduceD3PDs.C ToyGenerator.h
> jesError results_july2011_B_H4 TriggerReader
> JetID rootlogon.C
> [bawa_at_lxplus303 macros]$ rm *.so
> [bawa_at_lxplus303 macros]$ rm JetID/
> JetID_v2.0.cpp JetID_v2.0_cpp.d JetID_v2.0_cpp.so <http://JetID_v2.0_cpp.so> JetID_v2.0.hpp .svn/
> [bawa_at_lxplus303 macros]$ rm JetID/*.so
> [bawa_at_lxplus303 macros]$ rm JetID/*.d
> [bawa_at_lxplus303 macros]$ rm PileupReweighting/
> ChangeLog python/
> cmt/ ROOT/
> ilumicalc_histograms_EF_j180_a4tc_EFFS_178044-183602.root share/
> ilumicalc_histograms_EF_j180_a4tc_EFFS_178044-184169.root src/
> mu_mc10a.root StandAlone/
> mu_mc10b.root .svn/
> PileupReweighting/
> [bawa_at_lxplus303 macros]$ rm PileupReweighting/StandAlone/*.so
> [bawa_at_lxplus303 macros]$ root -b -q compile.C
> *******************************************
> * *
> * W E L C O M E to R O O T *
> * *
> * Version 5.30/01 8 August 2011 *
> * *
> * You are welcome to visit our Web site *
> * http://root.cern.ch *
> * *
> *******************************************
>
> ROOT 5.30/01 (tags/v5-30-01_at_40633, Aug 18 2011, 16:46:17 on linuxx8664gcc)
>
> CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
>
> Welcome to the ATLAS rootlogon.C
> root [0]
> Processing compile.C...
> Using /afs/cern.ch/sw/lcg/app/releases/ROOT/5.30.01/x86_64-slc5-gcc43-opt/root/test/Makefile.arch
> <http://cern.ch/sw/lcg/app/releases/ROOT/5.30.01/x86_64-slc5-gcc43-opt/root/test/Makefile.arch>
> Linking ../StandAlone/libPileupReweighting.so
> /tmp/bawa/macros
> Info in <TUnixSystem::ACLiC>: creating shared library /tmp/bawa/macros/JetID/JetID_v2.0_cpp.so <http://JetID_v2.0_cpp.so>
> Info in <TUnixSystem::ACLiC>: creating shared library /tmp/bawa/macros/d3pdDijetMassAndChi16_C.so
> Info in <TUnixSystem::ACLiC>: creating shared library /tmp/bawa/macros/StatisticsAnalysis_C.so
> [bawa_at_lxplus303 macros]$
> [bawa_at_lxplus303 macros]$ ./producePlotsForICHEP.bash
> part 1
> rm: cannot remove `setLimits_output.root': No such file or directory
>
> Welcome to the ATLAS rootlogon.C
>
> Processing setLimits.C...
> dlopen error: JetID_v2.0_cpp.so <http://JetID_v2.0_cpp.so>: cannot open shared object file: No such file or directory
> Load Error: Failed to load Dynamic link library /tmp/bawa/macros/./StatisticsAnalysis_C.so
> (int)(-1)
> cp: cannot stat `setLimits_output.root': No such file or directory
> cp: cannot stat `pics/fitPythia*': No such file or directory
> cp: cannot stat `pics/significancePythiaMinusFit*': No such file or directory
> rm: cannot remove `setLimits_output.root': No such file or directory
> rm: cannot remove `pics/power.*': No such file or directory
>
>
>
>
> Harinder
>
Received on Thu Sep 15 2011 - 17:37:33 CEST

This archive was generated by hypermail 2.2.0 : Thu Sep 15 2011 - 23:50:01 CEST