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

The gcc version error #32

Closed
Gogo-scc opened this issue May 23, 2022 · 5 comments
Closed

The gcc version error #32

Gogo-scc opened this issue May 23, 2022 · 5 comments

Comments

@Gogo-scc
Copy link

I had updated GCC to 4.9,But error
[root@kafka1 OpenLogReplicator]# ./src/OpenLogReplicator
2022-05-23 05:49:48 [INFO] OpenLogReplicator v.0.9.41-beta (C) 2018-2022 by Adam Leszczynski (aleszczynski@bersler.com), see LICENSE file for licensing information, linked modules: Kafka OCI
2022-05-23 05:49:48 [ERROR] binaries are build with no regex implementation, check if you have gcc version >= 4.9
[root@kafka1 OpenLogReplicator]# gcc --version
gcc (GCC) 4.9.0
Copyright © 2014 Free Software Foundation, Inc.

@bersler
Copy link
Owner

bersler commented May 23, 2022

If the error appears - this means that the compiler you used has a regex implementation which is faulty. Please check newer gcc. Maybe you should use at least 5.0? I have not tested such old compiler, I would generally prefer something newer - or just use docker images for compilation.

@luss
Copy link

luss commented May 24, 2022 via email

@bersler
Copy link
Owner

bersler commented May 24, 2022

Thanks @luss for good suggestion. I want to add that setting up custom complicated environments it not a good idea. If you find an error I would not have patience and time to recreate the same environment in my lab to help you. Please use docker images instead. The docker image contains all commands to compile both on Debian and CentOS so you are able to extract them and even compile the code manually if needed.

@bersler bersler closed this as completed Jun 4, 2022
@luss
Copy link

luss commented Oct 11, 2022 via email

@bersler
Copy link
Owner

bersler commented Oct 21, 2022

Thanks @luss - in fact it does not make really sense to spend tens of hours to allow the code to be build with all possible compiler versions. This is waste of time. To be sure that actually all different compiler versions work I would need to repeat all test cases with all possible compiler versions. I would rather spent time on real work. We have Docker these days and you can just copy the compiled binary to any system. @Gogo-scc, in the future you can of course imagine to add support also some other OS-es like Solaris or AIX. If there is reasonable business justification of course. Today I really don't have such boxes so I can't phisically even check if the code compiles.

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

3 participants