Issue
I'm trying to install Perl 5.26.0 on a CentOS 7 system where I do not have root access. I installed that version of Perl with no problem on another CentOS 6 system. Here is the configure command I executed:
./Configure -des -Dusethreads -Dprefix=$INSTALL_PATH/$SOFTWARE-$VERSION
And here is the error I obtain:
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
Solution
Okay it works now! :D. After the error thrown by Configure, I went into the sflags
file and commented line #13: stdflags=" -std=c89"
I ran make
again and then make install
Answered By - julio514 Answer Checked By - Gilberto Lyons (WPSolving Admin)