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

problems installing DBI and MySQL on Fedora

Expand Messages
  • live4zz
    Hi, I m trying to install DBI and MySQL on Fedora (as root). When I type in the install commmands: perl -MCPAN -e install DBI perl -MCPAN -e install
    Message 1 of 5 , Jun 28, 2005
    • 0 Attachment
      Hi,

      I'm trying to install DBI and MySQL on Fedora (as root). When I type
      in the install commmands:

      perl -MCPAN -e 'install DBI'
      perl -MCPAN -e 'install DBD::mysql'


      I get these error messages:

      make: *** [dbdimp.o] Error 127
      /usr/bin/make -- NOT OK
      Running make test
      Can't test without successful make
      Running make install
      make had returned bad status, install seems impossible

      Can anyone explain to me what's going on and what I can do to solve
      it? Thanks a lot!

      Here's the full screen for mysql installation:

      perl -MCPAN -e 'install mysql'
      CPAN: Storable loaded ok
      Going to read /root/.cpan/Metadata
      Database was generated on Tue, 28 Jun 2005 11:58:57 GMT
      Warning: Cannot install mysql, don't know what it is.
      Try the command

      i /mysql/

      to find objects with matching identifiers.
      [root@stevenwork 5.8.1]# perl -MCPAN -e 'install DBD_mysql'
      CPAN: Storable loaded ok
      Going to read /root/.cpan/Metadata
      Database was generated on Tue, 28 Jun 2005 11:58:57 GMT
      Warning: Cannot install DBD_mysql, don't know what it is.
      Try the command

      i /DBD_mysql/

      to find objects with matching identifiers.
      [root@stevenwork 5.8.1]# perl -MCPAN -e 'install DBD::mysql'
      CPAN: Storable loaded ok
      Going to read /root/.cpan/Metadata
      Database was generated on Tue, 28 Jun 2005 11:58:57 GMT
      Running install for module DBD::mysql
      Running make for R/RU/RUDY/DBD-mysql-2.9008.tar.gz
      CPAN: Digest::MD5 loaded ok
      Checksum for
      /root/.cpan/sources/authors/id/R/RU/RUDY/DBD-mysql-2.9008.tar.gz ok
      Scanning cache /root/.cpan/build for sizes
      DBD-mysql-2.9008/
      DBD-mysql-2.9008/t/
      DBD-mysql-2.9008/t/60leaks.t
      DBD-mysql-2.9008/t/40listfields.t
      DBD-mysql-2.9008/t/10dsnlist.t
      DBD-mysql-2.9008/t/40numrows.t
      DBD-mysql-2.9008/t/30insertfetch.t
      DBD-mysql-2.9008/t/00base.t
      DBD-mysql-2.9008/t/insertid.t
      DBD-mysql-2.9008/t/50commit.t
      DBD-mysql-2.9008/t/40nulls.t
      DBD-mysql-2.9008/t/dbdadmin.t
      DBD-mysql-2.9008/t/lib.pl
      DBD-mysql-2.9008/t/20createdrop.t
      DBD-mysql-2.9008/t/mysql.dbtest
      DBD-mysql-2.9008/t/40bindparam.t
      DBD-mysql-2.9008/t/mysql.t
      DBD-mysql-2.9008/t/40blobs.t
      DBD-mysql-2.9008/t/akmisc.t
      DBD-mysql-2.9008/t/50chopblanks.t
      DBD-mysql-2.9008/t/ak-dbd.t
      DBD-mysql-2.9008/t/mysql2.t
      DBD-mysql-2.9008/lib/
      DBD-mysql-2.9008/lib/DBD/
      DBD-mysql-2.9008/lib/DBD/mysql/
      DBD-mysql-2.9008/lib/DBD/mysql/GetInfo.pm
      DBD-mysql-2.9008/lib/DBD/mysql/INSTALL.pod
      DBD-mysql-2.9008/lib/DBD/mysql.pm
      DBD-mysql-2.9008/lib/Bundle/
      DBD-mysql-2.9008/lib/Bundle/DBD/
      DBD-mysql-2.9008/lib/Bundle/DBD/mysql.pm
      DBD-mysql-2.9008/lib/Mysql/
      DBD-mysql-2.9008/lib/Mysql/Statement.pm
      DBD-mysql-2.9008/lib/Mysql.pm
      DBD-mysql-2.9008/TODO
      DBD-mysql-2.9008/myld
      DBD-mysql-2.9008/constants.h
      DBD-mysql-2.9008/dbdimp.c
      DBD-mysql-2.9008/dbdimp.h
      DBD-mysql-2.9008/README
      DBD-mysql-2.9008/MANIFEST.SKIP
      DBD-mysql-2.9008/Makefile.PL
      DBD-mysql-2.9008/META.yml
      DBD-mysql-2.9008/INSTALL.html
      DBD-mysql-2.9008/ChangeLog
      DBD-mysql-2.9008/MANIFEST
      DBD-mysql-2.9008/mysql.xs
      Removing previously used /root/.cpan/build/DBD-mysql-2.9008

      CPAN.pm: Going to build R/RU/RUDY/DBD-mysql-2.9008.tar.gz

      I will use the following settings for compiling and testing:

      cflags (mysql_config) = -I'/usr/include'
      libs (mysql_config) = -L/usr/lib/mysql -lmysqlclient -lz
      -lcrypt -lnsl -lm
      mysql_config (guessed ) = mysql_config
      nocatchstderr (default ) = 0
      nofoundrows (default ) = 0
      ssl (guessed ) = 0
      testdb (default ) = test
      testhost (default ) =
      testpassword (default ) =
      testsocket (default ) =
      testuser (default ) =

      To change these settings, see 'perl Makefile.PL --help' and
      'perldoc INSTALL'.

      Checking if your kit is complete...
      Looks good
      Using DBI 1.37 installed in
      /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBI
      Writing Makefile for DBD::mysql
      cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
      cp lib/Mysql.pm blib/lib/Mysql.pm
      cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
      cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
      cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
      cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
      gcc -c
      -I/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBI
      -I'/usr/include' -g -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
      -DDEBUGGING -fno-strict-aliasing -I/usr/local/include
      -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g
      -pipe -march=i386 -mcpu=i686 -DVERSION=\"2.9008\"
      -DXS_VERSION=\"2.9008\" -fPIC
      "-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE" dbdimp.c
      /bin/sh: line 1: gcc: command not found
      make: *** [dbdimp.o] Error 127
      /usr/bin/make -- NOT OK
      Running make test
      Can't test without successful make
      Running make install
      make had returned bad status, install seems impossible
    • Alan C
      live4zz wrote: [ . . ] ... al@debknobox:~$ which make /usr/bin/make al@debknobox:~$ ... likely something somehow either wrong or not installed as far as your
      Message 2 of 5 , Jun 29, 2005
      • 0 Attachment
        live4zz wrote:
        [ . . ]
        > perl -MCPAN -e 'install DBD::mysql'
        > I get these error messages:
        > make: *** [dbdimp.o] Error 127
        > /usr/bin/make -- NOT OK

        al@debknobox:~$ which make
        /usr/bin/make
        al@debknobox:~$
        ----

        likely something somehow either wrong or not installed as far as your
        make goes.

        get out your package manager of choice for your distro if needed to do so.

        But these are now getting OT for here and better addressed elsewhere,
        sys admin, etc.
        ----

        (also U once gave it something it didn't recognize: mysql)

        It's picky. Even is case sensitive. What it told U then was about
        searching (so as to return some broader results to first peruse then
        give it exactly one of the returned parameters.)

        Alan.
      • Damien Carbery
        ... It looks like you have (at least) two issues: no /usr/bin/make and no gcc compiler. Both are available as part of Fedora. /usr/bin/make is in the
        Message 3 of 5 , Jun 29, 2005
        • 0 Attachment
          --- In perl-beginner@yahoogroups.com, "live4zz" <sleepygroups@g...> wrote:
          > Hi,
          >
          > I'm trying to install DBI and MySQL on Fedora (as root). When I type
          > in the install commmands:
          >
          > perl -MCPAN -e 'install DBI'
          > perl -MCPAN -e 'install DBD::mysql'
          >
          >
          > I get these error messages:
          >
          > make: *** [dbdimp.o] Error 127
          > /usr/bin/make -- NOT OK

          > /bin/sh: line 1: gcc: command not found
          > make: *** [dbdimp.o] Error 127

          It looks like you have (at least) two issues: no /usr/bin/make and no
          gcc compiler. Both are available as part of Fedora.
          /usr/bin/make is in the make-3.80-3 rpm (in Fedora Core 2, numbers may
          be different if you are on a different FC release)
          /usr/bin/gcc is part of gcc-3.3.3-7 rpm.
          You may also need gcc-c++-3.3.3.
        • sleepy groups
          thanks for the reply, my questions are listed below ... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I tried to install gcc-3.3 by
          Message 4 of 5 , Jun 30, 2005
          • 0 Attachment
            thanks for the reply, my questions are listed below

            On 6/29/05, Damien Carbery <daymobrew@...> wrote:
            > --- In perl-beginner@yahoogroups.com, "live4zz" <sleepygroups@g...> wrote:
            > > Hi,
            > >
            > > I'm trying to install DBI and MySQL on Fedora (as root). When I type
            > > in the install commmands:
            > >
            > > perl -MCPAN -e 'install DBI'
            > > perl -MCPAN -e 'install DBD::mysql'
            > >
            > >
            > > I get these error messages:
            > >
            > > make: *** [dbdimp.o] Error 127
            > > /usr/bin/make -- NOT OK
            >
            > > /bin/sh: line 1: gcc: command not found
            > > make: *** [dbdimp.o] Error 127
            >
            > It looks like you have (at least) two issues: no /usr/bin/make and no
            > gcc compiler. Both are available as part of Fedora.
            > /usr/bin/make is in the make-3.80-3 rpm (in Fedora Core 2, numbers may
            > be different if you are on a different FC release)
            > /usr/bin/gcc is part of gcc-3.3.3-7 rpm.
            > You may also need gcc-c++-3.3.3.
            >
            >
            -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
            I tried to install gcc-3.3 by downloading the module, saving it on my
            /usr/lib/perl5/5.8.1 directory and typed the following commands:
            [root@stevenwork 5.8.1]# gzip -d gcc-3.3.tar.gz
            [root@stevenwork 5.8.1]# tar -xof gcc-3.3.tar
            [root@stevenwork 5.8.1]# perl Makefile.PL
            Can't open perl script "Makefile.PL": No such file or directory


            Do you know why I get this error, and how do I download and install
            these packages..and where?

            Also I looked for "Make" and "make-3.80-3" on Redhat.com but couldn't
            find it. Where is Fedora Core 2, I tried to look it up but couldn't
            find it. I'm just a novice.


            Thanks a lot!
          • sleepy groups
            Actually it might not be a problem with make. I installed DBI alright and DBD::CSV and got the following: Writing Makefile for DBD::CSV cp
            Message 5 of 5 , Jun 30, 2005
            • 0 Attachment
              Actually it might not be a problem with make. I installed DBI alright and
              DBD::CSV and got the following:

              Writing Makefile for DBD::CSV
              cp lib/Bundle/DBD/CSV.pm blib/lib/Bundle/DBD/CSV.pm
              cp lib/DBD/CSV.pm blib/lib/DBD/CSV.pm
              Manifying blib/man3/DBD::CSV.3pm
              Manifying blib/man3/Bundle::DBD::CSV.3pm
              -=-=-=-=-=-=-=-=-=-=-=-=-
              /usr/bin/make -- OK
              -=-=-=-=-=-=--=-=-=--=-=-=
              Running make test
              PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
              "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
              t/00base...........1.14 at t/00base.t line 15.
              t/00base...........ok
              t/10dsnlist........ok
              t/20createdrop.....ok
              t/30insertfetch....ok
              t/40bindparam......ok
              t/40blobs..........ok
              t/40listfields.....ok
              t/40nulls..........ok
              t/40numrows........ok
              t/50chopblanks.....ok
              t/50commit.........ok
              t/ak-dbd...........ok
              t/csv..............ok
              t/dbdadmin.........ok
              All tests successful.
              Files=14, Tests=243, 2 wallclock secs ( 2.13 cusr + 0.12 csys = 2.25 CPU)

              /usr/bin/make test -- OK

              Running make install
              Installing /usr/share/man/man3/DBD::CSV.3pm
              Installing /usr/share/man/man3/Bundle::DBD::CSV.3pm
              Writing
              /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/auto/DBD/CSV/.packlist
              Appending installation info to
              /usr/lib/perl5/5.8.1/i386-linux-thread-multi/perllocal.pod

              /usr/bin/make install -- OK

              but still when I try to run a CSV DBI called listcsv.pl I get the following
              errors:
              install_driver(CSV) failed: Can't locate loadable object for module DBD::CSV
              in @INC (@INC contains: /usr/lib/perl5/5.8.1/i386-linux-thread-multi
              /usr/lib/perl5/5.8.1 /usr/lib/perl5/vendor_perl/5.8.1
              /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
              /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
              /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1 .) at
              (eval 1) line 3
              Compilation failed in require at (eval 1) line 3.
              Perhaps a module that DBD::CSV requires hasn't been fully installed

              -----------------------------------------------------------
              That's weird since I thought all you need is DBI and DBD::CSV to handle DBI
              database scripts. So I went back and tried to install the Bundle::DBI from
              CPAN:
              perl -MCPAN -e 'install Bundle::DBI

              and got the error:
              /usr/bin/make -- NOT OK

              BUT beforethat, I saw this error:

              running make test
              PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
              "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
              t/base..........ok
              t/config........ok
              t/fork..........ok

              t/forkm.........make: *** [test_dynamic] Interrupt
              /usr/bin/make test -- NOT OK

              Running make install
              make test had returned bad status, won't install without force

              So
              1. Does anyone know why Make worked for DBI installation and not
              Bundle::DBI?
              2. Does anyone know what tforkm is and what that might indicate if it gives
              an error during install?

              Thanks!







              On 6/30/05, sleepy groups <sleepygroups@...> wrote:
              > thanks for the reply, my questions are listed below
              >
              > On 6/29/05, Damien Carbery <daymobrew@...> wrote:
              > > --- In perl-beginner@yahoogroups.com, "live4zz" <sleepygroups@g...>
              wrote:
              > > > Hi,
              > > >
              > > > I'm trying to install DBI and MySQL on Fedora (as root). When I type
              > > > in the install commmands:
              > > >
              > > > perl -MCPAN -e 'install DBI'
              > > > perl -MCPAN -e 'install DBD::mysql'
              > > >
              > > >
              > > > I get these error messages:
              > > >
              > > > make: *** [dbdimp.o] Error 127
              > > > /usr/bin/make -- NOT OK
              > >
              > > > /bin/sh: line 1: gcc: command not found
              > > > make: *** [dbdimp.o] Error 127
              > >
              > > It looks like you have (at least) two issues: no /usr/bin/make and no
              > > gcc compiler. Both are available as part of Fedora.
              > > /usr/bin/make is in the make-3.80-3 rpm (in Fedora Core 2, numbers may
              > > be different if you are on a different FC release)
              > > /usr/bin/gcc is part of gcc-3.3.3-7 rpm.
              > > You may also need gcc-c++-3.3.3.
              > >
              > >
              > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
              > I tried to install gcc-3.3 by downloading the module, saving it on my
              > /usr/lib/perl5/5.8.1 directory and typed the following commands:
              > [root@stevenwork 5.8.1]# gzip -d gcc-3.3.tar.gz
              > [root@stevenwork 5.8.1]# tar -xof gcc-3.3.tar
              > [root@stevenwork 5.8.1]# perl Makefile.PL
              > Can't open perl script "Makefile.PL": No such file or directory
              >
              >
              > Do you know why I get this error, and how do I download and install
              > these packages..and where?
              >
              > Also I looked for "Make" and "make-3.80-3" on Redhat.com<http://Redhat.com>but couldn't
              > find it. Where is Fedora Core 2, I tried to look it up but couldn't
              > find it. I'm just a novice.
              >
              >
              > Thanks a lot!
              >


              [Non-text portions of this message have been removed]
            Your message has been successfully submitted and would be delivered to recipients shortly.