Re: Error running make command for DBI1.51

Bill Ward <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <CAKGT8WqZhGDkGBdqyy8mXwTGT+0P-B6D695Np64dDpfMcELxfQ@mail.gmail.com>
Perl 5.8.2 is 10 years old. It's time to upgrade.


On Mon, Aug 19, 2013 at 9:00 PM, pawan bajoria <[email protected]> wrote:

> Hi Martin,
>
> I resolved the first problem by pointing the File::Spec to 0.86 and I am
> using perl 5.8.2 which should work fine with the DBI and DBD package I want
> to install.
> I am stuck at the make command which is throwing the below error:
>
> [DBI-1.51]# make
> gcc -c   -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3   -DVERSION=\"1.51\"
> -DXS_VERSION=\"1.51\" -fpic "-I/opt/Interwoven/TeamSite/iw-perl/lib/CORE"
>  -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment
> -Wno-sign-compare -Wno-cast-qual -DDBI_NO_THREADS Perl.c
> In file included from DBIXS.h:19,
>                  from Perl.xs:6:
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:380:24: error:
> sys/types.h: No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:411:19: error: ctype.h:
> No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:423:23: error: locale.h:
> No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:440:20: error: setjmp.h:
> No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:446:26: error:
> sys/param.h: No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:451:23: error: stdlib.h:
> No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:456:23: error: unistd.h:
> No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:488:23: error: string.h:
> No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:637:27: error:
> netinet/in.h: No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:641:26: error:
> arpa/inet.h: No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:651:25: error:
> sys/stat.h: No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:673:21: error: time.h: No
> such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:680:25: error:
> sys/time.h: No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:687:27: error:
> sys/times.h: No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:694:19: error: errno.h:
> No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:709:25: error:
> sys/socket.h: No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:736:21: error: netdb.h:
> No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:838:24: error:
> sys/ioctl.h: No such file or directory
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:867:23: error: dirent.h:
> No such file or directory
> In file included from
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/syslimits.h:7,
>                  from
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/limits.h:11,
>                  from
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:1196,
>                  from DBIXS.h:19,
>                  from Perl.xs:6:
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/limits.h:122:61: error:
> limits.h: No such file or directory
> In file included from
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:1805,
>                  from DBIXS.h:19,
>                  from Perl.xs:6:
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/handy.h:121:25: error:
> inttypes.h: No such file or directory
> In file included from
> /opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:1969,
>                  from DBIXS.h:19,
>                  from Perl.xs:6:
> .
> .
> .
>
> Thanks,
> Pawan
>
>   ------------------------------
>  *From:* pawan bajoria <[email protected]>
> *To:* Martin J. Evans <[email protected]>
> *Cc:* "[email protected]" <[email protected]>
> *Sent:* Friday, 16 August 2013 3:02 PM
> *Subject:* Re: Error running make command for DBI1.51
>
> Dear Martin,
>
> Thank you for your reply.
>
> Let me work on the first two comments and get back to you.
>
> Regards,
> Pawan
>  ------------------------------
>  *From:* Martin J. Evans <[email protected]>
> *To:* pawan bajoria <[email protected]>
> *Cc:* "[email protected]" <[email protected]>
> *Sent:* Friday, 16 August 2013 2:21 PM
> *Subject:* Re: Error running make command for DBI1.51
>
> On 14/08/2013 13:25, pawan bajoria wrote:
> > Hi,
> >
> > I am receiving the error while executing the make command for DBI 1.51.
> > I was able to execute the first command of perl Makefile.PL and create a
> > file Makefile.
> > Please help me resolve this issue as I am stuck here.
> >
> > I want to install the DBD::Oracle finally which needs DBI1.51.
> >
> > RHEL 64-bit
> > DBI1.51
> > DBD1.64 Oracle
> >
> > Thanks,
> > Pawan
>
> "Warning: prerequisite File::Spec 1 not found. We have 0.86."
>
> This is your first problem which you chose to ignore. Install a newer
> File::Spec.
>
> "I see you're using perl 5.008002 on i686-linux-multi, okay."
>
> This is very old.
>
> "/opt/Interwoven/TeamSite/iw-perl/lib/CORE/perl.h:380:24: error:
> sys/types.h: No such file or directory"
>
> This is a serious problem - looks like whoever installed this Perl did
> not run the script to generate header files.
>
> Martin
> --
> Martin J. Evans
> Wetherby, UK
>
>
>
>
>


-- 
Check out my LEGO blog at brickpile.com <http://www.brickpile.com/>
Follow/friend me: Facebook <http://facebook.com/billward> •
Flickr<http://flickr.com/photos/billward/>•
Twitter <http://twitter.com/williamward> •
LinkedIn<http://www.linkedin.com/pub/william-ward/63/393/985/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.