我試圖安裝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腳本,對上述模塊有依賴性。
哪個Linux發行版是這樣的?既然你使用'yum',我就假設Fedora或者CentOS/RHEL。 – MC10