{"id":641,"date":"2007-10-11T10:17:07","date_gmt":"2007-10-11T15:17:07","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/archives\/2007\/10\/11\/building-mysql-from-source"},"modified":"2007-10-11T19:34:33","modified_gmt":"2007-10-12T00:34:33","slug":"building-mysql-from-source","status":"publish","type":"post","link":"http:\/\/www.bytebot.net\/blog\/archives\/2007\/10\/11\/building-mysql-from-source","title":{"rendered":"Building MySQL from source"},"content":{"rendered":"<p>So others know how I check out a fresh tree, here are instructions to building MySQL from <a href=\"http:\/\/mysql.bkbits.net\/\">mysql.bkbits.net<\/a>, using the free <tt>bkf<\/tt> tool.<\/p>\n<ul>\n<li>in ~\/code, do <tt>bkf clone bk:\/\/mysql.bkbits.net\/mysql-5.0-community mysql-5.0-community<\/tt> to clone to community tree down to your disk<\/li>\n<li>wait patiently, while bitkeeper attempts to suck some of your bandwidth<\/li>\n<li>now, do <tt>BUILD\/compile-dist<\/tt>, and wait while MySQL builds<\/li>\n<li>you might find it handy to now get the test suite on your build, via <tt>make test<\/tt><\/li>\n<li>run <tt>make dist<\/tt>, and you&#8217;ll have nice dandy <em>source<\/em> tarballs to go with your build for easy installation\/distribution\/etc.<\/li>\n<li>if you encounter problems, say with ndb (and you&#8217;re not testing against it), you can run <tt>make dist --ignore ndb<\/tt> for instance<\/li>\n<\/ul>\n<p>If for some reason you don&#8217;t want the latest development tree, and say, are more interested in a tag, all you need to do is find the appropriate tree under the Repository section on bkbits, click on it, head over to tags, find an appropriate tag, and execute a <tt>bkf clone -rTAG bk:\/\/mysql.bkbits.net\/mysql-5.0-community mysql-5.0-community-TAG<\/tt>. You now have a mysql version that matches a certain tag. Build as per above.<\/p>\n<p>To keep up-to-date, just run <tt>bkf pull<\/tt>.<\/p>\n<p>If you actually need to install supporting packages (or bkf itself!), etc. on say Ubuntu or Fedora, read <a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/installing-source-tree.html\">Installing from the Development Source Tree<\/a>, part of the excellent MySQL manual. Also, executing <tt>bkf --help<\/tt> is pretty easy. The tool itself is pretty brain-dead, quite unlike its older (commercial) brother, BitKeeper (bk).<\/p>\n<p><strong>Update:<\/strong> I should clarify that <tt>make dist<\/tt> alone, only gives you a pristine source tarball for distribution, etc. What I normally do is hook it into the package management system of the platform of my choice (usually RPM or DEB), and build binaries that way. However, if you want a binary tarball, there&#8217;s an additional step in that you need to run <tt>scripts\/make_binary_distribution<\/tt> (generally, after running tests!). This will be a tarball that contains a <em><strong>binary<\/strong><\/em> for distribution. Heads up to <a href=\"http:\/\/datacharmer.blogspot.com\/\">Giuseppe<\/a> for dropping me a line.<\/p>\n<p>Technorati Tags: <a href=\"http:\/\/technorati.com\/tag\/mysql\" class=\"performancingtags\" rel=\"tag\">mysql<\/a>, <a href=\"http:\/\/technorati.com\/tag\/bkf\" class=\"performancingtags\" rel=\"tag\">bkf<\/a>, <a href=\"http:\/\/technorati.com\/tag\/bkbits\" class=\"performancingtags\" rel=\"tag\">bkbits<\/a>, <a href=\"http:\/\/technorati.com\/tag\/tarballs\" class=\"performancingtags\" rel=\"tag\">tarballs<\/a>, <a href=\"http:\/\/technorati.com\/tag\/source\" class=\"performancingtags\" rel=\"tag\">source<\/a><\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20Building%20MySQL%20from%20source&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2007%2F10%2F11%2Fbuilding-mysql-from-source&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"00903afa69\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/10\/11\/building-mysql-from-source?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-641\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/10\/11\/building-mysql-from-source?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-641\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/10\/11\/building-mysql-from-source?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-641\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/10\/11\/building-mysql-from-source?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>So others know how I check out a fresh tree, here are instructions to building MySQL from mysql.bkbits.net, using the free bkf tool. in ~\/code, do bkf clone bk:\/\/mysql.bkbits.net\/mysql-5.0-community mysql-5.0-community to clone to community tree down to your disk wait patiently, while bitkeeper attempts to suck some of your bandwidth now, do BUILD\/compile-dist, and wait [&hellip;]<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20Building%20MySQL%20from%20source&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2007%2F10%2F11%2Fbuilding-mysql-from-source&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"00903afa69\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/10\/11\/building-mysql-from-source?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-641\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/10\/11\/building-mysql-from-source?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-641\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/10\/11\/building-mysql-from-source?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-641\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2007\/10\/11\/building-mysql-from-source?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_options":[]},"categories":[23],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4vJD-al","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":699,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/01\/16\/centos-centosplus-and-mysql-versions-shipping-there","url_meta":{"origin":641,"position":0},"title":"CentOS, CentOSPlus, and MySQL versions shipping there","date":"16\/1\/2008","format":false,"excerpt":"Peter posted that CentOS comes with a build of MySQL Enterprise. It should really be clarified that CentOS itself, comes with MySQL Community, as does Red Hat Enterprise Linux. On RHEL5\/CentOS5, you'll see: mysql-5.0.22-2.2.el5_1.1 mysql-server-5.0.22-2.2.el5_1.1 The above are the default packages that CentOS provides. However, what Peter really is referring\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":814,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/05\/07\/getting-started-using-ndb-on-mysql-university","url_meta":{"origin":641,"position":1},"title":"Getting Started Using NDB on MySQL University","date":"7\/5\/2008","format":false,"excerpt":"We haven't had a MySQL University session in a while (a semi-spring break?), but tomorrow's session (May 8) should be real interesting. MySQL Cluster developer, Stewart Smith, will host a session titled Getting Started Using NDB. It will happen on May 8, at 13:00 UTC. One of the most common\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":777,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/04\/13\/gong-a-thong-at-lugradio-live-usa","url_meta":{"origin":641,"position":2},"title":"Gong-A-Thong at LugRadio Live USA","date":"13\/4\/2008","format":false,"excerpt":"The very brave soul, was Aaron Bockover, from the Banshee media player fame (via the LugRadio Live USA 2008 weblog). There were a few interesting highlights from these gong-a-thong sessions... Zumastor Dan Kegel spoke about the Zumastor Linux Storage Project. Want snapshots and remote replication in your Linux filesystem? This\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":809,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/05\/03\/playing-with-mysqls-online-backup","url_meta":{"origin":641,"position":3},"title":"Playing with MySQL&#8217;s Online Backup","date":"3\/5\/2008","format":false,"excerpt":"Something that has excited me for a long time with upcoming features in the MySQL Server, is online backup. Since seeing it first being demonstrated by Chuck Bell at the Heidelberg Developers Conference in 2007, I've been enthralled. Now you too, can try online backup. If you've not read the\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1706,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2010\/03\/03\/mysql-ecosystem-complementary-talks-at-the-conference","url_meta":{"origin":641,"position":4},"title":"MySQL Ecosystem &#8211; complementary talks at the conference?","date":"3\/3\/2010","format":false,"excerpt":"Its times like this, I want to hear from the greater community - the ones that are reading say, Planet MySQL or Planet MariaDB. MySQL to me, and many others is an ecosystem. We've had for the longest time, complementary technology talks, like for memcached (which have been popular, filled\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":481,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2007\/03\/03\/mysql-with-show-profile-and-updated-information_schema-built-from-the-community-tree","url_meta":{"origin":641,"position":5},"title":"MySQL, with SHOW PROFILE and updated INFORMATION_SCHEMA, built from the Community tree","date":"3\/3\/2007","format":false,"excerpt":"I just built mysql-5.0-community, on my T7200 with 2GB of RAM (on Fedora Core 6), and it only took a mere: real\u00a0\u00a0\u00a0 7m51.127s user\u00a0\u00a0\u00a0 3m13.836s sys\u00a0\u00a0\u00a0\u00a0 2m19.803s The obligatory make test was run, and that was also pretty quick: All 455 tests were successful. The servers were restarted 109 times\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"amp_enabled":true,"_links":{"self":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/641"}],"collection":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=641"}],"version-history":[{"count":0,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/641\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=641"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}