cpulimit
cpulimit copied to clipboard
May I ask how to solve this error ?
[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
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