我试图安装perl模块IO :: Tty,IO :: Pty,Net :: SSH2,Net :: SSH :: Perl ....但是我无法安装单个module.i试图调试,但是无法完全修复它。我开始知道编译器存在一些问题。以下命令给了我输出,表明存在错误。
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脚本。
答案 0 :(得分:4)
答案 1 :(得分:3)
您提到的至少一些模块是用C实现的。您需要C编译器用于安装perl
的内容,即gcc
。使用系统的包管理器(apt-get
,yum
等)进行安装。