Unable to install LHAPDF

Asked by Aviral

I have installed Ubuntu 22.04 on a Virtual Box running on Win 10. When I try to install LHAPDF as per the instructions mentioned on their website, I get an error with the configure command as follows:

/configure --prefix = ~/Documents/MG5_aMC_v3_5_3/HEPTools
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /home/strider/Documents/MG5_aMC_v3_5_3/HEPTools
configure: error: expected an absolute directory name for --prefix: =

I have tried changing the installation path, for instance assigning it as ~/Documents and even writing full path as /home/strider/Documents, nothing works

Question information

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

Hi,

I'm not a lhapdf expert.
My advise would be to use
./configure --prefix=/home/strider/Documents//MG5_aMC_v3_5_3/HEPTools

If it does not work, then the best is to contact lhapdf authors.

Cheers,

Olivier

> On 8 Jan 2024, at 19:25, Aviral <email address hidden> wrote:
>
> New question #708929 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/708929
>
> I have installed Ubuntu 22.04 on a Virtual Box running on Win 10. When I try to install LHAPDF as per the instructions mentioned on their website, I get an error with the configure command as follows:
>
> /configure --prefix = ~/Documents/MG5_aMC_v3_5_3/HEPTools
> configure: WARNING: you should use --build, --host, --target
> configure: WARNING: invalid host type: /home/strider/Documents/MG5_aMC_v3_5_3/HEPTools
> configure: error: expected an absolute directory name for --prefix: =
>
> I have tried changing the installation path, for instance assigning it as ~/Documents and even writing full path as /home/strider/Documents, nothing works
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Aviral (elf-legolas) said :
#2

Thanks a lot! It worked after removing the space but now the process stops with an error: python not found in system path
I have already added path to python3 as follows:-
export PATH="/usr/bin/python3/bin:$PATH"

alias python=python3

Can you help with this problem?

Provide an answer of your own, or ask Aviral for more information if necessary.

To post a message you must log in.