Issue with Redis install “cc: Command not found”

前端 未结 7 2035
眼角桃花
眼角桃花 2021-02-03 22:14

Installing redis is really easy. I have done it on several VM. But on one instance, I am facing the following problem.

[root@server redis-2.4.2]# make
cd src &am         


        
7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-03 22:59

    make[2]: cc: Command not found
    

    This means that c compiler is uninstalled, or that it's not in $PATH.

    Try which cc, this should tell the directory where cc is installed, if it is.

    Otherwise, you can use your distro repository to install it.

    In Ubuntu: sudo aptitude install build-essential.

提交回复
热议问题