MySQLdb installation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • T. Kaufmann

    #1

    MySQLdb installation

    Hi,

    RDBMS MySQL works fine on my machine. I want to install MySQL-python
    1.0.0 under Red Hat 9.0.
    [color=blue][color=green][color=darkred]
    >>> platform.platfo rm()[/color][/color][/color]
    'Linux-2.4.20-8-i686-with-redhat-9-Shrike'

    There are some problems. If I call python

    setup.py build

    there are lots of errors:

    _mysql.c:41:19: mysql.h: File not found

    What can I do? How can I fix it?

    o-o

    Thomas
  • Gerhard Haering

    #2
    Re: MySQLdb installation

    On Mon, Nov 08, 2004 at 05:13:52PM +0100, T. Kaufmann wrote:[color=blue]
    > Hi,
    >
    > RDBMS MySQL works fine on my machine. I want to install MySQL-python
    > 1.0.0 under Red Hat 9.0. [...]
    > there are lots of errors:
    >
    > _mysql.c:41:19: mysql.h: File not found
    >
    > What can I do?[/color]

    Start with reading the README :-P
    [color=blue]
    > How can I fix it?[/color]

    ... which mentions, among others:

    * Red Hat Linux packages:
    - mysql-devel to compile
    - mysql and/or mysql-devel to run

    -- Gerhard
    --
    A: Because it messes up the order in which people normally read text.
    Q: Why is top-posting such a bad thing?
    A: Top-posting.
    Q: What is the most annoying thing on usenet and in e-mail?

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (GNU/Linux)

    iD8DBQFBj54vdIO 4ozGCH14RAmsrAK CZODWuPVhG5Ales l/RghBL8NLFbQCfed m1
    22qUH+vpxkdxJGP uXVGgnxU=
    =lEqS
    -----END PGP SIGNATURE-----

    Comment

    • T. Kaufmann

      #3
      Re: MySQLdb installation

      > ... which mentions, among others:[color=blue]
      >
      > * Red Hat Linux packages:
      > - mysql-devel to compile
      > - mysql and/or mysql-devel to run[/color]

      .... and what does it mean? I don't understand it.

      o-o

      Thomas

      Comment

      • wes weston

        #4
        Re: MySQLdb installation

        T. Kaufmann wrote:[color=blue]
        > Hi,
        >
        > RDBMS MySQL works fine on my machine. I want to install MySQL-python
        > 1.0.0 under Red Hat 9.0.
        >[color=green][color=darkred]
        > >>> platform.platfo rm()[/color][/color]
        > 'Linux-2.4.20-8-i686-with-redhat-9-Shrike'
        >
        > There are some problems. If I call python
        >
        > setup.py build
        >
        > there are lots of errors:
        >
        > _mysql.c:41:19: mysql.h: File not found
        >
        > What can I do? How can I fix it?
        >
        > o-o
        >
        > Thomas[/color]

        Thomas,
        I believe the mysql.h file that is not being found
        is part of the mysql developement package (and not the
        MySQLDB package). If you do have mysql.h somewhere, it
        is not in your include path.
        wes

        Comment

        • Diez B. Roggisch

          #5
          Re: MySQLdb installation

          T. Kaufmann wrote:
          [color=blue][color=green]
          >> ... which mentions, among others:
          >>
          >> * Red Hat Linux packages:
          >> - mysql-devel to compile
          >> - mysql and/or mysql-devel to run[/color]
          >
          > ... and what does it mean? I don't understand it.[/color]

          Install the package mysql-devel.
          --
          Regards,

          Diez B. Roggisch

          Comment

          • T. Kaufmann

            #6
            Re: MySQLdb installation

            wes weston wrote:[color=blue]
            > T. Kaufmann wrote:
            >[color=green]
            >> Hi,
            >>
            >> RDBMS MySQL works fine on my machine. I want to install MySQL-python
            >> 1.0.0 under Red Hat 9.0.
            >>[color=darkred]
            >> >>> platform.platfo rm()[/color]
            >> 'Linux-2.4.20-8-i686-with-redhat-9-Shrike'
            >>
            >> There are some problems. If I call python
            >>
            >> setup.py build
            >>
            >> there are lots of errors:
            >>
            >> _mysql.c:41:19: mysql.h: File not found
            >>
            >> What can I do? How can I fix it?
            >>
            >> o-o
            >>
            >> Thomas[/color]
            >
            >
            > Thomas,
            > I believe the mysql.h file that is not being found
            > is part of the mysql developement package (and not the
            > MySQLDB package). If you do have mysql.h somewhere, it
            > is not in your include path.
            > wes[/color]

            Yes, it could be the problem. I searched the header (with 'locate
            mysql.h') - but there is no such file on my machine.

            Thanks for help.

            o-o

            Thomas

            Comment

            • T. Kaufmann

              #7
              Re: MySQLdb installation

              Diez B. Roggisch wrote:[color=blue]
              > T. Kaufmann wrote:
              >
              >[color=green][color=darkred]
              >>>... which mentions, among others:
              >>>
              >>>* Red Hat Linux packages:
              >>> - mysql-devel to compile
              >>> - mysql and/or mysql-devel to run[/color]
              >>
              >>... and what does it mean? I don't understand it.[/color]
              >
              >
              > Install the package mysql-devel.[/color]

              I can't find it!?

              o-o

              Thomas

              Comment

              • Sion Arrowsmith

                #8
                Re: MySQLdb installation

                T. Kaufmann <merman@snafu.d e> wrote:[color=blue]
                >Diez B. Roggisch wrote:[color=green]
                >> Install the package mysql-devel.[/color]
                >I can't find it!?[/color]

                "libraries and header files" on MySQL downloads.
                --
                \S -- siona@chiark.gr eenend.org.uk -- http://www.chaos.org.uk/~sion/
                ___ | "Frankly I have no feelings towards penguins one way or the other"
                \X/ | -- Arthur C. Clarke
                her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump

                Comment

                • T. Kaufmann

                  #9
                  Re: MySQLdb installation

                  Sion Arrowsmith wrote:[color=blue]
                  > T. Kaufmann <merman@snafu.d e> wrote:
                  >[color=green]
                  >>Diez B. Roggisch wrote:
                  >>[color=darkred]
                  >>>Install the package mysql-devel.[/color]
                  >>
                  >>I can't find it!?[/color]
                  >
                  >
                  > "libraries and header files" on MySQL downloads.[/color]

                  I found it here:



                  Thanks for help.

                  o-o

                  Thomas

                  Comment

                  • T. Kaufmann

                    #10
                    Re: MySQLdb installation

                    Sion Arrowsmith wrote:[color=blue]
                    > T. Kaufmann <merman@snafu.d e> wrote:
                    >[color=green]
                    >>Diez B. Roggisch wrote:
                    >>[color=darkred]
                    >>>Install the package mysql-devel.[/color]
                    >>
                    >>I can't find it!?[/color]
                    >
                    >
                    > "libraries and header files" on MySQL downloads.[/color]

                    Sorry - here is the right place:



                    o-o

                    Thomas

                    Comment

                    Working...