2014-11-03 123 views
0

我试图安装的Apache2 :: AuthCookie一个CentOS 6的计算机上,使用以下命令:如何在Centos 6中安装Apache2 :: AuthCookie?

cpanm Apache2::AuthCookie 

,但我得到了以下错误:

--> Working on Apache2::AuthCookie Fetching http://www.cpan.org/authors/id/M/MS/MSCHOUT/Apache-AuthCookie-3.22.tar.gz ... OK

Configuring Apache-AuthCookie-3.22 ... OK

==> Found dependencies: autobox

--> Working on autobox

Fetching http://www.cpan.org/authors/id/C/CH/CHOCOLATE/autobox-2.82.tar.gz ... OK

Configuring autobox-2.82 ... OK

Building and testing autobox-2.82 ... FAIL

! Installing autobox failed. See /root/.cpanm/work/1415007741.22940/build.log for details. Retry with --force to force install it.

! Installing the dependencies failed: Module 'autobox' is not installed

! Bailing out the installation for 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

这将有助于如果你能向我们展示的/root/.cpanm/work/1415007741.22940/build.log – Bifrost 2014-11-03 10:28:17

+0

内容你想手动安装autobox? – ProfGhost 2014-11-03 11:48:17

+0

我试图通过CPAN来做,但没有成功。 – curiusX 2014-11-03 11:51:42

回答

1

日志文件里寻找后,我发现我一个编译器失踪。

yum install gcc-c++