Perl makefile.PL this distribution requires a working compiler

Fermé
Claire - Modifié le 10 mars 2020 à 15:47
[Dal] Messages postés 6175 Date d'inscription mercredi 15 septembre 2004 Statut Contributeur Dernière intervention 30 avril 2024 - 12 mars 2020 à 11:31
Bonjour,

J'ai un soucis avec mon perl, lorsque je tape sur le terminal " perl Makefile.PL" il me sort cette erreur et ce pour chaque fichier makefile:
/home/foo/miniconda3/bin/x86_64-conda_cos6-linux-gnu-ld: unrecognized option '-Wl,-O2'
/home/foo/miniconda3/bin/x86_64-conda_cos6-linux-gnu-ld: use the --help option for usage information
Couldn't execute /home/foo/miniconda3/bin/x86_64-conda_cos6-linux-gnu-ld HASCOMPILER8Ve7/TESTNwXh.o -o HASCOMPILER8Ve7/TESTNwXh.so -shared -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/home/foo/miniconda3/lib -Wl,-rpath-link,/home/foo/miniconda3/lib -L/home/foo/miniconda3/lib --sysroot /home/foo/miniconda3/bin/..//x86_64-conda_cos6-linux-gnu/sysroot -fstack-protector-strong : Inappropriate ioctl for device at Makefile.PL line 12.
This distribution requires a working compiler at Makefile.PL line 12.


J'ai beau chercher sur internet mais je ne trouve pas de solutions ...

voici le résumé de mon perl :

Summary of my perl5 (revision 5 version 26 subversion 2) configuration:

  Platform:
    osname=linux
    osvers=4.15.0-1041-azure
    archname=x86_64-linux-thread-multi
    uname='linux 5b5b05c2e5c2 4.15.0-1041-azure #45-ubuntu smp fri mar 15 14:41:00 utc 2019 x86_64 x86_64 x86_64 gnulinux '
    config_args='-de -Dprefix=/home/foo/miniconda3 -Dusethreads -Duserelocatableinc -Dcccdlflags=-fPIC -Dldflags=-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/home/foo/miniconda3/lib -Wl,-rpath-link,/home/foo/miniconda3/lib -L/home/foo/miniconda3/lib -Ddefault_inc_excludes_dot=n -Dcc=/home/foo/miniconda3/bin/..//bin/x86_64-conda_cos6-linux-gnu-gcc -Dar=/home/foo/miniconda3/bin/..//bin/x86_64-conda_cos6-linux-gnu-ar -Dlddlflags=-shared -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/home/foo/miniconda3/lib -Wl,-rpath-link,/home/foo/miniconda3/lib -L/home/foo/miniconda3/lib -Dsysroot=/home/foo/miniconda3/bin/..//x86_64-conda_cos6-linux-gnu/sysroot'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=undef
    bincompat5005=undef
  Compiler:
    cc='/home/foo/miniconda3/bin/..//bin/x86_64-conda_cos6-linux-gnu-gcc'
    ccflags ='-D_REENTRANT -D_GNU_SOURCE --sysroot=/home/foo/miniconda3/bin/..//x86_64-conda_cos6-linux-gnu/sysroot -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
    optimize='-O2'
    cppflags='--sysroot=/home/foo/miniconda3/bin/..//x86_64-conda_cos6-linux-gnu/sysroot -D_REENTRANT -D_GNU_SOURCE --sysroot=/home/foo/miniconda3/bin/..//x86_64-conda_cos6-linux-gnu/sysroot -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong'
    ccversion=''
    gccversion='7.3.0'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='/home/foo/miniconda3/bin/..//bin/x86_64-conda_cos6-linux-gnu-gcc'
    ldflags ='-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/home/foo/miniconda3/lib -Wl,-rpath-link,/home/foo/miniconda3/lib -L/home/foo/miniconda3/lib -fstack-protector-strong'
    libpth=/home/foo/miniconda3/bin/..//bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/include-fixed /home/foo/miniconda3/bin/..//x86_64-conda_cos6-linux-gnu/sysroot/usr/lib /home/foo/miniconda3/bin/..//x86_64-conda_cos6-linux-gnu/sysroot/lib
    libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version='2.12'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC --sysroot=/home/foo/miniconda3/bin/..//x86_64-conda_cos6-linux-gnu/sysroot'
    lddlflags='-shared -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/home/foo/miniconda3/lib -Wl,-rpath-link,/home/foo/miniconda3/lib -L/home/foo/miniconda3/lib --sysroot /home/foo/miniconda3/bin/..//x86_64-conda_cos6-linux-gnu/sysroot -fstack-protector-strong'


Characteristics of this binary (from libperl): 
  Compile-time options:
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
  Built under linux
  Compiled at Apr 18 2019 16:12:45
  %ENV:
    PERL5LIB="/home/foo/perl5/lib/perl5"
    PERL_LOCAL_LIB_ROOT="/home/foo/perl5"
    PERL_MB_OPT="--install_base "/home/foo/perl5""
    PERL_MM_OPT="INSTALL_BASE=/home/foo/perl5"
  @INC:
    /home/foo/perl5/lib/perl5/x86_64-linux-thread-multi
    /home/foo/perl5/lib/perl5
    /home/foo/miniconda3/lib/site_perl/5.26.2/x86_64-linux-thread-multi
    /home/foo/miniconda3/lib/site_perl/5.26.2
    /home/foo/miniconda3/lib/5.26.2/x86_64-linux-thread-multi
    /home/foo/miniconda3/lib/5.26.2


Configuration: Linux / Firefox 73.0

1 réponse

[Dal] Messages postés 6175 Date d'inscription mercredi 15 septembre 2004 Statut Contributeur Dernière intervention 30 avril 2024 1 083
12 mars 2020 à 11:31
Salut Claire,

Le module Perl que tu veux installer nécessite une compilation d'une dépendance et pour cela il te faut une chaîne de compilation (compilateur, éditeur de liaisons).

Peux-tu taper :

which gcc

et
ls -al /usr/bin/gcc


Je pense que tu dois disposer de conda sur ton installation et que cet environnement installe sa propre version des outils de la chaîne de compilation, et que lorsque tu lances ton script d'installation Perl, ton environnement accède aux versions installées par conda et non à celles du système.


Dal
0