Problems when installing Ninja

Asked by Zhi-Xiang Yang

When I open the mg5_aMC, I saw a message showing as follows:

 “/drives/C/Users/user/Desktop/MG5/HEPTools/lib does not seem to correspond to a valid ninja lib. Please enter the full PATH/TO/ninja/lib.
You will NOT be able to run ninja otherwise”.

And I tried to download ninja again, but some errors happened,

/usr/bin/ld: cannot find -lavh_olo: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:627: libninja.la] Error 1
make[2]: Leaving directory '/home/zxiang/Documents/MG5/HEPTools/ninja/Ninja/src'
make[1]: *** [Makefile:810: install-recursive] Error 1
make[1]: Leaving directory '/home/zxiang/Documents/MG5/HEPTools/ninja/Ninja/src'
make: *** [Makefile:426: install-recursive] Error 1
Finished installing Ninja

I followed the suggestion here, https://answers.launchpad.net/mg5amcnlo/+question/406744, which met a similar problem, and got as follows:

root@madgraph:/home/zxiang/Documents/MG5/bin# gfortran --version
GNU Fortran (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Zhi-Xiang Yang
Solved:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

Note first that ninja is an optional dependency, so it is fine to not have it installed in your machine. (code might be slower due to that but that's it).

So the issue seems to be in the oneloop dependency of ninja.
Can you show the log file for oneloop installation the file should be
/home/zxiang/Documents/MG5/HEPTools/oneloop/oneloop_install.log

If you change compiler, you can force the re-installation of the module via
install oneloop

Cheers,

Olivier

Revision history for this message
Zhi-Xiang Yang (zxiang) said (last edit ):
#2

Hi,

I see, but I should have ninja, thank you for your reply! The following is my oneloop_install.log,

Decompressing OneLOop
OneLOop-3.6/
OneLOop-3.6/DESCRIPTION
OneLOop-3.6/make_cuttools
OneLOop-3.6/example_cpp/
OneLOop-3.6/example_cpp/Config
OneLOop-3.6/example_cpp/cavh_olo.h
OneLOop-3.6/example_cpp/example.cpp
OneLOop-3.6/example_cpp/clean
OneLOop-3.6/example_cpp/README
OneLOop-3.6/src/
OneLOop-3.6/src/avh_pc_exe.py
OneLOop-3.6/src/avh_olo_mpfun90.f90
OneLOop-3.6/src/avh_olo_an.h90
OneLOop-3.6/src/avh_olo_a0.h90
OneLOop-3.6/src/avh_olo_arrays.f90
OneLOop-3.6/src/avh_olo_qmplx.f90
OneLOop-3.6/src/avh_olo_bub.f90
OneLOop-3.6/src/avh_olo_main.f90
OneLOop-3.6/src/avh_olo_b0.h90
OneLOop-3.6/src/avh_olo_tri.f90
OneLOop-3.6/src/avh_olo_version.f90
OneLOop-3.6/src/avh_olo_dilog.f90
OneLOop-3.6/src/avh_olo_real.h90
OneLOop-3.6/src/avh_pc_olo.py
OneLOop-3.6/src/avh_olo_bnlog.f90
OneLOop-3.6/src/avh_olo_auxfun.f90
OneLOop-3.6/src/avh_olo_olog.f90
OneLOop-3.6/src/avh_olo_print.f90
OneLOop-3.6/src/avh_olo_units.f90
OneLOop-3.6/src/avh_olo_qdcpp.f90
OneLOop-3.6/src/avh_olo_comb.f90
OneLOop-3.6/src/avh_olo_db0.h90
OneLOop-3.6/src/avh_pc.py
OneLOop-3.6/src/avh_olo_kinds.f90
OneLOop-3.6/src/avh_olo_arprec.f90
OneLOop-3.6/src/avh_pc_olo.pyc
OneLOop-3.6/src/avh_olo_c0.h90
OneLOop-3.6/src/avh_olo_d0.h90
OneLOop-3.6/src/avh_olo_ddfun90.f90
OneLOop-3.6/src/avh_olo.py
OneLOop-3.6/src/avh_olo_bub.h90
OneLOop-3.6/src/avh_olo_intrf.h90
OneLOop-3.6/src/avh_olo_box.f90
OneLOop-3.6/src/avh_pc.pyc
OneLOop-3.6/src/avh_olo_intrinsic.f90
OneLOop-3.6/src/avh_olo_wrp01.f90
OneLOop-3.6/src/avh_olo_boxc.f90
OneLOop-3.6/src/avh_olo_complex.h90
OneLOop-3.6/src/avh_olo_bn.h90
OneLOop-3.6/src/avh_olo_b11.h90
OneLOop-3.6/example_mpfun90/
OneLOop-3.6/example_mpfun90/irdiv_input
OneLOop-3.6/example_mpfun90/example.f
OneLOop-3.6/example_mpfun90/makefile
OneLOop-3.6/example_mpfun90/input
OneLOop-3.6/example_mpfun90/README
OneLOop-3.6/Config
OneLOop-3.6/create.py
OneLOop-3.6/example_ddfun90/
OneLOop-3.6/example_ddfun90/irdiv_input
OneLOop-3.6/example_ddfun90/example.f
OneLOop-3.6/example_ddfun90/makefile
OneLOop-3.6/example_ddfun90/input
OneLOop-3.6/example_ddfun90/README
OneLOop-3.6/clean.sh
OneLOop-3.6/COPYING
OneLOop-3.6/ONI/
OneLOop-3.6/ONI/src/
OneLOop-3.6/ONI/src/avh_oni_hello.f
OneLOop-3.6/ONI/src/avh_oni_real.f
OneLOop-3.6/ONI/src/avh_oni_cuba.h
OneLOop-3.6/ONI/src/avh_oni_cuba-1.x.h
OneLOop-3.6/ONI/src/avh_oni_3div.f
OneLOop-3.6/ONI/src/avh_oni_3fin.f
OneLOop-3.6/ONI/src/avh_oni_cmplx.f
OneLOop-3.6/ONI/src/avh_oni_func.f
OneLOop-3.6/ONI/src/avh_oni_d1mach.f
OneLOop-3.6/ONI/src/avh_oni_dfam.f
OneLOop-3.6/ONI/src/avh_oni_4div.f
OneLOop-3.6/ONI/src/avh_oni_dqagpe.f
OneLOop-3.6/ONI/src/avh_oni_cuba.f
OneLOop-3.6/ONI/src/avh_oni_cuba-2.x.h
OneLOop-3.6/ONI/build/
OneLOop-3.6/ONI/makefile
OneLOop-3.6/ONI/example/
OneLOop-3.6/ONI/example/input12
OneLOop-3.6/ONI/example/input10
OneLOop-3.6/ONI/example/input05
OneLOop-3.6/ONI/example/input11
OneLOop-3.6/ONI/example/input16
OneLOop-3.6/ONI/example/input08
OneLOop-3.6/ONI/example/input14
OneLOop-3.6/ONI/example/input09
OneLOop-3.6/ONI/example/example.f
OneLOop-3.6/ONI/example/makefile
OneLOop-3.6/ONI/example/input15
OneLOop-3.6/ONI/example/input13
OneLOop-3.6/ONI/example/input06
OneLOop-3.6/ONI/example/input
OneLOop-3.6/ONI/example/README
OneLOop-3.6/ONI/example/input07
OneLOop-3.6/ONI/README
OneLOop-3.6/example_arprec/
OneLOop-3.6/example_arprec/irdiv_input
OneLOop-3.6/example_arprec/f_test.f
OneLOop-3.6/example_arprec/makefile
OneLOop-3.6/example_arprec/input
OneLOop-3.6/example_arprec/README
OneLOop-3.6/example/
OneLOop-3.6/example/irdiv_input
OneLOop-3.6/example/example.f
OneLOop-3.6/example/makefile
OneLOop-3.6/example/input
OneLOop-3.6/example/README
OneLOop-3.6/example/example16.f
OneLOop-3.6/example_qdcpp/
OneLOop-3.6/example_qdcpp/irdiv_input
OneLOop-3.6/example_qdcpp/f_test.f
OneLOop-3.6/example_qdcpp/makefile
OneLOop-3.6/example_qdcpp/input
OneLOop-3.6/example_qdcpp/README
OneLOop-3.6/README
Enter OneLOop directory and installing OneLOop
Modding Config file to activate quadruple precision
./create.py: creating source file...
./create.py: compiling source file...
./create.py: building library...
Copying the static library and modules generated to target directory
Finished installing OneLOop

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

So this seems working.
Did you have the previously missing file in the lib directory of HepTools?
Did ninja compiles correctly?

Cheers,

Olivier

Revision history for this message
Zhi-Xiang Yang (zxiang) said :
#4

I also downloaded zlib, boost, lhpdf6, pythin8, and collier. All of them were downloaded successfully. I tried to re-install ninja, but it failed.

By the way, I tried the same things in 2.9.X LTS, as well as downloading ninja, everything worked well, so I think maybe there are some compatibility problems or bugs for my ubuntu.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#5

If it workded with 2.9.X then you can just link the ninja of 2.9.X within 3.X.
I'm just puzzled why it work for one and not the other, this is the same installation script

Revision history for this message
Zhi-Xiang Yang (zxiang) said :
#6

Right, it also puzzled me. They should be the same.

I'll try, thank you very much!