Skip to content

Instantly share code, notes, and snippets.

@nicksantamaria
Created December 29, 2015 23:40
Show Gist options
  • Save nicksantamaria/66726bca586d152a3a01 to your computer and use it in GitHub Desktop.
Save nicksantamaria/66726bca586d152a3a01 to your computer and use it in GitHub Desktop.
Install mydumper / myloader from source on Ubuntu 14.04
# 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
@salos1982
Copy link

cannot install libmysqlclient15-dev

@salos1982
Copy link

if I install libmysqlclient18 there is following error

-- The CXX compiler identification is Clang 3.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using mysql-config: /usr/bin/mysql_config
-- MySQL not found.

CMake Warning at docs/CMakeLists.txt:9 (message):
Unable to find Sphinx documentation generator


-- MYSQL_CONFIG = /usr/bin/mysql_config
-- CMAKE_INSTALL_PREFIX = /usr/local
-- BUILD_DOCS = ON
-- WITH_BINLOG = OFF
-- RUN_CPPCHECK = OFF
-- Change a values with: cmake -D=


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
MYSQL_LIBRARIES_mysqlclient
linked by target "mydumper" in directory /usr/local/share/mydumper
linked by target "myloader" in directory /usr/local/share/mydumper

-- Configuring incomplete, errors occurred!
See also "/usr/local/share/mydumper/CMakeFiles/CMakeOutput.log".
See also "/usr/local/share/mydumper/CMakeFiles/CMakeError.log".

-- Configuring incomplete, errors occurred!
See also "/usr/local/share/mydumper/CMakeFiles/CMakeOutput.log".
See also "/usr/local/share/mydumper/CMakeFiles/CMakeError.log".

@jonathanvx
Copy link

I tried it, but I had to google a bit more to make it work with:

sudo apt-get install build-essential -y

@shyam1210
Copy link

Thanks. Worked fine for me

@bachko
Copy link

bachko commented Aug 23, 2016

If someone have troubles compiling - apt-get install build-essential did resolve cxx missing problem for me.

@cornernote
Copy link

@bachko - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment