我试图安装perl模块IO :: Tty,IO :: Pty,Net :: SSH2,Net :: SSH :: Perl ....但我没有安装一个单一的module.i试图调试,但无法完全修复它。我发现编译器存在一些问题。由于下面的命令给出了指示错误的输出。无法在Linux上安装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:
,当我试图安装装配模块后检查错误日志,我得到下面提到的错误:
[[email protected] ~]# 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脚本,对上述模块有依赖性。
+0
哪个Linux发行版是这样的?既然你使用'yum',我就假设Fedora或者CentOS/RHEL。 –