{"id":161,"date":"2022-08-07T21:45:40","date_gmt":"2022-08-07T13:45:40","guid":{"rendered":"https:\/\/www.daogu.work\/?p=161"},"modified":"2022-08-07T21:52:39","modified_gmt":"2022-08-07T13:52:39","slug":"glibc%e7%89%88%e6%9c%ac%e5%af%bc%e8%87%b4mysql%e4%b8%8ejupyter%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8","status":"publish","type":"post","link":"https:\/\/daogu.work\/?p=161","title":{"rendered":"glibc\u7248\u672c\u5bfc\u81f4mysql\u4e0ejupyter\u65e0\u6cd5\u542f\u52a8"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u95ee\u9898\u63cf\u8ff0\uff1a<\/h2>\n\n\n\n<p>\u4eca\u5929\u60f3\u53bbmysql\u521b\u5efa\u6570\u636e\u5e93\u4e0e\u7528\u6237\u6765\u505apython\u8fde\u63a5mysql\u7684\u6d4b\u8bd5\u7684\u3002<\/p>\n\n\n\n<p>\u4e00\u5f00\u59cb\u5b89\u88c5MySQLdb\uff0c\u53d1\u73b0\u65e0\u6cd5\u5b89\u88c5\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>MySQLdb\u53ea\u652f\u6301python3.4\u53ca\u4ee5\u4e0b\uff0c\u4ee5\u4e0a\u7684\u7248\u672c\u4e0d\u652f\u6301\u4e86<\/li><li>PyMysql\u53ef\u4ee5\u652f\u6301<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b89\u88c5psycopg2<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">\u62a5\u9519\uff1a\u56e0\u4e3a\u5b89\u88c5psycopg2\u51fa\u73b0gcc failed<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u51b3\u529e\u6cd5\uff1a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install postgresql-devel\nyum install python3-devel #python3\nyum install python-devel #python2<\/code><\/pre>\n\n\n\n<p>\u540e\u6765\u51fa\u73b0\u7684\u95ee\u9898\uff0c\u5c31\u662f:<\/p>\n\n\n\n<p>mysql -u root -p \u63d0\u793a\uff1a<\/p>\n\n\n\n<p>\/l<code>ib64\/libc.so.6: version `GLIBC_2.18' not found<\/code><\/p>\n\n\n\n<p>jupyter \u542f\u52a8\u63d0\u793a\uff1a<\/p>\n\n\n\n<p>I<code>mportError: \/lib64\/libc.so.6: version `GLIBC_2.18' not found (required by \/lib64\/libstdc++.so.6)<\/code><\/p>\n\n\n\n<p>\u800c\u4e14jupyter\u65b0\u5efanotebook\u4e4b\u540e\uff0c\u4e00\u76f4\u663e\u793a\u65e0\u6cd5\u8fde\u63a5\u5185\u6838\uff0c\u6216\u8005\u6b63\u5728\u8fde\u63a5\u5185\u6838\uff0c\u53cd\u6b63\u4ee3\u7801\u662f\u7070\u8272\u7684\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u51b3\u65b9\u6848\uff1a<\/h2>\n\n\n\n<p>\u66f4\u65b0glibc 2.18<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.\u4e0b\u8f7d\u89e3\u538b<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/ftp.gnu.org\/gnu\/glibc\/glibc-2.18.tar.gz\ntar -zxvf glibc-2.18.tar.gz\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><a><\/a>2.\u7f16\u8bd1\u5b89\u88c5<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>cd glibc-2.18 &amp;&amp; mkdir build\ncd build\n..\/configure --prefix=\/usr --disable-profile --enable-add-ons --with-headers=\/usr\/include --with-binutils=\/usr\/bin\nmake &amp;&amp; make install\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3.\u9a8c\u8bc1<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@VM_0_7_centos build]# ll \/lib64\/libc.so.6\nlrwxrwxrwx 1 root root 12 Mar 25 09:01 \/lib64\/libc.so.6 -> libc-2.18.so<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"https:\/\/hk.pythontechworld.com\/article\/detail\/X4ewUOjNoxdE\">\u89e3\u6c7a &#8220;\/lib64\/libc.so.6: version `GLIBC_2.18&#8242; not found (required by \/lib64\/libstdc++.so.6)&#8221;<\/a><\/li><li><a href=\"https:\/\/www.cxymm.net\/article\/nianqusuifeng\/88785720\">centos7\u5b89\u88c5deno\u65f6\uff0c\u51fa\u73b0version `GLIBC_2.18&#8242; not found_\u535a\u5ba2-\u7a0b\u5e8f\u5458\u79d8\u5bc6<\/a><\/li><li><a href=\"https:\/\/www.cnblogs.com\/yuhou\/p\/10868831.html\">PyMySQL\u548cMySQLdb\u7684\u533a\u522b<\/a><\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u63cf\u8ff0\uff1a \u4eca\u5929\u60f3\u53bbmysql\u521b\u5efa\u6570\u636e\u5e93\u4e0e\u7528\u6237\u6765\u505apython\u8fde\u63a5mysql\u7684\u6d4b\u8bd5\u7684\u3002 \u4e00\u5f00\u59cb\u5b89\u88c5MySQLd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[34,7],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-softinstall","tag-jupyter","tag-python"],"_links":{"self":[{"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daogu.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161"}],"version-history":[{"count":3,"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":165,"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions\/165"}],"wp:attachment":[{"href":"https:\/\/daogu.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daogu.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daogu.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}