MadGraph_5问题:/usr/bin/ld: 找不到 -lstdc++

INFO: Compiling MCatNLO for PYTHIA8... 
/usr/bin/ld: 找不到 -lstdc++
collect2: 错误:ld 返回 1
make: *** [Pythia83] 错误 1
EPTools/lhapdf6_py3/include -I/root/MG5_aMC_v3_3_1/HEPTools/pythia8/include \
  -I/root/MG5_aMC_v3_3_1/PRO/MCatNLO/include  Pythia83.cc -o Pythia8.exe  \
  -L/root/MG5_aMC_v3_3_1/HEPTools/pythia8/lib -lpythia8  \
  -I/root/MG5_aMC_v3_3_1/HEPTools/hepmc/include -L/root/MG5_aMC_v3_3_1/HEPTools/hepmc/lib -Wl,-rpath,/root/MG5_aMC_v3_3_1/HEPTools/hepmc/lib -lHepMC -L../lib -L/root/MG5_aMC_v3_3_1/HEPTools/pythia8//lib -Ll,-rpath,/root/MG5_aMC_v3_3_1/HEPTools/pythia8//lib -L/root/MG5_aMC_v3_3_1/HEPTools/zlib/lib -Ll,-rpath,/root/MG5_aMC_v3_3_1/HEPTools/zlib/lib -lpythia8 -lz -ldl -lstdc++  \

Pythia8 compilation did not succeed, exiting

Error detected in "launch auto "
write debug file /root/MG5_aMC_v3_3_1/PRO/run_05_tag_1_debug.log 
If you need help with this issue, please, contact us on https://answers.launchpad.net/mg5amcnlo
str : Compilation failed, check /root/MG5_aMC_v3_3_1/PRO/mcatnlo.log for details
quit
INFO:

如果在MG5中出现找不到 -lstdc++的 错误,那就是系统没有装 -lstdc++,安装一下 -lstdc++就行了,在在系统终端输入

yum install glibc-static libstdc++-static -y

等待安装完就可以了(针对centos系统)

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值