06-在Linux系统中,安装stress工具报错了

一、安装stress工具

(1)上传压缩包
[root@localhost data]# rz
(2)解压
[root@localhost data]# tar -zxvf stress-1.0.4.tar.gz
(3)进入stress-1.0.4目录
[root@localhost data]# cd stress-1.0.4/
(4)执行安装命令
[root@localhost stress-1.0.4]# ./configure

报错如下信息:

[root@localhost stress-1.0.4]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/data/stress-1.0.4':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@localhost stress-1.0.4]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/data/stress-1.0.4':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

(5)解决方法

安装GCC软件套件

[root@localhost stress-1.0.4]# yum install gcc

(6)重新执行安装命令

[root@localhost stress-1.0.4]# ./configure

成功了

(7)编译安装

[root@localhost stress-1.0.4]# make && make install 

stress工具安装完成

 

posted @ 2020-09-07 15:32  漫步者1号  阅读(507)  评论(0编辑  收藏  举报