Fork me on GitHub

Opened 7 years ago

Closed 7 years ago

#1172 closed How to (fixed)

Delphes 3.4.1 installation

Reported by: huayangs Owned by:
Priority: major Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Installation, ROOT 6.10/08, Imt Cc: huayangs

Description (last modified by Pavel Demin)

Hi,

I'm attempting to install Delphes, but whenever I use the make command, I get the following response:

/usr/bin/ld: cannot find -lImt
collect2: error: ld returned 1 exit status
Makefile:2158: recipe for target 'libDelphesNoFastJet.so' failed
make: *** [libDelphesNoFastJet.so] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/ld: cannot find -lImt
/usr/bin/ld: cannot find -lImt
collect2: error: ld returned 1 exit status
Makefile:2320: recipe for target 'hepmc2pileup' failed
make: *** [hepmc2pileup] Error 1
collect2: error: ld returned 1 exit status
Makefile:2185: recipe for target 'libDelphes.so' failed
make: *** [libDelphes.so] Error 1
/usr/bin/ld: cannot find -lImt
collect2: error: ld returned 1 exit status
Makefile:2320: recipe for target 'lhco2root' failed
make: *** [lhco2root] Error 1
/usr/bin/ld: cannot find -lImt
/usr/bin/ld: cannot find -lImt
collect2: error: ld returned 1 exit status
Makefile:2320: recipe for target 'pileup2root' failed
make: *** [pileup2root] Error 1
collect2: error: ld returned 1 exit status
Makefile:2320: recipe for target 'root2lhco' failed
make: *** [root2lhco] Error 1
/usr/bin/ld: cannot find -lImt
collect2: error: ld returned 1 exit status
Makefile:2320: recipe for target 'root2pileup' failed
make: *** [root2pileup] Error 1

I have ROOT 6.10/08 installed. I know that the structure of ROOT has been made some changes since version 6.08. However, I don't understand what causes this problem since the makefile uses root-config to get the path of ROOT's libraries. I'd really appreciate any help at all

Change History (6)

comment:1 by Pavel Demin, 7 years ago

Description: modified (diff)

comment:2 by Pavel Demin, 7 years ago

Could you please run the following command and post its output here?

root-config --cflags --libs

in reply to:  2 comment:3 by huayangs, 7 years ago

Replying to pavel:

Could you please run the following command and post its output here?

root-config --cflags --libs

The output is

-pthread -std=c++11 -m64 -I/usr/local//include/root -L/usr/local//lib/root -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -lm -ldl -rdynamic

Thanks,
Huayang

Last edited 7 years ago by Pavel Demin (previous) (diff)

comment:4 by Pavel Demin, 7 years ago

Thanks for the root-config output. So, as you can see -lImt is one of the ROOT libraries. If the linker can't find it, then probably there is something wrong with the ROOT installation. Could you check if you have /usr/local//lib/root/libImt.so installed?

in reply to:  4 comment:5 by huayangs, 7 years ago

Thanks for your help.

I found that some of the ROOT libraries were not compiled when I installed ROOT. I can figure it out by myself.


Replying to pavel:

Thanks for the root-config output. So, as you can see -lImt is one of the ROOT libraries. If the linker can't find it, then probably there is something wrong with the ROOT installation. Could you check if you have /usr/local//lib/root/libImt.so installed?

comment:6 by Pavel Demin, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.