Home

Language Translator

Hacking Zone

Hacking Tools
Attacking

Configure Windows

Windows Configuration

Mix Tutorials

Asterisk
Website Building

Novels

Mix Novels

Human Personality

Body Language

Login Form






Lost Password?
No account yet? Register
Building MySql from Source Distribution Print E-mail

Building MySql from Source Distribution

 

              Although it is preferred that you use the BitKeeper repository, in some cases it might be desirable for you to use another method to build MySQL. You can use the source distribution in such cases. Although in most of the situations you will need only gcc, gdb, and GNU make, there are times when other tools mentioned in the section “Preparing the System to Build MySQL from BitKeeper Tree” are necessary. For example, you will need Bison to change the parser, and adding another file to the source will require the use of autoconf, automake, and m4. Therefore, it is still recommended that you follow the same procedures outlined in that section to prepare your system to the fullest extent possible.

 

 

            Additionally, you will need the tar (http://www.gnu.org/software/tar) and gzip (http://www.gnu.org/software/gzip) utilities to unpack the archive. If you have a non-GNU tar already installed, it is recommended that you still install GNU tar. MySQL is archived using GNU tar, and some variants of tar are not compatible with it.
The following instructions explain how to download and compile MySQL using the source distribution:


  1. Refer to the table listing MySQL versions in the “BitKeeper” section of this chapter, and decide which version of MySQL you would like to work with. Steps 2–5 assume you have chosen version 4.1. If you have chosen a different version, you will need to make the appropriate modifications to the following procedures, replacing 4.1 with the version you have chosen.


  2. Visit http://dev.mysql.com/downloads/mysql/4.1.html (note the version number in the URL), scroll down to the bottom of the page where it says “Source downloads,” and click on the link that says “Pick a mirror” on the “Tarball” line.


3. Optionally fill out the form at the top of the next page and submit it, or just scroll down to the bottom of the page, pick the mirror closest to you, click on the link, and proceed with the download. You will be downloading about 19 MB of data.


4. In the Unix shell, change to the directory where you plan to keep your MySQL sources, and execute the following commands:
        $ gunzip -d downloaded-archive-name | tar xvf -
        $ cd mysql-full-version-name


5. Follow the instructions in the section “Building MySQL from BitKeeper Tree.” If you have not installed all of the required tools for a BitKeeper Tree build, additionally edit BUILD/FINISH.sh to comment out the following lines by adding # to the beginning:
        aclocal     || (echo \"Can't execute aclocal\"     && exit 1)
        autoheader || (echo \"Can't execute autoheader\" && exit 1)
        aclocal     || (echo \"Can't execute aclocal\"     && exit 1)
        automake    || (echo \"Can't execute automake\"    && exit 1)
        autoconf    || (echo \"Can't execute autoconf\"    && exit 1)
        (cd bdb/dist && sh s_all)
        (cd innobase && aclocal && autoheader && aclocal && automake && autoconf)
        if [ -d gemini ]
        then
            (cd gemini && aclocal && autoheader && aclocal && automake && autoconf)
        fi"





Digg!Reddit!Del.icio.us!Live!Facebook!Slashdot!Technorati!StumbleUpon!Newsvine!Fark!Blogmarks!Yahoo!BlogMemes!FeedMeLinks!
Comments
Add NewSearch
Only registered users can write comments!

Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved.

 
< Prev   Next >
Your Ad Here

RSS socialnet

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati
Add to BlinkBits
get cheap insurance life mortgage cover online today
Looking for cheap web hosting for your small business.