make -C /lib/modules/uname -r/build M=pwd modules CC=/usr/bin/gcc
./scripts/gcc-version.sh: line 25: /usr/bin/gcc: No such file or directory
./scripts/gcc-version.sh: line 26: /usr/bin/gcc: No such file or directory
make[1]: /usr/bin/gcc: Command not found
make[1]: Entering directory /usr/src/kernels/4.12.10-1.el7.elrepo.x86_64' make[1]: /usr/bin/gcc: Command not found make[1]: /usr/bin/gcc: Command not found make[1]: /usr/bin/gcc: Command not found make[1]: /usr/bin/gcc: Command not found CC [M] /home/tcp_nanqinlang/tcp_nanqinlang.o /bin/sh: /usr/bin/gcc: No such file or directory make[2]: *** [/home/tcp_nanqinlang/tcp_nanqinlang.o] Error 1 make[1]: *** [_module_/home/tcp_nanqinlang] Error 2 make[1]: Leaving directory/usr/src/kernels/4.12.10-1.el7.elrepo.x86_64'
make: *** [all] Error 2
[Error] load mod failed, please check!
[root@198 ~]# uname -r
4.12.10-1.el7.elrepo.x86_64
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.64.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 391 [text/plain] Saving to: 'Makefile'
100%[==========================================================>] 391 --.-K/s in 0s
2020-01-17 05:15:39 (21.0 MB/s) - 'Makefile' saved [391/391]
make -C /lib/modules/
uname -r
/build M=pwd
modules CC=/usr/bin/gcc ./scripts/gcc-version.sh: line 25: /usr/bin/gcc: No such file or directory ./scripts/gcc-version.sh: line 26: /usr/bin/gcc: No such file or directory make[1]: /usr/bin/gcc: Command not found make[1]: Entering directory/usr/src/kernels/4.12.10-1.el7.elrepo.x86_64' make[1]: /usr/bin/gcc: Command not found make[1]: /usr/bin/gcc: Command not found make[1]: /usr/bin/gcc: Command not found make[1]: /usr/bin/gcc: Command not found CC [M] /home/tcp_nanqinlang/tcp_nanqinlang.o /bin/sh: /usr/bin/gcc: No such file or directory make[2]: *** [/home/tcp_nanqinlang/tcp_nanqinlang.o] Error 1 make[1]: *** [_module_/home/tcp_nanqinlang] Error 2 make[1]: Leaving directory
/usr/src/kernels/4.12.10-1.el7.elrepo.x86_64' make: *** [all] Error 2 [Error] load mod failed, please check! [root@198 ~]# uname -r 4.12.10-1.el7.elrepo.x86_64