Makefile中有-static选项,静态链接时没有找到libc.a
解决:
(1)安装glibc-static.xxx.rpm,如通过rpm -qa glibc-static,得到结果:glibc-static-2.17-222.el7.x86_64,则yum -y install glibc-static-2.17-222.el7.x86_64
(2)yum install glibc-static
bash: make: command not found
解决:yum -y install gcc automake autoconf libtool make
安装g++编译cpp:
yum -y install gcc-c++