当前位置:网站首页>GCC error: terminate called after throwing an instance of 'std:: regex_ error‘ what(): regex
GCC error: terminate called after throwing an instance of 'std:: regex_ error‘ what(): regex
2022-07-06 16:55:00 【Flower dog fdog】
The reason for this error should be gcc Version problem .
View version commands :
gcc --version
If there is no accident, it should be 4.8.x Version of
Inquiry gcc4.9 To support c++ Regular expression of , So we need to put gcc upgrade .
Find one first gcc4.9 Install the source package of ( Find one for yourself )
mkdir build
…/./configure
make & make install
perform configure There may be a mistake :
linux : error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
It indicates that these three libraries need to be installed :
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0.tar.bz2
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-3.1.4.tar.bz2
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.0.3.tar.gz
tar.bz2 Unpack the command tar -jxvf
tar.gz Unpack the command tar -zxvf
./configure
make & make install
perform gmp Of configure There may be a mistake :
error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons)
Explain the lack of m4 This library
wget http://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.bz2
perform ./configure There may be a mistake :
./stdio.h:477:1: error: ‘gets’ undeclared here (not in a function)
_GL_WARN_ON_USE (gets, “gets is a security hole - use fgets instead”);
Get into m4/lib Find one stdio.in.h The problem of , If you can't find it, try it find -name stdio.in.h
Comment out the first line
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
Add the following
#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif
Then compile these libraries all the way
It's time to compile gcc When
configure Wrong again.
I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib.
perform
sudo yum install glibc-devel.i686
sudo yum install libgcc.i686
Oh, finally
perform make
make install Walk up
Oh, I forgot to say , If your machine is multi-core, you can perform parallel compilation make -j8 The following numbers represent the audit
You can watch a movie during this period , Not surprisingly, I've finished reading make We're not done yet .....
I feel that it is not the language itself that persuades people to retreat , indicating contrast linux Environment configuration .
边栏推荐
- ~72 horizontal and vertical alignment of text
- Simply try the new amp model of deepfacelab (deepfake)
- ~85 transition
- Use JQ to realize the reverse selection of all and no selection at all - Feng Hao's blog
- Shell_ 03_ environment variable
- Spark's RDD (elastic distributed data set) returns a large result set
- J'ai traversé le chemin le plus fou, le circuit cérébral d'un programmeur de saut d'octets
- Codeforces Round #771 (Div. 2)
- Fdog series (III): use Tencent cloud SMS interface to send SMS, write database, deploy to server, web finale.
- Business system compatible database oracle/postgresql (opengauss) /mysql Trivia
猜你喜欢
Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)
100张图训练1小时,照片风格随意变,文末有Demo试玩|SIGGRAPH 2021
LeetCode 1557. The minimum number of points that can reach all points
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
视频压缩编码和音频压缩编码基本原理
Usage of insert() in vector
字节跳动海外技术团队再夺冠:高清视频编码已获17项第一
~86m rabbit practice
Audio and video development interview questions
Error occurred during initialization of VM Could not reserve enough space for object heap
随机推荐
亮相Google I/O,字节跳动是这样应用Flutter的
Solve the problem that intel12 generation core CPU single thread only runs on small cores
~76 sprite map
Spark independent cluster dynamic online and offline worker node
Soft music -js find the number of times that character appears in the string - Feng Hao's blog
Record the error reason: terminate called after throwing an instance
~82 style of table
How to generate six digit verification code
DS18B20數字溫度計系統設計
README. txt
ByteDance 2022 school recruitment R & D advance approval publicity meeting, students' top 10 issues
Shell_ 05_ operator
登陆验证koa-passport中间件的简单使用
字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」
Ffmpeg command line use
Cmake error: could not create named generator visual studio 16 2019 solution
Detailed explanation of FLV format
Shell_ 02_ Text three swordsman
100张图训练1小时,照片风格随意变,文末有Demo试玩|SIGGRAPH 2021
LeetCode 1552. Magnetic force between two balls