{"id":4507,"date":"2023-10-11T05:48:36","date_gmt":"2023-10-11T05:48:36","guid":{"rendered":"https:\/\/truelogic.org\/wordpress\/?p=4507"},"modified":"2023-10-11T05:48:36","modified_gmt":"2023-10-11T05:48:36","slug":"glibc-version-issues-for-mysql-connector-for-c-in-linux","status":"publish","type":"post","link":"https:\/\/truelogic.org\/wordpress\/2023\/10\/11\/glibc-version-issues-for-mysql-connector-for-c-in-linux\/","title":{"rendered":"glibc Version Issues for MySql Connector for C++  in Linux"},"content":{"rendered":"\n<p>For Linux distros, the connector is available as a tar file. The default download link will always show the latest version. What is important to know is the version of glibc that it requires. In the screenshot below, the latest version (as of today), expects glibc to be 2.28. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"621\" src=\"https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/latest-940x621.png\" alt=\"\" class=\"wp-image-4508\" srcset=\"https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/latest-940x621.png 940w, https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/latest-620x410.png 620w, https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/latest-300x198.png 300w, https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/latest-768x508.png 768w, https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/latest.png 1097w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/figure>\n\n\n\n<p>If you have an older version of Linux, chances are that your installed version of glibc will be older. In which case, your C++ linker will stop with an error: <em>undefined reference to fcntl@glibc2.28<\/em><\/p>\n\n\n\n<p>To not get this error, either you will have to upgrade your OS to later version (not practical) or you have to install an older version of the Connector library. To do that, click on the Archives tab in the Connector download page and choose the Connector version that has the matching glibc version as your own OS. For eg.if you have glibc 2.27 then you need to download 8.0.31<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"460\" src=\"https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/older-940x460.png\" alt=\"\" class=\"wp-image-4512\" srcset=\"https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/older-940x460.png 940w, https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/older-620x303.png 620w, https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/older-300x147.png 300w, https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/older-768x376.png 768w, https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/older.png 1279w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/figure>\n\n\n\n<p>In order to know the installed version of glibc in your system,  use the command <em>ldd &#8211;version<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"717\" height=\"114\" src=\"https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/ldd.png\" alt=\"\" class=\"wp-image-4510\" srcset=\"https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/ldd.png 717w, https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/ldd-620x99.png 620w, https:\/\/truelogic.org\/wordpress\/wp-content\/uploads\/2023\/10\/ldd-300x48.png 300w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>For Linux distros, the connector is available as a tar file. The default download link will always show the latest version. What is important to <a class=\"mh-excerpt-more\" href=\"https:\/\/truelogic.org\/wordpress\/2023\/10\/11\/glibc-version-issues-for-mysql-connector-for-c-in-linux\/\" title=\"glibc Version Issues for MySql Connector for C++  in Linux\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":1087,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302,279],"tags":[],"class_list":["post-4507","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cc","category-mysql-programming"],"_links":{"self":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/4507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/comments?post=4507"}],"version-history":[{"count":4,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/4507\/revisions"}],"predecessor-version":[{"id":4514,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/4507\/revisions\/4514"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/media\/1087"}],"wp:attachment":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/media?parent=4507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/categories?post=4507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/tags?post=4507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}