我正尝试使用以下命令在CentOS 6计算机上安装Apache2 :: AuthCookie:
cpanm Apache2::AuthCookie
但是我收到以下错误:
- >使用Apache2 :: AuthCookie 获取http://www.cpan.org/authors/id/M/MS/MSCHOUT/Apache-AuthCookie-3.22.tar.gz ...确定
配置Apache-AuthCookie-3.22 ......确定
==>找到依赖项:autobox
- >在autobox上工作
获取http://www.cpan.org/authors/id/C/CH/CHOCOLATE/autobox-2.82.tar.gz ...确定
配置autobox-2.82 ......确定
构建和测试autobox-2.82 ......失败
!安装autobox失败了。有关详细信息,请参阅/root/.cpanm/work/1415007741.22940/build.log。使用--force重试强制安装它。
!安装依赖项失败:未安装模块'autobox'
!拯救Apache-AuthCookie-3.22的安装。
任何想法如何解决这个问题?
build.log文件
cpanm (App::cpanminus) 1.7014 on perl 5.010001 built for x86_64-linux-thread-multi
Work directory is /root/.cpanm/work/1415007741.22940
You have make /usr/bin/make
You have /usr/bin/wget
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
Searching Apache2::AuthCookie on cpanmetadb ...
--> Working on Apache2::AuthCookie
Fetching http://www.cpan.org/authors/id/M/MS/MSCHOUT/Apache-AuthCookie-3.22.tar.gz
-> OK
Unpacking Apache-AuthCookie-3.22.tar.gz
Entering Apache-AuthCookie-3.22
Checking configure dependencies from META.yml
Configuring Apache-AuthCookie-3.22
Running Makefile.PL
[ info] generating script t/TEST
Checking if your kit is complete...
Looks good
Warning: prerequisite autobox 1.1 not found.
Generating a Unix-style Makefile
Writing Makefile for Apache::AuthCookie
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0 ... Yes (1.001008)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.00)
Checking if you have Apache::Test 1.35 ... Yes (1.38)
Checking if you have Class::Load 0.03 ... Yes (0.22)
Checking if you have autobox 1.1 ... No
Checking if you have mod_perl2 1.999022 ... Yes (2.000004)
Checking if you have CGI 3.12 ... Yes (4.09)
==> Found dependencies: autobox
Searching autobox on cpanmetadb ...
--> Working on autobox
Fetching http://www.cpan.org/authors/id/C/CH/CHOCOLATE/autobox-2.82.tar.gz
-> OK
Unpacking autobox-2.82.tar.gz
Entering autobox-2.82
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.00)
Configuring autobox-2.82
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for autobox
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Scope::Guard 0.20 ... Yes (0.20)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.00)
Building and testing autobox-2.82
cp lib/autobox.pod blib/lib/autobox.pod
cp lib/autobox/universal.pm blib/lib/autobox/universal.pm
cp lib/autobox.pm blib/lib/autobox.pm
Running Mkbootstrap for autobox ()
chmod 644 "autobox.bs"
"/usr/bin/perl" "/usr/share/perl5/ExtUtils/xsubpp" -typemap "/usr/share/perl5/ExtUtils/typemap" autobox.xs > autobox.xsc && mv autobox.xsc autobox.c
gcc -c -I. -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -Wall -DVERSION=\"2.82\" -DXS_VERSION=\"2.82\" -fPIC "-I/usr/lib64/perl5/CORE" autobox.c
/bin/sh: gcc: command not found
make: *** [autobox.o] Error 127
-> FAIL Installing autobox failed. See /root/.cpanm/work/1415007741.22940/build.log for details. Retry with --force to force install it.
-> FAIL Installing the dependencies failed: Module 'autobox' is not installed
-> FAIL Bailing out the installation for Apache-AuthCookie-3.22.
答案 0 :(得分:1)
查看日志文件后,我发现编译器丢失了。
yum install gcc-c++