trouble install MySql on Redhat 9

Discussion in 'OT Technology' started by quzur, Sep 5, 2003.

  1. quzur

    quzur Active Member

    Joined:
    Mar 15, 2000
    Messages:
    14,405
    Likes Received:
    23
    Location:
    Chicago
    I have a disc that has MySQL on it and I am trying to install it. This is the first thing I am trying to install on Redhat. The disc has 2 files. The first file is MySQL4.0.4-src.rpm. When I clicked it the first time I got a prompt to enter the admin password. I did but then nothing happened...I clicked it again and still nothing happens.

    Then I clicked MySQL4.0.4-tar.gz and this opened another folder that had more folders and unknown files.

    What am I doing wrong?
     
  2. samm

    samm Next in Line

    Joined:
    Dec 22, 2000
    Messages:
    2,630
    Likes Received:
    0
    Location:
    San Jose, CA
    rpm -i MySQL4.0.4-src.rpm

    Shouldn't be too hard. It looks like that's a source code package, so you will have to compile it. There should be a readme after you install it with rpm.
     
  3. Zourn

    Zourn 16-bit Ninja OT Supporter

    Joined:
    Apr 3, 2002
    Messages:
    2,354
    Likes Received:
    0
    Location:
    Texas
    Everything.
    It took me forever to figure this out.
    1. Unpack the tarball file(it seems you've already done this)
    2. open the terminal. (DOS-like thingie)
    3. Change to root(type "su", hit enter, type password, hit enter again)
    4. use the cd command the get to the newly created folder.
    5. type "./configure" (yes dot-slash) and hit enter, this may take awhile
    6. type "make" and hit enter
    7. type "make install" hit enter
    then it should be done
     
  4. quzur

    quzur Active Member

    Joined:
    Mar 15, 2000
    Messages:
    14,405
    Likes Received:
    23
    Location:
    Chicago
    SO why is nothing happening when I click the file?
     
  5. Zourn

    Zourn 16-bit Ninja OT Supporter

    Joined:
    Apr 3, 2002
    Messages:
    2,354
    Likes Received:
    0
    Location:
    Texas
    not all files come as *.rpm
     
  6. quzur

    quzur Active Member

    Joined:
    Mar 15, 2000
    Messages:
    14,405
    Likes Received:
    23
    Location:
    Chicago
    I am going to wait until tomorrow to rey this but a couple more questions.

    when i chage the root am I just changing just the very end...so it would be like MySQL4.0.4-src.rpm to MySQL4.0.4-src.SU ?

    what do you mean "unpack" You said I might have already done it but I am not sure what that is.

    Thanks for your help.
     
  7. Zourn

    Zourn 16-bit Ninja OT Supporter

    Joined:
    Apr 3, 2002
    Messages:
    2,354
    Likes Received:
    0
    Location:
    Texas
    ok, forget the parts i already said, didn't realize it was an *.rpm
    I didn't say change the root, change to the root account, don't change the filename.
    to change to the root follow steps 2&3 in my previous post.

    when i say unpack the file i mean uncompress it, its like winzip, where *.zip denotes a zipped file and you have to "unzip" it to get the files out of the zip file, in a tarball file, denoted by either *.tar.gz or *.tar.bz2, you have to "untar" or "unpack" the file to access the files within. Once that folder is created, open it and see if there is a readme file. that should be the most help of all.
     
  8. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    Because you're using Linux. Linux users tend not to use GUI file managers, and thus they are not that well-developed yet. If you're going to use Linux (for now at least), you really do need to learn to use the command-line.
     
  9. jon3k

    jon3k Guest

    If you're new to linux, or unix based operating systems, you should probably try and find the binary RPM.

    See:
    MySQL4.0.4-src.rpm

    That means its a "source" RPM. See if you can find one with "i386" (or your platform) binary RPM. Then just:

    rpm -ihv filename.rpm

    But, to install anything from source:

    $ tar xfmz filename.tar.gz
    $ ./configure
    (make sure and specify all your install prefixes here!)
    $ make
    $ make install

    you can do a "make clean" to cleanup the installation files once you're done.
     
  10. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    Actually, make clean usually does the opposite of make install, deleting the binaries and such. It's used when you want to install a new version or remove a program from your system and want to make sure you remove all the old files.
     

Share This Page