Created
December 29, 2015 23:40
-
-
Save nicksantamaria/66726bca586d152a3a01 to your computer and use it in GitHub Desktop.
Install mydumper / myloader from source on Ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Switch to root user. | |
sudo su - | |
# Update apt repositories and install dependencies. | |
apt-get update | |
apt-get install libglib2.0-dev libmysqlclient15-dev zlib1g-dev libpcre3-dev libssl-dev cmake | |
# Download mydumper source and move to appropriate directory. | |
cd /usr/local/share | |
wget https://launchpad.net/mydumper/0.9/0.9.1/+download/mydumper-0.9.1.tar.gz | |
tar -vxxzf mydumper-0.9.1.tar.gz | |
rm mydumper-0.9.1.tar.gz | |
mv mydumper-0.9.1 mydumper | |
cd mydumper | |
# Compile. | |
cmake . | |
make | |
# Symlink executables to /usr/bin. | |
ln -s `pwd`/mydumper /usr/bin/mydumper | |
ln -s `pwd`/myloader /usr/bin/myloader |
If someone have troubles compiling - apt-get install build-essential
did resolve cxx missing problem for me.
@bachko - thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks. Worked fine for me