Loading ...
Sorry, an error occurred while loading the content.

[PBML] Re: DBI and DBD installation

Expand Messages
  • Manolo.Marzan@icl.com
    Hi, I ve edited the Makefile.PL and added the $dir= DBI directory and also push(@INC, $dir) but it didn t work... ... From: Ahrendt, Robert
    Message 1 of 8 , Dec 2, 1999
    • 0 Attachment
      Hi,

      I've edited the Makefile.PL and added the $dir="DBI directory" and
      also push(@INC, $dir) but it didn't work...

      -----Original Message-----
      From: Ahrendt, Robert [mailto:RAHRENDT@...]
      Sent: 02 December 1999 17:26
      To: 'perl-beginner@egroups.com'
      Subject: [PBML] Re: DBI and DBD installation


      Try this , Tell me if it works.
      -Robert
      #! your path to perl
      #change $dir to reflect the pwd where you put DBI
      $dir="/usr/local/bin/whatever/";
      push(@INC,$dir);

      > ----------
      > From: Manolo.Marzan@...[SMTP:Manolo.Marzan@...]
      > Reply To: perl-beginner@egroups.com
      > Sent: Thursday, December 02, 1999 12:05 PM
      > To: perl-beginner@egroups.com
      > Subject: [PBML] Re: DBI and DBD installation
      >
      > How can I add directory on @INC?
      >
      > -----Original Message-----
      > From: Ahrendt, Robert [mailto:RAHRENDT@...]
      > Sent: 02 December 1999 16:53
      > To: 'perl-beginner@egroups.com'
      > Subject: [PBML] Re: DBI and DBD installation
      >
      >
      > I meant DBI not DBD
      > Sorry
      >
      > > ----------
      > > From: Ahrendt, Robert[SMTP:RAHRENDT@...]
      > > Reply To: perl-beginner@egroups.com
      > > Sent: Thursday, December 02, 1999 11:52 AM
      > > To: 'perl-beginner@egroups.com'
      > > Subject: [PBML] Re: DBI and DBD installation
      > >
      > > It is saying that the computer compiler looked in the following
      > > directories
      > > and did not find a directory for DBD.
      > > /usr/local/lib/perl5/sun4-solaris/5.00404
      > > /usr/local/lib/perl5
      > > /usr/local/lib/perl5/site_perl/sun4-solaris
      > > /usr/local/lib/perl5/site_perl
      > > You can either change your search path or move your DBI directory
      > > Good Luck
      > > -Robert
      > >
      > >
      > > > ----------
      > > > From: Manolo.Marzan@...[SMTP:Manolo.Marzan@...]
      > > > Reply To: perl-beginner@egroups.com
      > > > Sent: Thursday, December 02, 1999 11:18 AM
      > > > To: perl-beginner@egroups.com
      > > > Subject: [PBML] DBI and DBD installation
      > > >
      > > > Hi All,
      > > >
      > > > I've already downloaded the DBI-1.13 and DBD-Informix-0.60 but I
      > > > don't know how to install them...
      > > >
      > > > I tried the DBI first on my own directory and it created a directory
      > > > called DBI-1.13. Next, I tried perl Makefile.PL then after that make
      > > just
      > > > like what README says.
      > > > I did the same for DBD but when I tried perl Makefile.PL. I'm
      > > > getting an error like this...
      > > >
      > > > {25}viking:manolom :~/dbi/DBD-Informix-0.60>perl Makefile.PL
      > > > Can't locate loadable object for module DBI in @INC (@INC contains:
      > > > /usr/local/lib/perl5/sun4-solaris/5.00404 /usr/local/lib/perl5
      > > > /usr/local/lib/perl5/site_perl/sun4-solaris
      > > /usr/local/lib/perl5/site_perl
      > > > .) at DBI.pm line 0
      > > > BEGIN failed--compilation aborted at DBI.pm line 158.
      > > > BEGIN failed--compilation aborted at Makefile.PL line 20
      > > >
      > > > I don't really know how to install the product. Is there someone who
      > > > can help me with this? Can you give me a step by step procedure how am
      > I
      > > > going install DBI and DBD?
      > > >
      > > > Thanks in advance....
      > > >
      > > >
      > > >
      > > >
      > > >
      > > >
      > ------------------------------------------------------------------------
      > > > eGroups.com Home: http://www.egroups.com/group/perl-beginner/
      > > > http://www.egroups.com - Simplifying group communications
      > > >
      > > >
      > >
      > > ------------------------------------------------------------------------
      > > -- Check out your group's private Chat room
      > > -- http://www.egroups.com/ChatPage?listName=perl-beginner&m=1
      > >
      > >
      >
      > ------------------------------------------------------------------------
      > -- Easily schedule meetings and events using the group calendar!
      > -- http://www.egroups.com/cal?listname=perl-beginner&m=1
      >
      >
      > ------------------------------------------------------------------------
      > -- 20 megs of disk space in your group's Document Vault
      > -- http://www.egroups.com/docvault/perl-beginner/?m=1
      >
      >

      ------------------------------------------------------------------------
      -- Talk to your group with your own voice!
      -- http://www.egroups.com/VoiceChatPage?listName=perl-beginner&m=1
    • Ahrendt, Robert
      Hmm maybe I read this wrong did DBI successfully install into a directory
      Message 2 of 8 , Dec 2, 1999
      • 0 Attachment
        Hmm maybe I read this wrong did DBI successfully install into a directory

        > ----------
        > From: Manolo.Marzan@...[SMTP:Manolo.Marzan@...]
        > Reply To: perl-beginner@egroups.com
        > Sent: Thursday, December 02, 1999 12:32 PM
        > To: perl-beginner@egroups.com
        > Subject: [PBML] Re: DBI and DBD installation
        >
        > Hi,
        >
        > I've edited the Makefile.PL and added the $dir="DBI directory" and
        > also push(@INC, $dir) but it didn't work...
        >
        > -----Original Message-----
        > From: Ahrendt, Robert [mailto:RAHRENDT@...]
        > Sent: 02 December 1999 17:26
        > To: 'perl-beginner@egroups.com'
        > Subject: [PBML] Re: DBI and DBD installation
        >
        >
        > Try this , Tell me if it works.
        > -Robert
        > #! your path to perl
        > #change $dir to reflect the pwd where you put DBI
        > $dir="/usr/local/bin/whatever/";
        > push(@INC,$dir);
        >
        > > ----------
        > > From: Manolo.Marzan@...[SMTP:Manolo.Marzan@...]
        > > Reply To: perl-beginner@egroups.com
        > > Sent: Thursday, December 02, 1999 12:05 PM
        > > To: perl-beginner@egroups.com
        > > Subject: [PBML] Re: DBI and DBD installation
        > >
        > > How can I add directory on @INC?
        > >
        > > -----Original Message-----
        > > From: Ahrendt, Robert [mailto:RAHRENDT@...]
        > > Sent: 02 December 1999 16:53
        > > To: 'perl-beginner@egroups.com'
        > > Subject: [PBML] Re: DBI and DBD installation
        > >
        > >
        > > I meant DBI not DBD
        > > Sorry
        > >
        > > > ----------
        > > > From: Ahrendt, Robert[SMTP:RAHRENDT@...]
        > > > Reply To: perl-beginner@egroups.com
        > > > Sent: Thursday, December 02, 1999 11:52 AM
        > > > To: 'perl-beginner@egroups.com'
        > > > Subject: [PBML] Re: DBI and DBD installation
        > > >
        > > > It is saying that the computer compiler looked in the following
        > > > directories
        > > > and did not find a directory for DBD.
        > > > /usr/local/lib/perl5/sun4-solaris/5.00404
        > > > /usr/local/lib/perl5
        > > > /usr/local/lib/perl5/site_perl/sun4-solaris
        > > > /usr/local/lib/perl5/site_perl
        > > > You can either change your search path or move your DBI directory
        > > > Good Luck
        > > > -Robert
        > > >
        > > >
        > > > > ----------
        > > > > From: Manolo.Marzan@...[SMTP:Manolo.Marzan@...]
        > > > > Reply To: perl-beginner@egroups.com
        > > > > Sent: Thursday, December 02, 1999 11:18 AM
        > > > > To: perl-beginner@egroups.com
        > > > > Subject: [PBML] DBI and DBD installation
        > > > >
        > > > > Hi All,
        > > > >
        > > > > I've already downloaded the DBI-1.13 and DBD-Informix-0.60
        > but I
        > > > > don't know how to install them...
        > > > >
        > > > > I tried the DBI first on my own directory and it created a
        > directory
        > > > > called DBI-1.13. Next, I tried perl Makefile.PL then after that make
        > > > just
        > > > > like what README says.
        > > > > I did the same for DBD but when I tried perl Makefile.PL.
        > I'm
        > > > > getting an error like this...
        > > > >
        > > > > {25}viking:manolom :~/dbi/DBD-Informix-0.60>perl Makefile.PL
        > > > > Can't locate loadable object for module DBI in @INC (@INC contains:
        > > > > /usr/local/lib/perl5/sun4-solaris/5.00404 /usr/local/lib/perl5
        > > > > /usr/local/lib/perl5/site_perl/sun4-solaris
        > > > /usr/local/lib/perl5/site_perl
        > > > > .) at DBI.pm line 0
        > > > > BEGIN failed--compilation aborted at DBI.pm line 158.
        > > > > BEGIN failed--compilation aborted at Makefile.PL line 20
        > > > >
        > > > > I don't really know how to install the product. Is there
        > someone who
        > > > > can help me with this? Can you give me a step by step procedure how
        > am
        > > I
        > > > > going install DBI and DBD?
        > > > >
        > > > > Thanks in advance....
        > > > >
        > > > >
        > > > >
        > > > >
        > > > >
        > > > >
        > > ------------------------------------------------------------------------
        > > > > eGroups.com Home: http://www.egroups.com/group/perl-beginner/
        > > > > http://www.egroups.com - Simplifying group communications
        > > > >
        > > > >
        > > >
        > > >
        > ------------------------------------------------------------------------
        > > > -- Check out your group's private Chat room
        > > > -- http://www.egroups.com/ChatPage?listName=perl-beginner&m=1
        > > >
        > > >
        > >
        > > ------------------------------------------------------------------------
        > > -- Easily schedule meetings and events using the group calendar!
        > > -- http://www.egroups.com/cal?listname=perl-beginner&m=1
        > >
        > >
        > > ------------------------------------------------------------------------
        > > -- 20 megs of disk space in your group's Document Vault
        > > -- http://www.egroups.com/docvault/perl-beginner/?m=1
        > >
        > >
        >
        > ------------------------------------------------------------------------
        > -- Talk to your group with your own voice!
        > -- http://www.egroups.com/VoiceChatPage?listName=perl-beginner&m=1
        >
        >
        > ------------------------------------------------------------------------
        > -- Create a poll/survey for your group!
        > -- http://www.egroups.com/vote?listname=perl-beginner&m=1
        >
        >
      • Manolo.Marzan@icl.com
        I think so that I installed DBI successfully because this is the instruction given... Writing Makefile for DBI Remember to actually *read* the README file! Use
        Message 3 of 8 , Dec 2, 1999
        • 0 Attachment
          I think so that I installed DBI successfully because this is the instruction
          given...

          Writing Makefile for DBI

          Remember to actually *read* the README file!
          Use 'make' to build the software (dmake or nmake on Windows).
          Then 'make test' to execute self tests.
          Then 'make install' to install the DBI and then delete this working
          directory before unpacking and building any DBD::* drivers.

          This is the result of "make test"

          CORRECT> gmake test (y|n|e|a)? yes
          PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib
          -I/usr/local/lib/perl5/sun4-solaris/5.00404 -I/usr/local/lib/perl5 -e 'use
          Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
          t/basics............ok
          t/dbidrv............ok
          t/examp.............ok
          t/meta..............ok
          t/proxy.............skipping test on this platform
          t/shell.............skipping test on this platform
          t/subclass..........ok
          All tests successful.
          Files=7, Tests=176, 2 secs ( 1.34 cusr 0.39 csys = 1.73 cpu)
          PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib
          -I/usr/local/lib/perl5/sun4-solaris/5.00404 -I/usr/local/lib/perl5 test.pl
          test.pl
          DBI test application $Revision: 10.3 $
          Using /usr/local/lib/perl5/DBI/blib
          Switch: DBI 1.13 by Tim Bunce, 1.13
          Available Drivers: ADO, ExampleP, Proxy
          dbi:ExampleP:: testing 5 sets of 20 connections:
          Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
          Disconnecting...
          Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
          Disconnecting...
          Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
          Disconnecting...
          Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
          Disconnecting...
          Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
          Disconnecting...
          Made 100 connections in 0 secs ( 0.08 usr 0.00 sys = 0.08 cpu)

          Testing handle creation speed...
          5000 NullP statement handles cycled in 2.4 cpu+sys seconds (2040 per sec)

          test.pl done


          This is the result of "gmake install"

          CORRECT>gmake install (y|n|e|a)? yes
          Installing /usr/local/lib/perl5/site_perl/sun4-solaris/./auto/DBI/DBIXS.h
          Installing /usr/local/lib/perl5/site_perl/sun4-solaris/./auto/DBI/dbd_xsh.h
          Installing /usr/local/lib/perl5/site_perl/sun4-solaris/./auto/DBI/dbi_sql.h
          Installing /usr/local/lib/perl5/site_perl/sun4-solaris/./auto/DBI/Driver.xst
          Installing /usr/local/lib/perl5/site_perl/sun4-solaris/./auto/DBI/DBI.so
          Installing /usr/local/lib/perl5/site_perl/sun4-solaris/./auto/DBI/DBI.bs
          Installing /usr/local/lib/perl5/site_perl/./DBI/W32ODBC.pm
          Installing /usr/local/lib/perl5/site_perl/./DBI/Shell.pm
          Installing /usr/local/lib/perl5/site_perl/./DBI/FAQ.pm
          Installing /usr/local/lib/perl5/site_perl/./DBI/ProxyServer.pm
          Installing /usr/local/lib/perl5/site_perl/./DBI/Format.pm
          Installing /usr/local/lib/perl5/site_perl/./DBI/DBD.pm
          Installing /usr/local/lib/perl5/site_perl/./DBD/ExampleP.pm
          Installing /usr/local/lib/perl5/site_perl/./DBD/Proxy.pm
          Installing /usr/local/lib/perl5/site_perl/./DBD/NullP.pm
          Installing /usr/local/lib/perl5/site_perl/./DBD/Sponge.pm
          Installing /usr/local/lib/perl5/site_perl/./DBD/ADO.pm
          Installing /usr/local/lib/perl5/site_perl/./Bundle/DBI.pm
          Installing /usr/local/lib/perl5/site_perl/./Win32/DBIODBC.pm
          Installing /usr/local/lib/perl5/site_perl/./DBI.pm
          Installing /usr/local/man/man1/./dbiproxy.1
          Installing /usr/local/man/man1/./dbish.1
          Installing /usr/local/lib/perl5/man/man3/./DBI::W32ODBC.3
          Installing /usr/local/lib/perl5/man/man3/./DBI::FAQ.3
          Installing /usr/local/lib/perl5/man/man3/./DBI::Shell.3
          Installing /usr/local/lib/perl5/man/man3/./DBI::Format.3
          Installing /usr/local/lib/perl5/man/man3/./DBI::ProxyServer.3
          Installing /usr/local/lib/perl5/man/man3/./Bundle::DBI.3
          Installing /usr/local/lib/perl5/man/man3/./DBI::DBD.3
          Installing /usr/local/lib/perl5/man/man3/./DBI.3
          Installing /usr/local/lib/perl5/man/man3/./Win32::DBIODBC.3
          Installing /usr/local/lib/perl5/man/man3/./DBD::Proxy.3
          Installing /usr/local/lib/perl5/man/man3/./DBD::ADO.3
          Installing /usr/local/bin/./dbiproxy
          Installing /usr/local/bin/./dbish
          Writing /usr/local/lib/perl5/site_perl/sun4-solaris/auto/DBI/.packlist
          ## Differing version of ./DBI.pm found. You might like to
          rm /usr/local/lib/perl5/./DBI.pm
          ## Running 'make install UNINST=1' will unlink this file for you.
          Appending installation info to
          /usr/local/lib/perl5/sun4-solaris/5.00404/perllocal.pod
        • Jeff Boes
          ... What you probably need is a line like this: use lib /usr/local/lib/perl5/site_perl ; at the top of your script, before use DBI; ... Jeffery Boes |ferric
          Message 4 of 8 , Dec 2, 1999
          • 0 Attachment
            > -----Original Message-----
            > From: Manolo.Marzan@... [mailto:Manolo.Marzan@...]
            > Sent: Thursday, December 02, 1999 12:51 PM
            > To: perl-beginner@egroups.com
            > Subject: [PBML] Re: DBI and DBD installation
            >
            >
            > I think so that I installed DBI successfully because this is the
            > instruction
            > given...

            What you probably need is a line like this:

            use lib '/usr/local/lib/perl5/site_perl';

            at the top of your script, before

            use DBI;

            ----
            ~~~~~~~~~~~~~|The tusks that clashed in mighty brawls of mastodons are
            |billiard balls./The sword of Charlemagne the Just is
            Jeffery Boes |ferric oxide, known as rust./The grizzly bear whose potent
            jboes@...|hug was feared by all, is now a rug./Great Caesar's bust
            |is on the shelf, and I don't feel so well myself.
            |"On the Vanity of Earthly Greatness", A.Guiterman (1871-1943)
          Your message has been successfully submitted and would be delivered to recipients shortly.