OSError : [Errno 13] Permission denied

Asked by James

Hi everyone,

I am having a little issue with running aMC@NLO with LHAPDF. I installed LHAPDF locally to /nv/blue/james/private/MG5_aMC_v2_3_0/LHAPDF-6.1.5/lhapdf-config.

Then in the /nv/blue/james/private/MG5_aMC_v2_3_0/input/mg5_configuration.txt I set the path to lhapdf as what I showed above.

Now, whenever I try to run aMC@NLO using lhapdf 260400 (in run_card.dat) I get the following error right when launching:

INFO: Starting run
INFO: Compiling the code
Command "launch auto " interrupted with error:
OSError : [Errno 13] Permission denied

Has anyone seen this before, or know of any fixes?

Thanks in advance,
James

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
marco zaro Edit question
Solved by:
James
Solved:
Last query:
Last reply:
Revision history for this message
James (zrc2hs) said :
#1

Update: While reading through the outout text, I found this message after setting the lhapdf path:

set lhapdf /nv/blue/james/private/MG5_aMC_v2_3_0/LHAPDF-6.1.5/lhapdf-config
/nv/blue/james/private/MG5_aMC_v2_3_0/LHAPDF-6.1.5/lhapdf-config does not seem to correspond to a valid lhapdf-config executable.

While I know it is there, ie cat /nv/blue/james/private/MG5_aMC_v2_3_0/LHAPDF-6.1.5/lhapdf-config gives:

#! /usr/bin/env bash
## -*- sh -*-
## lhapdf-config. Generated from lhapdf-config.in by configure.

## These variables need to exist
## Note no use of $DESTDIR... we ignore it so that destdir can be used
## for temp installs later copied to /
prefix=/nv/blue/james/private/MG5_aMC_v2_3_0
exec_prefix=${prefix}
datarootdir=${prefix}/share

if [[ $# -eq 0 || -n $( echo $* | egrep -- "--help|-h" ) ]]; then
    echo "lhapdf-config: configuration tool for the LHAPDF"
    echo " parton density function evolution library"
    echo " http://projects.hepforge.org/lhapdf/"
    echo
    echo "Usage: lhapdf-config [options]"
    echo "Options:"
    echo " --help | -h : show this help message"
    echo " --prefix : show the installation prefix (cf. autoconf)"
    echo " --incdir : show the path to the LHAPDF C++ header directory"
    echo " --libdir : show the path to the LHAPDF library directory"
    echo " --datadir : show the path to the LHAPDF data directory"
    echo
    echo " --cflags : get compiler flags (aka --cppflags|--cxxflags)"
    echo " --libs : get linker flags (aka --ldflags)"
    echo
    echo " --version : return LHAPDF release version number"
fi

OUT=""

tmp=$( echo "$*" | egrep -- '--\<prefix\>')
test -n "$tmp" && OUT="$OUT /nv/blue/zrc2hs/private/MG5_aMC_v2_3_0"

tmp=$( echo "$*" | egrep -- '--\<incdir\>')
test -n "$tmp" && OUT="$OUT ${prefix}/include"

tmp=$( echo "$*" | egrep -- '--\<cflags|cppflags|cxxflags\>')
test -n "$tmp" && OUT="$OUT -I${prefix}/include "

tmp=$( echo "$*" | egrep -- '--\<libdir\>')
test -n "$tmp" && OUT="$OUT ${exec_prefix}/lib"

tmp=$( echo "$*" | egrep -- '--\<libs|ldflags\>')
test -n "$tmp" && OUT="$OUT -L${exec_prefix}/lib -lLHAPDF"

tmp=$( echo "$*" | egrep -- '--\<datadir\>|--\<datarootdir\>')
test -n "$tmp" && OUT="$OUT ${datarootdir}/LHAPDF"

tmp=$( echo "$*" | egrep -- '--\<version\>')
test -n "$tmp" && OUT="$OUT 6.1.5"

echo $OUT

Is there something else I need to do to make this a valid location for MG5?

Revision history for this message
marco zaro (marco-zaro) said :
#2

Hi James,
can you check if you have execution rights for lhapdf-config?
It looks like it cannot be executed...
Cheers,

Marco

Revision history for this message
James (zrc2hs) said :
#3

Hi Marco,

That fixed it! I'm sorry I missed that, I guess I just assumed it would have built in a way that gave it execution rights. Thanks for your help!

Thanks,
James