[root@gumis02 ~]# gcc -v
\nu4f7fu7528u5185u5efa specsu3002
\nCOLLECT_GCC=gcc
\nCOLLECT_LTO_WRAPPER=\/usr\/local\/libexec\/gcc\/x86_64-unknown-linux-gnu\/5.3.0\/lto-wrapper
\nu76eeu6807uff1ax86_64-unknown-linux-gnu
\nu914du7f6eu4e3auff1a..\/configure -enable-checking=release -enable-languages=c,c++ -disable-multilib
\nu7ebfu7a0bu6a21u578buff1aposix
\ngcc u7248u672c 5.3.0 (GCC)\n[root@gumis02 ~]# strings \/usr\/lib64\/libstdc++.so.6 | grep GLIBC
\nGLIBCXX_3.4
\nGLIBCXX_3.4.1
\nGLIBCXX_3.4.2
\nGLIBCXX_3.4.3
\nGLIBCXX_3.4.4
\nGLIBCXX_3.4.5
\nGLIBCXX_3.4.6
\nGLIBCXX_3.4.7
\nGLIBCXX_3.4.8
\nGLIBCXX_3.4.9
\nGLIBCXX_3.4.10
\nGLIBCXX_3.4.11
\nGLIBCXX_3.4.12
\nGLIBCXX_3.4.13
\nGLIBCXX_3.4.14
\nGLIBCXX_3.4.15
\nGLIBCXX_3.4.16
\nGLIBCXX_3.4.17
\nGLIBCXX_3.4.18
\nGLIBCXX_3.4.19
\nGLIBCXX_3.4.20
\nGLIBCXX_3.4.21
\nGLIBC_2.3
\nGLIBC_2.2.5
\nGLIBC_2.3.2
\nGLIBCXX_FORCE_NEW
\nGLIBCXX_DEBUG_MESSAGE_LENGTH
\n[root@gumis02 ~]# ^C
\n<\/code><\/pre>\n<\/p>\n\u53c2\u770b\u4ee5\u4e0b\u4e09\u4e2a\u94fe\u63a5\u7684\uff1a<\/p>\n
CentOS6.6\u5347\u7ea7GCCG++\u5b89\u88c5gcc4.9.0linux\u4e0b\u5b89\u88c5\u6216\u5347\u7ea7GCC4.8\uff0c\u4ee5\u652f\u6301C++11\u6807\u51c6<\/p>\n
\u5c3d\u7ba1\u770b\u6211\u5199\u7684\u6587\u7ae0\u4e0d\u957f\uff0c\u800c\u4e14\u5728\u5b89\u88c5\u7684\u8fc7\u7a0b\u4e2d\uff0c\u9047\u89c1\u4e86\u597d\u591a\u7684\u95ee\u9898\uff0c\u4e3b\u8981\u662f\u5bf9linux\u7cfb\u7edf\u4e0d\u719f\u6089\uff0c\u4e4b\u540e\u7f51\u4e0a\u6709\u597d\u591a\u7684\u6587\u7ae0\u90fd\u5f88\u987a\u5229\uff0c\u8f7b\u63cf\u6de1\u5199\u5c31\u5b89\u88c5\u6210\u529f\u4e86\uff0c\u6211\u662f\u5728\u9047\u89c1\u4e86\u5404\u7c7b\u95ee\u9898\u540e\uff0c\u603b\u7ed3\u4e86\u81ea\u5df1\u7684\u5224\u5b9a\uff0c\u8ba4\u4e3a\u524d\u9762\u4e09\u4e2a\u6587\u7ae0\u7684\u94fe\u63a5\u89e3\u51b3\u4e86\u5927\u90e8\u4efd\u7684\u4e1c\u897f\u3002\u6211\u5b89\u88c5gcc\u7684\u65f6\u95f4\u7528\u4e861\u5929\u534a\u7684\u65f6\u95f4\uff0c\u56fd\u4ea7\u7684linux\u8fd8\u6709\u597d\u591a\u8def\u8981\u8d70\u3002<\/p>\n
\u4e3a\u4f55\u6211\u9009\u62e9\u4e86gcc5.3.0\u7248\u672c\uff0c\u5176\u4ed6\u7684\u7248\u672c\u6211\u4e5f\u8bd5\u8fc7\uff0c\u8bd5\u4e86\u4e09\u4e2a\u7248\u672c\uff086.1.0,6.4.0\uff0c7.3.0\uff09\u90fd\u6ca1\u6709\u5b89\u88c5\u6210\u529f\uff0c\u5404\u6709\u5404\u7684\u95ee\u9898\uff0c\u6700\u7ec8\u9009\u62e9\u6bd4\u8f83\u7d27\u97604.4.7\u7248\u672c\u7684\u65f6\u95f4\u70b95.3.0\u7248\u672c\u5b89\u88c5\u6210\u529f\u4e86\uff0c\u5176\u4e3b\u8981\u8bf1\u56e0\u53ef\u80fd\u662f\u4e2d\u6807\u9e92\u9e9f\u7684linux\u5185\u6838\u7248\u672c\u4e0d\u9ad8\uff0c\u597d\u591a\u65b0\u7684\u5e93\u5c31\u4f1a\u7f16\u8bd1\u4e0d\u6210\u529f\uff0c\u7f3a\u4e4f\u4e1c\u897f\u3002<\/p>\n
**\u6ce8\u610f:**<\/p>\n
\u5b89\u88c5gcc\u5f88\u6709\u53ef\u80fd\u4f1a\u9020\u6210\u4f60\u7684linux\u7cfb\u7edf\u542f\u52a8\u4e0d\u4e86\uff0c\u8bf7\u8c28\u614e\u3002<\/p>\n
\u6700\u540e\u9a8c\u8bc1\u7ed3\u679c\uff0c\u8f93\u5165dotnet--info<\/p>\n
\u51fa\u73b0\u65b0\u7684\u9519\u8bef\u63d0\u793a\uff1alibc.so.6:version`GLIBC_2.14'notfound\u3002\u4e0b\u4e00\u6b65\u5c31\u662f\u6765\u89e3\u51b3\u8fd9\u4e2a\u9519\u8bef<\/p>\n
\u9519\u8bef\uff1alibc.so.6:version`GLIBC_2.14'notfound<\/p>\n
\u7f18\u7531\u662f\u7cfb\u7edf\u7684glibc\u7248\u672c\u592a\u4f4e\uff0c\u8f6f\u4ef6\u7f16\u8bd1\u65f6\u4f7f\u7528\u4e86\u8f83\u9ad8\u7248\u672c\u7684glibc\u5f15\u53d1\u7684\u3002<\/p>\n
\u67e5\u770b\u7cfb\u7edfglibc\u652f\u6301\u7684\u7248\u672c<\/p>\n
\n
[root@gumis02 dotnet]# strings \/lib64\/libc.so.6 |grep GLIBC_
\nGLIBC_2.2.5
\nGLIBC_2.2.6
\nGLIBC_2.3
\nGLIBC_2.3.2
\nGLIBC_2.3.3
\nGLIBC_2.3.4
\nGLIBC_2.4
\nGLIBC_2.5
\nGLIBC_2.6
\nGLIBC_2.7
\nGLIBC_2.8
\nGLIBC_2.9
\nGLIBC_2.10
\nGLIBC_2.11
\nGLIBC_2.12
\nGLIBC_PRIVATE
\n<\/code><\/pre>\n<\/p>\n\u53ef\u4ee5\u770b\u89c1\u7cfb\u7edf\u9ed8\u8ba4\u662f2.12\uff0c\u987b\u8981\u5b89\u88c5\u66f4\u9ad8\u7684\u7248\u672c\u3002<\/p>\n
\u540c\u6837\uff0c\u6ca1\u6709\u529e\u6cd5\u501f\u52a9rpm\u6216yuminstall\u6765\u5b89\u88c5\uff0c\u53ea\u80fd\u624b\u5de5\u6e90\u4ee3\u7801\u7684\u5f62\u5f0f\u5b89\u88c5\u3002<\/p>\n
\u5728\u5b89\u88c5glibc\u5e93\u7684\u65f6\u4faf\uff0c\u662f\u5341\u5206\u5371\u9669\u7684\uff0c\u8bf7\u614e\u91cd\u5904\u7406\uff0c\u4e00\u4e0d\u7559\u795e\u5c31\u7cfb\u7edf\u8fd0\u884c\u4e0d\u4e86\u3002<\/p>\n
\u6700\u5f00\u59cb\u6211\u9009\u62e9\u4e86\u5b89\u88c52.14\u8fd9\u4e2a\u7248\u672c\u7684glibc\u5e93\uff0c\u5e76\u4e14\u7531\u4e8e\u5728\u4e0a\u4e00\u6b65\u4e2d\uff0c\u6211\u5b89\u88c5\u4e86gcc5.3.0\u7248\u672c\uff0c\u4f1a\u5728\u7f16\u8bd1\u65f6\u63d0\u793agccold.\u6240\u4ee5\u6211\u9009\u62e9\u4e86\u5176\u4ed6\u7684\u7248\u672c\u6765\u5b89\u88c5\u3002\u5728\u5b89\u88c5glibc\u5e93\u5404\u7c7b\u7248\u672c\u90fd\u5931\u8d25\uff0c\u76f4\u9053\u9009\u62e9\u4e862.16.0\u8fd9\u4e2a\u7248\u672c\u624d\u5b89\u88c5\u6210\u529f\uff0c\u6bcf\u6b21\u5b89\u88c5\u91cd\u8bd5\u90fd\u987b\u89811\u52302\u4e2a\u5c0f\u65f6\uff0c\u7279\u522b\u7684\u5386\u65f6\u95f4\uff1a<\/p>\n
\u4e0b\u8f7dglibc2.16.0\u6e90\u4ee3\u7801\uff0c\u6ca1\u6709\u901a\u8fc7wget\u547d\u4ee4\u6765\u4e0b\u8f7d\uff0c\u7528\u6b64\u547d\u4ee4\u4ecd\u7136\u663e\u793a\u62a5\u9519\u4e0b\u8f7d\u4e0d\u4e86\uff0c\u7136\u540e\u7528\u6d4f\u89c8\u5668\u4e0b\u8f7d\u4e86\uff0c<\/p>\n
\u987b\u8981\u4e0b\u8f7d\u4e24\u4e2a\u6587\u4ef6\uff1aglibc-2.16.0.tar.gz\u548c<\/p>\n
glibc-ports-2.16.0.tar.gz.<\/p>\n
\u4e0b\u8f7d\u597d\uff0c\u4e4b\u540e\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<\/p>\n
\n
tar -xvf glibc-2.16.0.tar.gz
\ntar -xvf glibc-ports-2.16.0.tar.gz
\nmv glibc-ports-2.16.0 glibc-2.16.0\/ports\nmkdir glibc-build-2.16.0
\ncd glibc-build-2.16.0\n..\/glibc-2.16.0\/configure --prefix=\/usr --disable-profile --enable-add-ons --with-headers=\/usr\/include --with-binutils=\/usr\/bin\nmake\nmake install\n<\/code><\/pre>\n<\/p>\n\u5176\u4e2d\u5728make\u7684\u65f6\u4faf\u53ef\u80fd\u4f1a\u63d0\u793a\u4e00\u4e2a\u9519\u8bef\uff0cLD_LIBRARY_PATH\u7684\u4e00\u4e2a\u9519\u8bef\u767e\u5ea6\u7f51\u76d8LINUX\uff0c\u7f18\u7531LD_LIBRARY_PATH\u7cfb\u7edf\u53d8\u91cf\u7684\u503c\uff0c\u4e0d\u80fd\u662f:\u7ed3\u5c3e\u4e2d\u6807linux<\/strong>\uff0c\u987b\u8981\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u548c\u4fee\u8865<\/p>\n\n
[root@gumis02 PublishOutput]# echo $LD_LIBRARY_PATH
\n\/opt\/dmdbms\/bin
\n[root@gumis02 PublishOutput]# export LD_LIBRARY_PATH=\/opt\/dmdbms\/bin
\n<\/p>\n[root@gumis02 PublishOutput]#
\n<\/code><\/pre>\n<\/p>\n
\u4e4b\u540e\u518d\u6267\u884cmakeinstall.<\/p>\n
\u5047\u5982\u5b89\u88c5\u6210\u529f\uff0c\u770b\u4e0bglibc\u7684\u5171\u4eab\u5e93\uff1a<\/p>\n
\u53ef\u4ee5\u770b\u89c12.12\u7684\u65e7\u5e93\u6587\u4ef6\u8fd8\u5728\uff0c\u591a\u4e862.16\u7248\u672c\u7684\u5e93\u6587\u4ef6\uff0c\u5e76\u4e14\u8f6f\u94fe\u63a5\u6587\u4ef6\u5168\u90e8\u6307\u5411\u4e862.16\u7248\u672c<\/p>\n
\n
[root@gumis02 DemoNetCore]# ll \/lib64\/libc*
\n-rwxr-xr-x 1 root root 1926520 2u6708 25 2016 \/lib64\/libc-2.12.so
\n-rwxr-xr-x 1 root root 10736842 5u6708 10 10:14 \/lib64\/libc-2.16.so
\nlrwxrwxrwx. 1 root root 18 7u6708 20 2017 \/lib64\/libcap-ng.so.0 -> libcap-ng.so.0.0.0
\n-rwxr-xr-x 1 root root 21160 3u6708 6 2014 \/lib64\/libcap-ng.so.0.0.0
\nlrwxrwxrwx. 1 root root 14 7u6708 20 2017 \/lib64\/libcap.so.2 -> libcap.so.2.16
\n-rwxr-xr-x 1 root root 19016 2u6708 27 2014 \/lib64\/libcap.so.2.16
\nlrwxrwxrwx. 1 root root 19 7u6708 20 2017 \/lib64\/libcgroup.so.1 -> libcgroup.so.1.0.40
\n-rwxr-xr-x 1 root root 103096 7u6708 24 2015 \/lib64\/libcgroup.so.1.0.40
\n-rwxr-xr-x. 1 root root 197064 2u6708 25 2016 \/lib64\/libcidn-2.12.so
\n-rwxr-xr-x 1 root root 277593 5u6708 10 10:14 \/lib64\/libcidn-2.16.so
\nlrwxrwxrwx 1 root root 15 5u6708 10 10:14 \/lib64\/libcidn.so.1 -> libcidn-2.16.so
\nlrwxrwxrwx. 1 root root 17 7u6708 20 2017 \/lib64\/libcom_err.so.2 -> libcom_err.so.2.1
\n-rwxr-xr-x 1 root root 17256 7u6708 26 2015 \/lib64\/libcom_err.so.2.1
\n-rwxr-xr-x 1 root root 43392 2u6708 25 2016 \/lib64\/libcrypt-2.12.so
\n-rwxr-xr-x 1 root root 163568 5u6708 10 10:13 \/lib64\/libcrypt-2.16.so
\nlrwxrwxrwx. 1 root root 22 7u6708 20 2017 \/lib64\/libcryptsetup.so.1 -> libcryptsetup.so.1.1.0
\n-rwxr-xr-x 1 root root 97536 10u6708 20 2014 \/lib64\/libcryptsetup.so.1.1.0
\nlrwxrwxrwx 1 root root 16 5u6708 10 10:14 \/lib64\/libcrypt.so.1 -> libcrypt-2.16.so
\nlrwxrwxrwx 1 root root 12 5u6708 10 10:14 \/lib64\/libc.so.6 -> libc-2.16.so\n<\/code><\/pre>\n<\/p>\n\u4e0a\u8ff0\u547d\u4ee4\u53c2\u8003\u4e24\u4e2a\u7f51\u5740\uff1a\u89e3\u51b3\/lib64\/libc.so.6:version`GLIBC_2.14'notfound\u548cLinux\/CentOS\u5347\u7ea7C\u57fa\u672c\u8fd0\u884c\u5e93CLIBC\u7684\u6ce8\u610f\u4e8b\u9879\uff08\u5f53\u60f3\u89e3\u51b3GLIBC_2.x\u627e\u4e0d\u5230\u7684\u7f16\u8bd1\u95ee\u9898\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"
\u6211\u4f7f\u7528\u662f\u4e2d\u6807\u9e92\u9e9f\u7cfb\u7edf\uff0c\u6839\u636e\u547d\u4ee4\u7684\u65b9\u5f0f\uff0c\u7c7b\u4f3credhat\u7684\u53d1\u884c\u7248\uff0c\u4f46\u662f\u6839\u636eredhat\u7684\u5b89\u88c5\u65b9\u5f0f\uff0c\u65e0\u6cd5\u5b89\u88c5\u3002\u7b49\u7b49\u90fd\u5b89\u88c5\u4e0d\u4e86\uff0c\u5728\u4e2d\u6807\u9e92\u9e9f\u7684\u7cfb\u7edf\u4e0a\u90fd\u6ca1\u6709\u7528\u30025.3.0\u7248\u672c\u5b89\u88c5\u6210\u529f\u4e86\uff0c\u5176\u4e3b\u8981\u539f\u56e0\u53ef\u80fd\u662f\u4e2d\u6807\u9e92\u9e9f\u7684linux\u5185\u6838\u7248\u672c\u4e0d\u9ad8\uff0c\u5f88\u591a\u65b0\u7684\u5e93\u90fd\u4f1a\u7f16\u8bd1\u4e0d\u6210\u529f\uff0c\u7f3a\u5c11\u4e1c\u897f\u3002<\/p>\n","protected":false},"author":1,"featured_media":295248,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[5256,5260,5259,5257,5258],"class_list":["post-295247","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-cazbz","tag-daz","tag-rfxb","tag-zbqlxt","tag-ydmbyaz"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/295247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=295247"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/295247\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/295248"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=295247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=295247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=295247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}