Ich versuche, Perl 5.26.0 auf einem CentOS 7-System zu installieren, wo ich keinen Root-Zugriff habe. Ich installierte diese Version von Perl ohne Probleme auf einem anderen CentOS 6 System. Hier ist der Befehl configure ich ausgeführt:Fehler (generate_uudmap.o) während Installation von Perl 5.26.0
./Configure -des -Dusethreads -Dprefix=$INSTALL_PATH/$SOFTWARE-$VERSION
Und hier ist der Fehler, den ich erhalten:
gcc -c -DPERL_CORE -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -std=c89 -O2 -Wall -Werror=declaration-after-statement -Wextra -Wc++-compat -Wwrite-strings generate_uudmap.c
In file included from /path/to/include/string.h:635:0,
from generate_uudmap.c:10:
/path/to/include/bits/string3.h:129:1: error: C++ style comments are not allowed in ISO C90
// XXX We have no corresponding builtin yet.
^
/path/to/include/bits/string3.h:129:1: error: (this will be reported only once per input file)
make: *** [Makefile:250: generate_uudmap.o] Error 1
*: * „Fehler C++ Stil Kommentare werden nicht in ISO C90 erlaubt“: Versuchen Sie entfernen die ' -std = c89' Option (oder stattdessen '-std = c99'). Siehe [gcc options controlling C dialect] (https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html) und [Warum kann ich keine // -style-Kommentare in meinem C-Code verwenden?] (https://stackoverflow.com/q/2223541/2173773) –
Sie können C-Compiler-Optionen ändern, indem Sie sie mit der '-A' wechseln zu' Configure'. Zum Beispiel: './Configure -des -Accflags = -std = c99 [...]' –
Wenn ich jedoch die '-Accflags = -std = c99 'hinzufüge, erzeugt es den folgenden Befehl:' gcc -c - DPERL_CORE -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-Aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS = 64 -D_FORTIFY_SOURCE = 2 -std = c99 -std = c89 -O2 -Wand -Werror = Deklaration-nach- Anweisung -Wextra -WC++ - compat -Write-Strings generate_uudmap.c' Also im Grunde '-std = c99' und' -std = c89' und erzeugt die gleiche Fehler msg. –