尝试使用此命令安装perl的Encode :: Detect模块时出现以下错误
perl -MCPAN -e "install Encode::Detect"
错误信息
cc: error trying to exec 'cc1plus': execvp: No such file or directory
解决方法
我搜索了一些东西,我发现即使我有以下c compliers(gcc,c,c)我也没有安装.
为了解决这个问题,我在我的ubuntu机器上安装了g complier
apt-get install g++
在RedHat和CentOS上它将是
yum install g++