opsengine / cpulimit

CPU usage limiter for Linux
Other
1.7k stars 270 forks source link

May I ask how to solve this error ? #98

Open yoyosscn opened 3 years ago

yoyosscn commented 3 years ago

[root@ip-172-31-33-94 cpulimit-master]# make cd src && make all make[1]: Entering directory /root/cpulimit-master/src' cc -c list.c -Wall -g -D_GNU_SOURCE make[1]: cc: Command not found make[1]: *** [list.o] Error 127 make[1]: Leaving directory/root/cpulimit-master/src' make: *** [all] Error 2

Sarke commented 3 years ago

You need to install build tools, like make glibc-devel gcc patch etc.

You can also install it using brew, which is easier:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install cpulimit