首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

linux下安装perl5.8.5的有关问题

2012-02-16 
linux下安装perl5.8.5的问题我在安装perl5.8.5的时候,执行make的时候报了这个错:rm-flibperl.amake:execvp

linux下安装perl5.8.5的问题
我在安装perl5.8.5的时候,执行make的时候
报了这个错:
rm   -f   libperl.a
make:   execvp:   rm:   符号连接的层数过多
make:   ***   [libperl.a]   Error   127


导致安装无法继续进行,请问这个是什么问题啊?应该如何解决呢

[解决办法]
Hi,

I have been trying to get mod_perl 1.26 to build on Cygwin. With no luck.
Has anyone else been successful in this?

Build options for mod_perl:

perl Makefile.PL APACHE_SRC=../apache_1.3.24/src DO_HTTPD=1 USE_APACI=1
EVERYTHING=1

When running "make ", it fails in the apache_1.3.24/src/modules/perl/
directory (here is the output of re-running "make " only in that directory:)


--------------------------
I -I../../os/cygwin -I../../include -DCYGWIN -DMOD_PERL -DUSE_HSREGEX
-DNO_DL_NEEDED -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-I/usr/local/include `../../apaci` -c mod_perl.c
I: not found
make: [mod_perl.o] Error 127 (ignored)
o perlxsi.c -std
o: not found
make: [perlxsi.c] Error 127 (ignored)
I -I../../os/cygwin -I../../include -DCYGWIN -DMOD_PERL -DUSE_HSREGEX
-DNO_DL_NEEDED -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-I/usr/local/include `../../apaci` -c perlxsi.c
I: not found
make: [perlxsi.o] Error 127 (ignored)
I -I../../os/cygwin -I../../include -DCYGWIN -DMOD_PERL -DUSE_HSREGEX
-DNO_DL_NEEDED -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-I/usr/local/include `../../apaci` -c perl_config.c
I: not found
make: [perl_config.o] Error 127 (ignored)
I -I../../os/cygwin -I../../include -DCYGWIN -DMOD_PERL -DUSE_HSREGEX
-DNO_DL_NEEDED -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-I/usr/local/include `../../apaci` -c perl_util.c
I: not found
make: [perl_util.o] Error 127 (ignored)
I -I../../os/cygwin -I../../include -DCYGWIN -DMOD_PERL -DUSE_HSREGEX
-DNO_DL_NEEDED -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-I/usr/local/include `../../apaci` -c perlio.c
I: not found
make: [perlio.o] Error 127 (ignored)
I -I../../os/cygwin -I../../include -DCYGWIN -DMOD_PERL -DUSE_HSREGEX
-DNO_DL_NEEDED -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-I/usr/local/include `../../apaci` -c mod_perl_opmask.c
I: not found
make: [mod_perl_opmask.o] Error 127 (ignored)
rm -f libperl.a
crv libperl.a mod_perl.o perlxsi.o perl_config.o perl_util.o perlio.o
mod_perl_opmask.o
crv: not found
make: *** [libperl.a] Error 127

------------------

It seems weird to me that the Makefile is trying to call "I "... But I don 't
know more than that.

A normal Apache build works fine, so that isn 't the problem here.

Actually, after having explored a little, I found out that the reason for
this is that many make variablesa are undefined: all the PERL_ ones it
seems. Running
PERL_CC=gcc make
actually gets me past the "I: not found " error, but then it complains about
some Perl includes not being found (which is probably related to another
variable missing; however there are so many that I won 't start trying to
add them all by hand). Does anyone know why these aren 't included correctly?

-------------

Here is my version information:
Apache 1.3.24
mod_perl 1.26

perl -V

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=cygwin, osvers=1.3.2(0.3932), archname=cygwin-multi
uname= 'cygwin_nt-4.0 loreley 1.3.2(0.3932) 2001-05-20 23:28 i686 unknown '
config_args= '-de -Dusemultiplicity '


hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=define
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc= 'gcc ', ccflags = '-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-I/usr/local/include ',
optimize= '-O2 ',
cppflags= '-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
-I/usr/local/include '
ccversion= ' ', gccversion= '2.95.3-5 (cygwin special) ', gccosandvers= ' '
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype= 'long ', ivsize=4, nvtype= 'double ', nvsize=8, Off_t= 'off_t ',
lseeksize=4
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld= 'ld2 ', ldflags = ' -s -L/usr/local/lib '
libpth=/usr/local/lib /usr/lib /lib
libs=-lgdbm -lcrypt
perllibs=-lcrypt
libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl5_6_1.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags= ' -s '
cccdlflags= ' ', lddlflags= ' -s -L/usr/local/lib '


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Built under cygwin
Compiled at Aug 22 2001 01:05:05
@INC:
/usr/lib/perl5/5.6.1/cygwin-multi
/usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/cygwin-multi
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl
.


--
Per Einar Ellefsen
per.einar@skynet.be

[解决办法]
要不你手动把libperl.a删掉试试?

热点排行