-
-
Save nicksantamaria/66726bca586d152a3a01 to your computer and use it in GitHub Desktop.
# 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 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".
I tried it, but I had to google a bit more to make it work with:
sudo apt-get install build-essential -y
Thanks. Worked fine for me
If someone have troubles compiling - apt-get install build-essential
did resolve cxx missing problem for me.
@bachko - thanks!
cannot install libmysqlclient15-dev