permission deny error to download a PDF with lhapdf on a server

Asked by alireza.daneshvar

Hello,
I am trying to run MG5_aMC_v2_2_2 on a machine of SMU university.
on this machine they have installed an lhapdf in /usr/local which I don't have permission to get access there and I get this error when it trying to download the PDF:

INFO: Using LHAPDF v5.8.9 interface for PDFs
INFO: Trying to download NNPDF23_nlo_as_0118.LHgrid
Getting sets from http://www.hepforge.org/archive/lhapdf/pdfsets/current
Installing sets to /usr/local/share/lhapdf/PDFsets
Error: [Errno 13] Permission denied: '/usr/local/share/lhapdf/PDFsets'
WARNING: Could not download NNPDF23_nlo_as_0118.LHgrid into /users/ali/MG5_aMC_v2_2_2/amcfast_test/lib/PDFsets. Trying to save it locally

So, I have attempted to install a local lhapdf and set the lhapdf-config to this and then I get this error:

Starting run
INFO: Compiling the code
INFO: Using LHAPDF v5.9.1 interface for PDFs
INFO: Compiling source...
INFO: ...done, continuing with P* directories
INFO: Compiling directories...
INFO: Compiling on 8 cores
INFO: Compiling P0_dxu_wp...
INFO: Compiling P0_udx_wp...
WARNING: A compilation Error occurs when trying to compile /users/ali/MG5_aMC_v2_2_2/amcfast_test/SubProcesses/P0_udx_wp.
The compilation fails with the following output message:
/usr/bin/gfortran -o test_ME symmetry_fks_test_ME.o parton_lum_1.o parton_lum_2.o parton_lum_3.o parton_lum_chooser.o matrix_1.o matrix_2.o matrix_3.o real_me_chooser.o fks_inc_chooser.o leshouche_inc_chooser.o genps_fks.o setcuts.o setscales.o born.o sborn_sf.o b_sf_001.o fks_Sij.o trapfpe.o fastjetfortran_madfks_full.o fastjet_wrapper.o fks_singular.o montecarlocounter.o reweight_xsec.o boostwdir2.o configs_and_props_inc_chooser.o initcluster.o cluster.o reweight.o get_color.o FKSParamReader.o iproc_map.o MC_integer.o appl_interface.o BinothLHADummy.o cuts.o pythia_unlops.o recluster.o -L/users/ali/lib -lAPPLgrid -m64 -L/usr/lib/x86_64-linux-gnu -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic -u setup_amcfast_ -L/users/ali/lib -lamcfast -lamcfastcore -L../../lib/ -ldhelas -lgeneric -lmodel -lpdf -lcernlib -lLHAPDF -lstdc++ -Wl,-rpath,/usr/local/lib -lm -L/usr/local/lib -lfastjettools -lfastjet -lfastjetplugins -lsiscone_spherical -lsiscone -lstdc++
    /usr/bin/ld: warning: libgfortran.so.1, needed by /users/ali/lib/libLHAPDF.so, not found (try using -rpath or -rpath-link)
    /users/ali/lib/libamcfast.a(amcfast_interface.o): In function `amcfast::fill()':
    amcfast_interface.cxx:(.text+0x39c): undefined reference to `appl::grid::fill_phasespace(double, double, double, double, double const*, int)'
    amcfast_interface.cxx:(.text+0x586): undefined reference to `appl::grid::fill_phasespace(double, double, double, double, double const*, int)'
    amcfast_interface.cxx:(.text+0x5d4): undefined reference to `appl::grid::fill_phasespace(double, double, double, double, double const*, int)'
    amcfast_interface.cxx:(.text+0x61e): undefined reference to `appl::grid::fill_phasespace(double, double, double, double, double const*, int)'
    amcfast_interface.cxx:(.text+0x631): undefined reference to `appl::grid::fill(double, double, double, double, double const*, int)'
    amcfast_interface.cxx:(.text+0x661): undefined reference to `appl::grid::fill(double, double, double, double, double const*, int)'
    amcfast_interface.cxx:(.text+0x691): undefined reference to `appl::grid::fill(double, double, double, double, double const*, int)'
    amcfast_interface.cxx:(.text+0x69b): undefined reference to `appl::grid::fill(double, double, double, double, double const*, int)'
    /users/ali/lib/libamcfast.a(amcfast_interface.o): In function `amcfast::init()':
    amcfast_interface.cxx:(.text+0x1f2e): undefined reference to `lumi_pdf::lumi_pdf(std::string const&, std::vector<int, std::allocator<int> > const&)'
    amcfast_interface.cxx:(.text+0x2279): undefined reference to `appl::grid::grid(std::string const&, std::string const&)'
    amcfast_interface.cxx:(.text+0x245e): undefined reference to `appl::grid::grid(int, double, double, int, int, double, double, int, int, double, double, std::string, int, int, std::string)'

I think as you can see it cannot find the library of gfortran and applgrid I do n't know how to give the path of this library to madgraph, I'm trying LD_LIBRARY_PATH=/.../ but it was not useful.
I wil appreciate any help.
Thanks,
Alirzea.

Question information

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

Hi,
the error seems to be related to
    /usr/bin/ld: warning: libgfortran.so.1, needed by /users/ali/lib/libLHAPDF.so, not found

how did you installed lhapdf?
if it is a global installatio, was it compiled with the same fortran compiler that you are using now?
on which system are you working?

Cheers,

Marco

Revision history for this message
alireza.daneshvar (alireza-daneshvar) said :
#2

Dear Marco,
Thank you for your email, I am working on a server from SMU university, (
fred.physics.smu.edu), on this system there is available a LHAPDF v5.8.9 by
default on this machine in /usr/local/lib, when I run without lhapdf
interface it work properly but during running with lhapdf I got this error:

OSError: [Errno 13] Permission denied: '/usr/local/share/lhapdf/PDFsets'
WARNING: Could not download CT10.LHgrid into
/users/ali/MG5_aMC_v2_2_2/test/lib/PDFsets. Trying to save it locally

So, first. I have saved the PDF locally in
:/users/ali/MG5_aMC_v2_2_2/test/lib/PDFsets, but it gave same error.

then, I have attempted to install lhapdf locally:
./configure --prefix=/users/ali/local, and set lhapdf
/users/ali/bin/lhapdf-config, now after a lot of warning and error it
calculate the total cross section which I have attached the screen shot of
my terminal about this.

About, fortran compiler I think it use same compiler.

I have attached the output of my
Thanks,

On Mon, Nov 17, 2014 at 4:06 PM, marco zaro <
<email address hidden>> wrote:

> Your question #257753 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/257753
>
> Status: Open => Needs information
>
> marco zaro requested more information:
> Hi,
> the error seems to be related to
> /usr/bin/ld: warning: libgfortran.so.1, needed by
> /users/ali/lib/libLHAPDF.so, not found
>
> how did you installed lhapdf?
> if it is a global installatio, was it compiled with the same fortran
> compiler that you are using now?
> on which system are you working?
>
> Cheers,
>
> Marco
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/mg5amcnlo/+question/257753
>
> You received this question notification because you asked the question.
>

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

Hi Arileza,
can you try to install and compile yourself locally lhapdf, to see in particular if the compilation error is still there?
Let me know,

Marco

On 17 Nov 2014, at 18:31, alireza.daneshvar <email address hidden> wrote:

> Question #257753 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/257753
>
> Status: Needs information => Open
>
> alireza.daneshvar gave more information on the question:
> Dear Marco,
> Thank you for your email, I am working on a server from SMU university, (
> fred.physics.smu.edu), on this system there is available a LHAPDF v5.8.9 by
> default on this machine in /usr/local/lib, when I run without lhapdf
> interface it work properly but during running with lhapdf I got this error:
>
> OSError: [Errno 13] Permission denied: '/usr/local/share/lhapdf/PDFsets'
> WARNING: Could not download CT10.LHgrid into
> /users/ali/MG5_aMC_v2_2_2/test/lib/PDFsets. Trying to save it locally
>
> So, first. I have saved the PDF locally in
> :/users/ali/MG5_aMC_v2_2_2/test/lib/PDFsets, but it gave same error.
>
> then, I have attempted to install lhapdf locally:
> ./configure --prefix=/users/ali/local, and set lhapdf
> /users/ali/bin/lhapdf-config, now after a lot of warning and error it
> calculate the total cross section which I have attached the screen shot of
> my terminal about this.
>
> About, fortran compiler I think it use same compiler.
>
> I have attached the output of my
> Thanks,
>
>
> On Mon, Nov 17, 2014 at 4:06 PM, marco zaro <
> <email address hidden>> wrote:
>
>> Your question #257753 on MadGraph5_aMC@NLO changed:
>> https://answers.launchpad.net/mg5amcnlo/+question/257753
>>
>> Status: Open => Needs information
>>
>> marco zaro requested more information:
>> Hi,
>> the error seems to be related to
>> /usr/bin/ld: warning: libgfortran.so.1, needed by
>> /users/ali/lib/libLHAPDF.so, not found
>>
>> how did you installed lhapdf?
>> if it is a global installatio, was it compiled with the same fortran
>> compiler that you are using now?
>> on which system are you working?
>>
>> Cheers,
>>
>> Marco
>>
>> --
>> To answer this request for more information, you can either reply to
>> this email or enter your reply at the following page:
>> https://answers.launchpad.net/mg5amcnlo/+question/257753
>>
>> You received this question notification because you asked the question.
>>
>
> --
> You received this question notification because you are a direct
> subscriber of the question.

Revision history for this message
alireza.daneshvar (alireza-daneshvar) said :
#4

Dear Marco,

Thank you for your comments, I think there was something wrong with the
version of lhapdf on my machine, I have moved from version 5.9.1 to 5.8.9
and it is work properly now.

Thanks,
Alireza

On Mon, Nov 17, 2014 at 9:06 PM, marco zaro <
<email address hidden>> wrote:

> Your question #257753 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/257753
>
> Status: Open => Answered
>
> marco zaro proposed the following answer:
> Hi Arileza,
> can you try to install and compile yourself locally lhapdf, to see in
> particular if the compilation error is still there?
> Let me know,
>
> Marco
>
> On 17 Nov 2014, at 18:31, alireza.daneshvar
> <email address hidden> wrote:
>
> > Question #257753 on MadGraph5_aMC@NLO changed:
> > https://answers.launchpad.net/mg5amcnlo/+question/257753
> >
> > Status: Needs information => Open
> >
> > alireza.daneshvar gave more information on the question:
> > Dear Marco,
> > Thank you for your email, I am working on a server from SMU university, (
> > fred.physics.smu.edu), on this system there is available a LHAPDF
> v5.8.9 by
> > default on this machine in /usr/local/lib, when I run without lhapdf
> > interface it work properly but during running with lhapdf I got this
> error:
> >
> > OSError: [Errno 13] Permission denied: '/usr/local/share/lhapdf/PDFsets'
> > WARNING: Could not download CT10.LHgrid into
> > /users/ali/MG5_aMC_v2_2_2/test/lib/PDFsets. Trying to save it locally
> >
> > So, first. I have saved the PDF locally in
> > :/users/ali/MG5_aMC_v2_2_2/test/lib/PDFsets, but it gave same error.
> >
> > then, I have attempted to install lhapdf locally:
> > ./configure --prefix=/users/ali/local, and set lhapdf
> > /users/ali/bin/lhapdf-config, now after a lot of warning and error it
> > calculate the total cross section which I have attached the screen shot
> of
> > my terminal about this.
> >
> > About, fortran compiler I think it use same compiler.
> >
> > I have attached the output of my
> > Thanks,
> >
> >
> > On Mon, Nov 17, 2014 at 4:06 PM, marco zaro <
> > <email address hidden>> wrote:
> >
> >> Your question #257753 on MadGraph5_aMC@NLO changed:
> >> https://answers.launchpad.net/mg5amcnlo/+question/257753
> >>
> >> Status: Open => Needs information
> >>
> >> marco zaro requested more information:
> >> Hi,
> >> the error seems to be related to
> >> /usr/bin/ld: warning: libgfortran.so.1, needed by
> >> /users/ali/lib/libLHAPDF.so, not found
> >>
> >> how did you installed lhapdf?
> >> if it is a global installatio, was it compiled with the same fortran
> >> compiler that you are using now?
> >> on which system are you working?
> >>
> >> Cheers,
> >>
> >> Marco
> >>
> >> --
> >> To answer this request for more information, you can either reply to
> >> this email or enter your reply at the following page:
> >> https://answers.launchpad.net/mg5amcnlo/+question/257753
> >>
> >> You received this question notification because you asked the question.
> >>
> >
> > --
> > You received this question notification because you are a direct
> > subscriber of the question.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/mg5amcnlo/+question/257753/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/mg5amcnlo/+question/257753
>
> You received this question notification because you asked the question.
>

Revision history for this message
alireza.daneshvar (alireza-daneshvar) said :
#5

It is solved now.