[英]Error When Installing DBI Perl Module
Here is my output, any suggestions? 这是我的输出,有什么建议吗? I've tried installing by perl -MCPAN -e shell and then force install DBI.
我尝试通过perl -MCPAN -e shell安装,然后强制安装DBI。
cpan[10]> force install DBI
Running install for module 'DBI'
Running make for T/TI/TIMB/DBI-1.636.tar.gz
Has already been unwrapped into directory /root/.cpan/build/DBI-1.636-sGWX9V
CPAN.pm: Building T/TI/TIMB/DBI-1.636.tar.gz
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"1.636\" -DXS_VERSION=\"1.636\" -fPIC "-I/usr/lib64/perl5/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter Perl.c
/bin/sh: gcc: command not found
make: *** [Perl.o] Error 127
TIMB/DBI-1.636.tar.gz
/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
TIMB/DBI-1.636.tar.gz : make NO
The error message: 错误信息:
/bin/sh: gcc: command not found
so you need to install gcc 所以你需要安装gcc
As you have already seen, installing gcc
will fix the problem. 如您所见,安装
gcc
将解决此问题。
But I wonder why you don't use the pre-packaged version. 但我想知道为什么您不使用预打包的版本。
$ sudo yum install perl-DBI
Also, do you realise that Fedora 20 is now unsupported? 另外,您是否知道现在不支持Fedora 20? I strongly suggest that you upgrade to a supported version (Fedora 24 or 25).
我强烈建议您升级到受支持的版本(Fedora 24或25)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.