我试图安装 perl 模块 IO::Tty,IO::Pty,Net::SSH2,Net::SSH::Perl....但我无法安装单个模块。我试图调试,但无法完全修复它。我开始知道编译器有一些问题。因为下面的命令给了我输出表明有问题。
which gcc
output
/usr/bin/which: no gcc in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
whereis gcc
output
gcc:
当我尝试安装模块后检查错误日志时,我收到以下错误:
[root@GTheGandalf ~]# cat /root/.cpanm/work/1439895011.19383/build.log
ERROR: cannot run the configured compiler 'gcc'
(see conf/compilerok.log). Suggestions:
1) The compiler 'gcc' is not in your PATH. Add it
to the PATH and try again. OR
2) The compiler isn't installed on your system. Install it. OR
3) You only have a different compiler installed (e.g. 'gcc').
Either fix the compiler config in the perl Config.pm
or install a perl that was built with the right compiler
(you could build perl yourself with the available compiler).
请帮我修复它,因为我无法执行依赖于上述模块的 perl 脚本。