免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2612 | 回复: 3
打印 上一主题 下一主题

升级Perl遇到的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-02-28 11:27 |只看该作者 |倒序浏览
我使用Linux虚拟机,默认安装的Perl是5.8,我想升级到5.10.1。
wget http://www.cpan.org/src/5.0/perl-5.10.1.tar.gz
tar -xzf perl-5.10.1.tar.gz
cd perl-5.10.1
./Configure -des -Dprefix=/usr/local/perl

运行结果:
[root@localhost perl-5.10.1]# ./Configure -des -Dprefix=/usr/local/perl
First let's make sure your kit is complete.  Checking...
Would you like to see the instructions? [n]
Locating common programs...
Checking compatibility between /bin/echo and builtin echo (if any)...
Symbolic links are NOT supported.
No symbolic links, so not testing for their testing...
Good, your tr supports [:lower:] and [:upper:] to convert case.
Using [:upper:] and [:lower:] to convert case.
3b1           dos_djgpp       irix_6_0        next_3        solaris_2
aix_3         dragonfly       irix_6_1        next_4        stellar
aix_4         dynixptx        irix_6          nonstopux     sunos_4_0
aix           dynix           isc_2           openbsd       sunos_4_1
altos486      epix            isc             opus          super-ux
amigaos       esix4           linux           os2           svr4
apollo        fps             lynxos          os390         svr5
atheos        freebsd         machten_2       os400         ti1500
aux_3         genix           machten         posix-bc      titanos
beos          gnukfreebsd     midnightbsd     powerux       ultrix_4
bsdos         gnuknetbsd      mint            qnx           umips
catamount     gnu             mips            rhapsody      unicosmk
convexos      greenhills      mirbsd          riscos        unicos
cxux          haiku           mpc             sco_2_3_0     unisysdynix
cygwin        hpux            mpeix           sco_2_3_1     utekv
darwin        i386            ncr_tower       sco_2_3_2     uts
dcosx         interix         netbsd          sco_2_3_3     uwin
dec_osf       irix_4          newsos4         sco_2_3_4     vmesa
dgux          irix_5          next_3_0        sco           vos
Which of these apply, if any? [linux]

You appear to have ELF support.  I'll try to use it for dynamic loading.
If dynamic loading doesn't work, read hints/linux.sh for further information.
Operating system name? [linux]
Operating system version? [2.4.20-8]
Installation prefix to use? (~name ok) [/usr/local/perl]
Directory /usr/local/perl doesn't exist.  Use that name anyway? [y]
AFS does not seem to be running...
What installation prefix should I use for installing files? (~name ok)
[/usr/local/perl]
Directory /usr/local/perl doesn't exist.  Use that name anyway? [y]
Build Perl for SOCKS? [n]
Use the PerlIO abstraction layer? [y]
Getting the current patchlevel...
Build a threading Perl? [n]
Build Perl for multiplicity? [n]
Use which C compiler? [cc]
Checking for GNU cc in disguise and/or its version number...
Now, how can we feed standard input to your C preprocessor...
chmod: changing permissions of `cppstdin' (requested: 0755, actual: 0777): Operation not permitted
Directories to use for library searches?
[/usr/local/lib /lib /usr/lib /usr/lib64]
What is the file extension used for shared libraries? [so]
Try to use long doubles if available? [n]
Checking for optional libraries...
What libraries to use? [-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc]
What optimizer/debugger flag should be used? [-O2]
Any additional cc flags? [-fno-strict-aliasing -pipe -I/usr/local/include]
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)? [ -L/usr/local/lib]
Checking your choice of C compiler and flags for coherency...
Computing filename position in cpp output for #include directives...
<stdlib.h> found.
Checking to see how big your integers are...
Checking to see if you have long long...
Checking to see how big your long longs are...
<inttypes.h> found.
Checking to see if you have int64_t...
Checking which 64-bit integer type we could use...
We could use 'long long' for 64-bit integers.
Try to use 64-bit integers, if available? [n]
Try to use maximal 64-bit support, if available? [n]
Checking to see how big your double precision numbers are...
Checking to see if you have long double...
Checking to see how big your long doubles are...
What is your architecture name [i686-linux]
Perlio selected.
Pathname where the public executables will reside? (~name ok)
[/usr/local/perl/bin]
Directory /usr/local/perl/bin doesn't exist.  Use that name anyway? [y]
Use relocatable @INC? [n]
Pathname where the private library files will reside? (~name ok)
[/usr/local/perl/lib/5.10.1]
Where do you want to put the public architecture-dependent libraries? (~name ok)[/usr/local/perl/lib/5.10.1/i686-linux]
chmod: changing permissions of `reflect' (requested: 4777, actual: 0777): Operation not permitted
Other username to test security of setuid scripts with? [none]
Well, the recommended value is *not* secure.
Does your kernel have *secure* setuid scripts? [n]
Do you want to do setuid/setgid emulation? [n]
Installation prefix to use for add-on modules and utilities? (~name ok)
[/usr/local/perl]
Pathname for the site-specific library files? (~name ok)
[/usr/local/perl/lib/site_perl/5.10.1]
List of earlier versions to include in @INC? [none]
<malloc/malloc.h> NOT found.
<malloc.h> found.
Checking to see how well your C compiler groks the void type...
Good.  It appears to support void to the level perl5 wants.
Checking to see how big your pointers are...
Do you wish to wrap malloc calls to protect against potential overflows? [y]
Do you wish to attempt to use the malloc that comes with perl5? [n]
Your system wants malloc to return 'void *', it would seem.
Your system uses void free(), it would seem.
Pathname for the site-specific architecture-dependent library files? (~name ok)
[/usr/local/perl/lib/site_perl/5.10.1/i686-linux]
Do you want to configure vendor-specific add-on directories? [n]
Colon-separated list of additional directories for perl to search? [none]
Checking out function prototypes...
Support DTrace if available? [n]
Install any extra modules (y or n)? [n]
Directory for the main Perl5 html pages? (~name ok) [none]
Directory for the Perl5 module html pages? (~name ok) [none]
Do you want to install perl as /usr/bin/perl? [n]
Checking for GNU C Library...
nm probably won't work on the GNU C Library.
Shall I use /usr/bin/nm to extract C symbols from the libraries? [n]
<dld.h> NOT found.
Checking for C++...
dlopen() found.
<unistd.h> found.
Do you wish to use dynamic loading? [y]
Source file to use for dynamic loading [ext/DynaLoader/dl_dlopen.xs]
Any special flags to pass to cc -c to compile shared library modules?
[-fPIC]
What command should be used to create dynamic libraries? [cc]
Any special flags to pass to cc to create a dynamically loaded library?
[-shared -O2 -L/usr/local/lib]
Any special flags to pass to cc to use dynamic linking? [-Wl,-E]
Build a shared libperl.so (y/n) [n]
System manual is in /usr/share/man/man1.
Where do the main Perl5 manual pages (source) go? (~name ok)
[/usr/local/perl/man/man1]
What suffix should be used for the main Perl5 man pages? [1]
You can have filenames longer than 14 characters.
Where do the perl5 library man pages (source) go? (~name ok)
[/usr/local/perl/man/man3]
What suffix should be used for the perl5 library man pages? [3]
Are you getting the hosts file via yellow pages? [n]
Figuring out host name...
Your host name appears to be "localhost.localdomain". Right? [y]
What is your domain name? [.localdomain]
What is your e-mail address? [root@localhost.localdomain]
Perl administrator e-mail address [root@localhost.localdomain]
Do you want to install only the version-specific parts of perl? [n]
What shall I put after the #! to start up perl ("none" to not use #!)?
[/usr/local/perl/bin/perl]
Where do you keep publicly executable scripts? (~name ok)
[/usr/local/perl/bin]
Directory /usr/local/perl/bin doesn't exist.  Use that name anyway? [y]
Pathname where the add-on public executables should be installed? (~name ok)
[/usr/local/perl/bin]
Directory /usr/local/perl/bin doesn't exist.  Use that name anyway? [y]
Pathname where the site-specific html pages should be installed? (~name ok)
[none]
Pathname where the site-specific library html pages should be installed? (~name
ok)
[none]
Pathname where the site-specific manual pages should be installed? (~name ok)
[/usr/local/perl/man/man1]
Pathname where the site-specific library manual pages should be installed? (~name ok)
[/usr/local/perl/man/man3]
Pathname where add-on public executable scripts should be installed? (~name ok)
[/usr/local/perl/bin]
Use the "fast stdio" if available? [n]
off_t found.
Checking to see how big your file offsets are...
fpos_t found.
Checking the size of fpos_t...
Try to understand large files, if available? [y]
Rechecking to see how big your file offsets are...
Rechecking the size of fpos_t... 16 bytes.
Using <string.h> instead of <strings.h>.
qgcvt() found.
Checking how to print long doubles...
gconvert NOT found.
gcvt() found.
I'll use gcvt to convert floats into a string.
fwalk() NOT found.
access() found.
<sys/file.h> defines the *_OK access constants.
accessx() NOT found.
aintl() NOT found.
alarm() found.
ctime64() NOT found.
localtime64() NOT found.
gmtime64() NOT found.
mktime64() NOT found.
difftime64() NOT found.
asctime64() NOT found.
<pthread.h> found.
<sys/types.h> found.
<sys/select.h> found.
Testing to see if we should include <time.h>, <sys/time.h> or both.
We'll include <time.h>.
We'll include <sys/time.h>.
Checking to see if your struct tm has tm_zone field...
Checking to see if your struct tm has tm_gmtoff field...
asctime_r() found.
atolf() NOT found.
atoll() found.
Checking whether your compiler can handle __attribute__((format)) ...
Checking whether your compiler allows __printf__ format to be null ...
Checking whether your compiler can handle __attribute__((malloc)) ...
Checking whether your compiler can handle __attribute__((nonnull(1))) ...
Checking whether your compiler can handle __attribute__((noreturn)) ...
Checking whether your compiler can handle __attribute__((pure)) ...
Checking whether your compiler can handle __attribute__((unused)) ...
Checking whether your compiler can handle __attribute__((deprecated)) ...
Checking whether your compiler can handle __attribute__((warn_unused_result)) ...
bcmp() found.
bcopy() found.
getpgrp() found.
You have to use getpgrp() instead of getpgrp(pid).
setpgrp() found.
You have to use setpgrp() instead of setpgrp(pid,pgrp).
Checking whether your compiler can handle __builtin_choose_expr ...
Checking whether your compiler can handle __builtin_expect ...
bzero() found.
<stdarg.h> found.
<varargs.h> found.
We'll include <stdarg.h> to get va_dcl definition.
You have <stdarg.h> and <stdlib.h>, so checking for C99 variadic macros.
You have C99 variadic macros.
You have void (*signal())().
Checking whether your C compiler can cast large floats to int32.
Checking whether your C compiler can cast negative float to unsigned.
vprintf() found.
Your vsprintf() returns (int).
chown() found.
chroot() found.
chsize() NOT found.
class() NOT found.
clearenv() found.
Hmm... Looks like you have Berkeley networking support.
socketpair() found.
Checking the availability of certain socket constants...
<sys/uio.h> found.
Checking to see if your system supports struct cmsghdr...
Checking to see if your C compiler knows about "const"...
copysignl() found.
crypt() found.
<crypt.h> found.
crypt_r() found.
ctermid() found.
ctermid_r() NOT found.
ctime_r() found.
cuserid() found.
<limits.h> found.
<float.h> found.
DBL_DIG found.
dbmclose() found.
<dbm.h> NOT found.
<rpcsvc/dbm.h> NOT found.
difftime() found.
<dirent.h> found.
Your directory entries are struct dirent.
Your directory entry does not know about the d_namlen field.
Checking to see if DIR has a dd_fd member variable
<sys/dir.h> found.
<sys/ndir.h> NOT found.
dirfd() found.
dlerror() found.
<dlfcn.h> found.
What is the extension of dynamically loaded modules [so]
Checking whether your dlsym() needs a leading underscore ...
dlsym doesn't need a leading underscore.
drand48_r() found.
dup2() found.
eaccess() NOT found.
endgrent() found.
<grp.h> found.
endgrent_r() NOT found.
endhostent() found.
<netdb.h> found.
endhostent_r() NOT found.
endnetent() found.
endnetent_r() NOT found.
endprotoent() found.
endprotoent_r() NOT found.
endpwent() found.
<pwd.h> found.
endpwent_r() NOT found.
endservent() found.
endservent_r() NOT found.
<sys/file.h> defines the O_* constants...
and you have the 3 argument form of open().
<sys/file.h> found.
We'll be including <sys/file.h>.
<fcntl.h> found.
We don't need to include <fcntl.h> if we include <sys/file.h>.
fork() found.
pipe() found.
Figuring out the flag used by open() for non-blocking I/O...
Let's see what value errno gets from read() on a O_NONBLOCK file...
Checking how std your stdio is...
fchdir() found.
fchmod() found.
fchown() found.
fcntl() found.
Well, your system has some sort of fd_set available...
and you have the normal fd_set macros.
fgetpos() found.
finite() found.
finitel() found.
flock() found.
fp_class() NOT found.
pathconf() found.
fpathconf() found.
fpclass() NOT found.
fpclassify() NOT found.
fpclassl() NOT found.
Checking to see if you have fpos64_t...
frexpl() found.
<sys/param.h> found.
<sys/mount.h> found.
Checking to see if your system supports struct fs_data...
fseeko() found.
fsetpos() found.
fstatfs() found.
statvfs() found.
fstatvfs() found.
fsync() found.
ftello() found.
Checking if you have a working futimes()
No, you have futimes, but it isn't working (3 (probably harmless)
<ndbm.h> NOT found.
<gdbm/ndbm.h> found.
<gdbm-ndbm.h> NOT found.
dbm_open() found.
Checking if your <gdbm/ndbm.h> uses prototypes...
getaddrinfo() found.
getcwd() found.
getespwnam() NOT found.
getfsstat() NOT found.
getgrent() found.
getgrent_r() found.
getgrgid_r() found.
getgrnam_r() found.
gethostbyaddr() found.
gethostbyname() found.
gethostent() found.
gethostname() found.
uname() found.
Shall I ignore gethostname() from now on? [n]
gethostbyaddr_r() found.
gethostbyname_r() found.
gethostent_r() found.
getitimer() found.
getlogin() found.
getlogin_r() found.
getmnt() NOT found.
getmntent() found.
getnameinfo() found.
getnetbyaddr() found.
getnetbyname() found.
getnetent() found.
getnetbyaddr_r() found.
getnetbyname_r() found.
getnetent_r() found.
getpagesize() found.
getprotobyname() found.
getprotobynumber() found.
getprotoent() found.
getpgid() found.
getpgrp2() NOT found.
getppid() found.
getpriority() found.
getprotobyname_r() found.
getprotobynumber_r() found.
getprotoent_r() found.
getprpwnam() NOT found.
getpwent() found.
getpwent_r() found.
getpwnam_r() found.
getpwuid_r() found.
getservbyname() found.
getservbyport() found.
getservent() found.
getservbyname_r() found.
getservbyport_r() found.
getservent_r() found.
getspnam() found.
<shadow.h> found.
getspnam_r() found.
gettimeofday() found.
gmtime_r() found.
hasmntopt() found.
<netinet/in.h> found.
<arpa/inet.h> found.
htonl() found.
ilogbl() found.
strchr() found.
inet_aton() found.
inet_ntop() found.
inet_pton() found.
isascii() found.
isfinite() NOT found.
isinf() found.
isnan() found.
isnanl() found.
killpg() found.
lchown() found.
LDBL_DIG found.
<math.h> found.
Checking to see if your libm supports _LIB_VERSION...
Yes, it does (2)
link() found.
localtime_r() found.
localeconv() found.
lockf() found.
lstat() found.
madvise() found.
malloc_size() NOT found.
malloc_good_size() NOT found.
mblen() found.
mbstowcs() found.
mbtowc() found.
memchr() found.
memcmp() found.
memcpy() found.
memmove() found.
memset() found.
mkdir() found.
mkdtemp() found.
mkfifo() found.
mkstemp() found.
mkstemps() NOT found.
mktime() found.
<sys/mman.h> found.
mmap() found.
and it returns (void *).
sqrtl() found.
scalbnl() found.
modfl() found.
Your modfl() seems okay for large values.
mprotect() found.
msgctl() found.
msgget() found.
msgsnd() found.
msgrcv() found.
You have the full msg*(2) library.
Checking to see if your system supports struct msghdr...
msync() found.
munmap() found.
nice() found.
<langinfo.h> found.
nl_langinfo() found.
Checking to see if your C compiler knows about "volatile"...
Choosing the C types to be used for Perl's internal types...
Checking how many bits of your UVs your NVs can preserve...
Checking to find the largest integer value your NVs can hold...
The largest integer your NVs can preserve is equal to 256.0*256.0*256.0*256.0*256.0*256.0*2.0*2.0*2.0*2.0*2.0
Checking whether NV 0.0 is all bits zero in memory...
0.0 is represented as all bits zero in memory
Checking to see if you have off64_t...
pause() found.
poll() found.
readlink() found.
到这里后就卡住没反应了,换了5.12,5.14版本都是这样,怎么解决呢?请高手赐教,谢谢。

论坛徽章:
0
2 [报告]
发表于 2012-02-29 13:57 |只看该作者
有知道的吗?

论坛徽章:
0
3 [报告]
发表于 2012-02-29 16:58 |只看该作者
你怎么知道是卡住了呢?多等一会儿,这是在configure,虚拟机没死掉的话,又没有报错,一般没问题啊。

论坛徽章:
0
4 [报告]
发表于 2012-02-29 17:43 |只看该作者
过了一夜都不动,没反应了,也没有报错。虚拟机没死,可正常使用。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP