Error make 0.5.2 on Centos 6.4
I had installed
1) yum install cmake kernel-devel kernel-headers pcre-devel glib2-devel mysql-devel zlib-dev
2) cmake
-- Using mysql-config: /usr/bin/
-- Found MySQL: /usr/include/mysql, /usr/lib64/
-- checking for module 'libpcre'
-- found libpcre, version 7.8
-- Found PCRE: /usr/include
WARNINGUnable to find Sphinx documentation generator
-- -------
-- MYSQL_CONFIG = /usr/bin/
-- CMAKE_INSTALL_
-- BUILD_DOCS = ON
-- RUN_CPPCHECK = OFF
-- Change a values with: cmake -D<Variable>
-- -------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/
2) make
canning dependencies of target mydumper
[ 20%] Building C object CMakeFiles/
[ 40%] Building C object CMakeFiles/
In file included from /home/user/
/usr/include/
In file included from /home/user/
/usr/include/
make[2]: *** [CMakeFiles/
make[1]: *** [CMakeFiles/
make: *** [all] Error 2
What is the error about?
Would like to test mydumper and myloader.
Regards
Charles Hii
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
i fixed this by grabbing hash.h from source and copying it to the include directory,
i am running mysql 5.6.10, so grab the source for your version.
wget http://
tar zxvf mysql-5.6.10.tar.gz
cp mysql-5.
re-run make.
Revision history for this message
|
#2 |
Hi Andrewk,
Thanks for the reply.
I believe your solution should work since previous error is missing hash.h file.
I cannot reproduce the same error since I had uninstall the mysql and re-install it.
But i try it again and get the following.
CentOS 6.5
MySQL 5.5.35
# cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- 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/
-- Found MySQL: /usr/include/mysql, /usr/lib64/
-- Found ZLIB: /usr/lib64/libz.so
-- checking for one of the modules 'glib-2.0'
-- found glib-2.0, version 2.26.1
-- checking for one of the modules 'gthread-2.0'
-- found gthread-2.0, version 2.26.1
-- checking for module 'libpcre'
-- found libpcre, version 7.8
-- Found PCRE: /usr/include
WARNINGUnable to find Sphinx documentation generator
-- -------
-- MYSQL_CONFIG = /usr/bin/
-- CMAKE_INSTALL_
-- BUILD_DOCS = ON
-- RUN_CPPCHECK = OFF
-- Change a values with: cmake -D<Variable>
-- -------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/
# make
Scanning dependencies of target mydumper
[ 20%] Building C object CMakeFiles/
[ 40%] Building C object CMakeFiles/
[ 60%] Building C object CMakeFiles/
[ 80%] Building C object CMakeFiles/
Linking C executable mydumper
CMakeFiles/
/home/user/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
/home/user/
CMakeFiles/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
CMakeFiles/
/home/user/
CMakeFiles/
/home/user/
CMakeFiles/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
/home/user/
CMakeFiles/
/home/user/
collect2: ld returned 1 exit status
make[2]: *** [mydumper] Error 1
make[1]: *** [CMakeFiles/
make: *** [all] Error 2
Any idea?
Regards
Charles
Revision history for this message
|
#3 |
Hi Charles can you provide the output of
rpm -qa | egrep -i "mysql|percona"
and
ls -l /usr/lib64/mysql
Revision history for this message
|
#4 |
Hi there
Just received this same error on CentOS 6.5 with mydumper-0.6.1 and the Oracle MySQL repo.
Output as requested...
# rpm -qa | egrep -i "mysql|percona"
mysql-community
mysql-community
mysql-community
mysql-community
mysql-community
mysql-community
mysql-community
# ls -l /usr/lib64/mysql
total 33152
-rw-r--r-- 1 root root 19457456 Jan 14 15:55 libmysqlclient.a
lrwxrwxrwx 1 root root 16 Mar 10 16:54 libmysqlclient_r.a -> libmysqlclient.a
lrwxrwxrwx 1 root root 17 Mar 10 16:54 libmysqlclient_r.so -> libmysqlclient.so
lrwxrwxrwx 1 root root 26 Mar 2 22:41 libmysqlclient_
-rwxr-xr-x 1 root root 2820570 Jan 14 15:59 libmysqlclient_
lrwxrwxrwx 1 root root 20 Mar 2 22:40 libmysqlclient_
lrwxrwxrwx 1 root root 24 Mar 2 22:40 libmysqlclient_
lrwxrwxrwx 1 root root 20 Mar 10 16:54 libmysqlclient.so -> libmysqlclient.
lrwxrwxrwx 1 root root 24 Mar 2 22:41 libmysqlclient.
-rwxr-xr-x 1 root root 2788332 Jan 14 15:59 libmysqlclient.
lrwxrwxrwx 1 root root 24 Mar 2 22:40 libmysqlclient.
-rwxr-xr-x 1 root root 8854601 Jan 14 15:55 libmysqlclient.
-rw-r--r-- 1 root root 14814 Jan 14 15:54 libmysqlservices.a
drwxr-xr-x 3 root root 4096 Mar 2 22:40 plugin
Hope this is useful
Revision history for this message
|
#5 |
If by the same error you mean the hash
/usr/include/
this is because of binlog.c that is linked to a non public API that was removed in 5.6. We still didn't decide what to do about, but you have two options, as mentioned above you will need to use the source code, or if you don't use mydumper to take binlog backups you can compile from this branch:
bzr branch lp:~perconardba/mydumper/0.6.1-nobinlog
is the same code as 0.6.1 but binlog options were removed.
Can you help with this problem?
Provide an answer of your own, or ask Charles for more information if necessary.