一、编写helloworld.c 源文件
mkdir hello-world
cd hello-world/
vim hellow.c
#写入以下源代码
#include<stdio.h>
int main()
{
printf (" py helloWorld,Best wish!\n");
}
二、利用gcc编译helloworld.c 源文件
1.安装gcc
yum install -y gcc
yum install -y glibc-static
2.静态编译hellow.c,输出文件hello-C
gcc -static hellow.c