Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my steps are:
1、 cd DBI-1.609
2、 perl Makefile.PL
3、 make
now,it's comes error like lists:


VB
cc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"1.609\" -DXS_VERSION=\"1.609\" -fPIC "-I/usr/lib/perl/5.8/CORE"  -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter Perl.c
在包含自 DBIXS.h:19 的文件中,
                 从 Perl.xs:6:
/usr/lib/perl/5.8/CORE/perl.h:420:24: 错误: sys/types.h:没有该文件或目录
/usr/lib/perl/5.8/CORE/perl.h:451:19: 错误: ctype.h:没有该文件或目录
/usr/lib/perl/5.8/CORE/perl.h:463:23: 错误: locale.h:没有该文件或目录
/usr/lib/perl/5.8/CORE/perl.h:480:20: 错误: setjmp.h:没有该文件或目录
/usr/lib/perl/5.8/CORE/perl.h:486:26: 错误: sys/param.h:没有该文件或目录
/usr/lib/perl/5.8/CORE/perl.h:491:23: 错误: stdlib.h:没有该文件或目录

………………………………………………………………


what's the matter,how to slove this problem,can you help me ,thank you very much :) !
Posted

1 solution

The simplest way to install Perl modules is to use CPAN:

% perl -MCPAN -eshell
CPAN[1]> install DBI


In your case it looks like you are missing some headers - try installing the kernel-headers RPM (using up2date, yum, apt-get, etc.) before trying to install DBI.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900