Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't compile on Centos 7 #5

Closed
rhunton opened this issue Dec 16, 2019 · 2 comments
Closed

Won't compile on Centos 7 #5

rhunton opened this issue Dec 16, 2019 · 2 comments

Comments

@rhunton
Copy link

rhunton commented Dec 16, 2019

Could you please provide detailed instructions on how to build this? Our developers have been unable to compile this successfully. I'm surprised that a feature that provides such important functionality for Proxysql isn't more mature and fully integrated into the product ecosystem. We haven't been able to locate any documentation for implementation either other than a couple of slide presentations.

Thank you.

The last error we encountered was:
dev1 proxysql_mysqlbinlog-master]$ make g++ -o proxysql_binlog_reader proxysql_binlog_reader.cpp -std=c++11 -ggdb ./libslave/libslave.a ./libev/.libs/libev.a libdaemon/libdaemon/.libs/libdaemon.a -I./libslave/ -I./libev/ -I./libdaemon/ -rdynamic -lz -ldl -lssl -lcrypto -lpthread -lboost_system -lrt -Wl,-Bstatic -lmysqlclient -Wl,-Bdynamic -ldl -lssl -lcrypto -pthread /usr/bin/ld: cannot find -lmysqlclient collect2: error: ld returned 1 exit status make: *** [proxysql_binlog_reader] Error 1

@altmannmarcelo
Copy link

Hi @rhunton

Can you please try:

ln -s /usr/lib64/mysql/libmysqlclient.a /usr/lib64/libmysqlclient.a

@rhunton
Copy link
Author

rhunton commented Dec 16, 2019

Thank you, that seems to have worked!

@rhunton rhunton closed this as completed Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants