Installing LHAPDF with MadGraph

Asked by N

Hello,

I've got MadGraph installed on my PC (Ubuntu 20.04.6) and it runs fine. I've been trying to install LHAPDF and link it, but have run into an issue. After untarring the installation files, the command:

/configure --prefix=/~/Documents/Programs

runs fine (~/Documents/Programs is where I want the installed files to go). The make command also seems to run fine, but when i run make install, I get the following error

Making install in src
make[1]: Entering directory '/home/navneet/LHAPDF-6.5.4/src'
Making install in yamlcpp
make[2]: Entering directory '/home/navneet/LHAPDF-6.5.4/src/yamlcpp'
make[3]: Entering directory '/home/navneet/LHAPDF-6.5.4/src/yamlcpp'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/navneet/LHAPDF-6.5.4/src/yamlcpp'
make[2]: Leaving directory '/home/navneet/LHAPDF-6.5.4/src/yamlcpp'
make[2]: Entering directory '/home/navneet/LHAPDF-6.5.4/src'
make[3]: Entering directory '/home/navneet/LHAPDF-6.5.4/src'
 /usr/bin/mkdir -p '/~/Documents/Programs/lib'

/usr/bin/mkdir: cannot create directory ‘/~’: Permission denied
make[3]: *** [Makefile:498: install-libLTLIBRARIES] Error 1
make[3]: Leaving directory '/home/navneet/LHAPDF-6.5.4/src'
make[2]: *** [Makefile:810: install-am] Error 2
make[2]: Leaving directory '/home/navneet/LHAPDF-6.5.4/src'
make[1]: *** [Makefile:647: install-recursive] Error 1
make[1]: Leaving directory '/home/navneet/LHAPDF-6.5.4/src'
make: *** [Makefile:522: install-recursive] Error 1

the big issue seems to be stemming from this line: /usr/bin/mkdir: cannot create directory ‘/~’: Permission denied (this line has a space before it in the above sample) and then the following error messages. Have I made an error in giving the installation path?

Additional note: I'm using the current Madgraph version, so it uses python3, and the compilation for LHAPDF also uses python3 (it had an error when it couldn't find python in the path, so I installed the python-is-python3 package and it ran fine after that).

Thank you

Question information

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

Hi,

We are not lhapdf expert, the best for compilation with lhapdf is to ask lhapdf authors.
But since this is a more a UNIX question than a question related to any tools, I do have an answer for that specific problem.
(but please for the rest ask lhapdf authors).

In your case, the best is likely to replace the "~" by the real path on your disk.
What can also work is to remove the "/" before the tilde since that "/" does not make any sense and prevent unix to replace the "~" by the proper path.

Cheers,

Olivier

Revision history for this message
N (nkrish) said :
#2

Hi,

Thank you very much, and I'll direct future questions on this to the LHAPDF authors.