Running RPM based or other packaged MySQL Binary you may have a problem if you would like to rebuild binary for some reason – change some build settings, apply some third party patches or simply try latest snapshot (This time I was both applying patches for Innodb scalability and Vadim’s patches to get proper slow query log). There are number of things as default paths and GCC build and link options you would like to keep the same as in original binary to minimize the change and finding this was not pleasant.
This time however Vadim advised me better solution – run mysqlbug script and get configure options from it. This is so easy.
After build is completed I simply take mysqld from sql directory and try it out as this is the only piece which I’m interested in. Quick to try, quick to rollback. You may run make install though if you need to but better to be ready to reinstall rpm after it 🙂