{"id":295247,"date":"2024-12-29T12:10:26","date_gmt":"2024-12-29T04:10:26","guid":{"rendered":"https:\/\/lrxjmw.cn\/zbqlgjfwqbla.html"},"modified":"2024-12-29T12:10:26","modified_gmt":"2024-12-29T04:10:26","slug":"zbqlgjfwqbla","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/zbqlgjfwqbla.html","title":{"rendered":"\u4e2d\u6807\u9e92\u9e9f\u9ad8\u7ea7\u670d\u52a1\u5668\u7248Linux\u5b89\u88c5.NET Core\u7684\u8be6\u7ec6\u6b65\u9aa4\u4e0e\u7ecf\u9a8c\u5206\u4eab"},"content":{"rendered":"

\n

\u5728\u6b64\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u611f\u8c22\u4e4b\u524d\u7684\u524d\u8f88\u5199\u7684\u6587\u7ae0\uff0c\u5e2e\u52a9\u6211\u5c11\u8d70\u4e86\u5f88\u591a\u7684\u5f2f\u8def\u3002\n\u6700\u540e\u8bf4\u660e\uff0c\u80fd\u5728\u56fd\u5185\u7684linux\u53d1\u884c\u7248\u8fd0\u884cdotnet core\u7a0b\u5e8f\uff0c\u5728\u5176\u4ed6\u7684\u5927\u724clinux\u53d1\u884c\u7248\u5c31\u90fd\u4e0d\u662f\u95ee\u9898\u3002
\n<\/code><\/pre>\n<\/p>\n

\u524d\u671f\u6253\u7b97\u4e2d\u6807\u9e92\u9e9f\u4e2d\u7ea7\u670d\u52a1\u5668\u7248linux\u597d\u7684\u8010\u5fc3\u6d88\u6691\u7684\u5564\u9152\u767e\u5ea6\u548cgoogle<\/p>\n

\u91cc\u9762\u51e0\u70b9\u662f\u5fc5\u5907\u7684\uff0c\u7531\u4e8e\u5728\u6211\u7684\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u6ca1\u6709\u7f51\u4e0a\u5199\u7684\u8d34\u5b50\u8fd9\u4e48\u4e24\u4e09\u6b65\uff0c\u4e00\u5e06\u98ce\u987a\u7684\u5c31\u5e03\u7f72\u6210\u529f\u4e86\uff0c\u6211\u4ece\u5f00\u59cb\u5e03\u7f72\u5230\u6d4b\u8bd5\u6210\u529f\u603b\u5171\u8017\u8d39\u4e86\u4e00\u4e2a\u793c\u62dc\u7684\u65f6\u95f4\uff0c\u6211\u7684\u4e4b\u524d\u6587\u7ae0\u4e5f\u53ef\u80fd\u5728\u4e0a\u6b21\u5e03\u7f72\u540c\u6837\u7684\u73af\u5883\uff0c\u4f1a\u6709\u6240\u4e0d\u540c\u7684\u95ee\u9898\u3002<\/p>\n

\u5b89\u88c5.NETCore<\/p>\n

\u6309\u7167NetCore\u8c37\u6b4clinux\u63a8\u8350\u7684\u5f62\u5f0f\u5b89\u88c5\uff0c\u53ea\u6709redhat,centos,ubuntu,debian,fedora\u7b49\u5927\u724c\u7684linux\u53d1\u884c\u7248\u5b89\u88c5\uff0c\u53ef\u4ee5\u770b\u8c37\u6b4c\u7684\u6587\u7ae0\u6765\u67e5\u770b\u652f\u6301\u7684linux\u548c\u5b89\u88c5\u65b9\u6cd5Getstartedwith.NETin10minutes\uff0c\u5bf9\u4e8e\u56fd\u5916\u7684linux\u53d1\u884c\u7248\uff0c\u6ca1\u6709\u660e\u6670\u7684\u6307\u793a\u3002\u6211\u4f7f\u7528\u662f\u4e2d\u6807\u9e92\u9e9f\u7cfb\u7edf\uff0c\u4f9d\u7167\u547d\u4ee4<\/a>\u7684\u5f62\u5f0f\uff0c\u7c7b\u4f3credhat\u7684\u53d1\u884c\u7248\uff0c\u5e76\u4e14\u4f9d\u7167redhat\u7684\u5b89\u88c5\u65b9\u6cd5\uff0c\u96be\u4ee5\u5b89\u88c5\u3002\u6240\u4ee5\u652f\u6301\u91c7\u53d6\u6700\u539f\u59cb\u7684\u65b9\u6cd5\u6765\u5b89\u88c5\uff0c\u538b\u7f29\u5305\u5b89\u88c5\u3002<\/p>\n

\u91c7\u7528\u538b\u7f29\u5305\u5b89\u88c5\u65b9\u6cd5<\/p>\n

\u4e0b\u8f7ddotnet\u538b\u7f29\u5305\uff0c\u6253\u5f00dotnetlinux\u5b98\u7f51\u4e0b\u8f7d\u5730\u5740\u9009\u62e9linuxrunapp\uff0c\u5230\u5199\u6587\u7ae0\u7684\u65f6\u4faf\uff0c\u76ee\u524d\u662f2.0.7\u7248\u672c\uff0c\u6709\u4e2ainstall.netcoreruntime2.0.7Package.tar.gzdownload\u7684\u94fe\u63a5\uff0c\u70b9\u51fb\u4e0b\u8f7d\uff0c\u4e4b\u540e\u5c06\u6587\u4ef6\u590d\u5236\u5230\u670d\u52a1\u5668\u4e0a\u3002<\/p>\n

\u4ee5\u4e0b\u662f\u6211\u7684\u5b89\u88c5\u6b65\u9aa4\uff0c\u4e0a\u9762\u7684\u6587\u4ef6\u5939\u8def\u5f84\uff0c\u53ef\u4ee5\u5b89\u88c5\u5927\u5bb6\u81ea\u5df1\u7684\u540d\u5b50\u6765\u6784\u5efa\uff0c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

\u5728home\u6784\u5efaNetCoreSDK\u6587\u4ef6\u5939\uff0c\u5e76\u5c06\u4e0a\u6b65\u4e0b\u8f7d\u597d\u7684\u6587\u4ef6\u590d\u5236\u5230\u8fd9\u4e2a\u6587\u4ef6\u5939\u4e2d\u91cd\u547d\u540d\u6587\u4ef6\u4e3adotnet.tar.gz\u5728NetCoreSDK\u6587\u4ef6\u5939\u4e2d\u53f3\u952e\u6253\u5f00\u7ec8\u7aef\uff0c\u540e\u7eed\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1ayuminstalllibunwindlibicu(\u5b89\u88c5libicu\u4f9d\u8d56\uff0c\u5b9e\u9645\u4e0a\u4f1a\u5b89\u88c5\u5931\u8d25\u7684\uff0c\u540e\u7eed\u987b\u8981\u901a\u8fc7\u81ea\u52a8\u5b89\u88c5\u4fee\u8865)mkdir-p\/home\/dotnet&&tarzxf\/home\/NetCoreSdk\/dotnet.tar.gz-C\/home\/dotnet\uff08\u6b64\u547d\u4ee4\u9996\u5148\u5728home\u4e0b\u521b\u5efa\u4e00\u4e2adotnet\u6587\u4ef6\u5939\uff0c\u4e4b\u540e\u89e3\u538bdotnet.tar.gz\u6587\u4ef6\u5230home\/dotnet\u6587\u4ef6\u4e2d\uff09ln-s\/home\/dotnet\/dotnet\/usr\/local\/bin\uff08\u6b64\u547d\u4ee4\u662f\u521b\u5efa\u8f6f\u94fe\u63a5\u7684\uff0c\u53ef\u4ee5\u4fc3\u4f7fdotnet\u547d\u4ee4\u6ce8\u518c\u5230\u5168\u5c40\uff0c\u5728\u4efb\u4f55\u6587\u4ef6\u5939\u4e2d\u90fd\u80fd\u8fa8\u8bc6dotnet\u547d\u4ee4\uff09<\/p>\n

\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u662f\u6211\u5728\u53c2\u8003Linux<\/a>\u5b89\u88c5.Netcore\u73af\u5883\u5e76\u8fd0\u884c\u9879\u76ee\u8fd9\u7bc7\u6587\u7ae0\uff0c\u6309\u7167\u81ea\u5df1\u670d\u52a1\u5668\u7684\u60c5\u51b5\u5728\u505a\u7684\u3002<\/p>\n

\u4e4b\u540e\u8f93\u5165dotnet--info\u6765\u9a8c\u8bc1\u662f\u5426\u6210\u529f<\/p>\n

\n

dotnet --info
\n<\/code><\/pre>\n<\/p>\n

\u5b89\u88c5\u6210\u529f\u540e\u4e2d\u6807linux<\/strong>\uff0c\u9a8c\u8bc1<\/p>\n

\u8f93\u5165dotnet--info<\/p>\n

\u51fa\u73b0\u9519\u8bef\u63d0\u793a\uff1a\/usr\/lib\/libstdc++.so.6:version`GLIBCXX_3.4.18'notfound<\/p>\n

\u9519\u8bef\uff1alibstdc++.so.6:version`GLIBCXX_3.4.18'notfound<\/p>\n

\u7f18\u7531\u662f\u7cfb\u7edf\u7684gcc\u7248\u672c\u592a\u4f4e\uff0c\u67e5\u8be2\u4e86\u4e0b\u7cfb\u7edfgcc\u7684\u7248\u672c\u663e\u793a4.4.7<\/p>\n

\n

gcc -v
\n<\/code><\/pre>\n<\/p>\n

\u67e5\u770bgcc\u73b0\u6709\u7684\u7248\u672c\u5e93\uff0c<\/p>\n

\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
\nGLIBC_2.3
\nGLIBC_2.2.5
\nGLIBC_2.3.2
\n

\u4e2d\u6807linux_\u4e2d\u6807\u666e\u534elinux\u4e0b\u8f7d_\u4e2d\u6807\u9e92\u9e9flinux\u4e0b\u8f7d<\/p>\nGLIBCXX_FORCE_NEW
\n<\/code><\/pre>\n<\/p>\n

\u663e\u793a\u6ca1\u6709GLIBCXX_3.4.18\u7684\u5e93\uff0c\u6240\u4ee5\u6211\u4eec\u987b\u8981\u5347\u7ea7GCC\u7684\u7248\u672c\u3002\u4e2d\u6807\u9e92\u9e9f\u7684linux\u7cfb\u7edf\u7684\u5305\u7ba1\u7406\u4e0d\u662f\u975e\u5e38\u597d\u7528\uff0c\u5728\u7f51\u4e0a\u80fd\u627e\u5230\u5404\u7c7b\u5305\u5b89\u88c5\u7684\uff0c\u5982rpm\u5305\uff0cyuninstall\u7b49\u7b49\u90fd\u5b89\u88c5\u4e0d\u4e86\uff0c\u5728\u4e2d\u6807\u9e92\u9e9f\u7684\u7cfb\u7edf\u4e0a\u90fd\u6ca1\u6709\u7528\u3002\u6240\u4ee5\u6700\u540e\u53ea\u80fd\u91c7\u7528\u6e90\u4ee3\u7801\u5f62\u5f0f\u6765\u7f16\u8bd1\u5b89\u88c5\u3002<\/p>\n

gcc\u7684\u6240\u6709\u7248\u672c\u6e90\u4ee3\u7801\u5728gun\u516c\u53f8\u7684gccftp\u4e0a\u90fd\u6709\uff0c\u6700\u65b0\u7684\u7248\u672c\u662f8.1\u3002\u6309\u7167\u6211\u540e\u7eed\u7684\u7ecf\u9a8c\uff0c\u4e0d\u8981\u9009\u62e9\u592a\u9ad8\u7684\u7248\u672c\u56fd\u5185linux\u4e3b\u673a\uff0c\u6211\u9009\u62e9\u7684\u662f5.3.0\u8fd9\u4e2a\u7248\u672c\u3002<\/p>\n

\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

wget http:\/\/ftp.gnu.org\/gnu\/gcc\/gcc-5.3.0\/gcc-5.3.0.tar.gz
\ntar -xf gcc-5.3.0.tar.gz
\ncd gcc-5.3.0\n.\/contrib\/download_prerequisites\u3000
\n<\/code><\/pre>\n<\/p>\n

\u5982\u4f7f\u7528wget\u547d\u4ee4\u4e0b\u8f7d\u4e0d\u4e86\uff0c\u53ef\u4ee5\u7528\u6d4f\u89c8\u5668\u4e0b\u8f7d\uff0c\u4e4b\u540e\u89e3\u538b\u662f\u4e00\u6837\u7684\u3002<\/p>\n

\u4f7f\u7528.\/contrib\/download_prerequisites\u4f1a\u81ea\u5df1\u68c0\u67e5\u4f9d\u8d56\u7684\u5305\u5b89\u88c5\uff0c\u5047\u5982\u7f51\u8def\u4e0d\u597d\u4f1a\u4e0b\u8f7d\u5931\u8d25\uff0c\u81f4\u4f7f\u5b89\u88c5\u4e0d\u4e86\uff0c\u987b\u8981\u81ea\u52a8\u4e0b\u8f7d\u4e09\u4e2a\u4f9d\u8d56\u5305\u3002\u53c2\u8003\u5b89\u88c5gcc\u3002<\/p>\n

\u4f9d\u8d56\u7684\u8fd9\u4e09\u4e2a\u6587\u4ef6\uff0cdownload_prerequisites\u6587\u4ef6\uff0c\u4e0a\u9762\u5199\u7684\u7740\u4f9d\u8d56\u54ea\u4e9b\u6587\u4ef6\u3002<\/p>\n

\u4e0b\u8f7dgmp-4.3.2.tar.bz2\u3001mpc-0.8.1.tar.gz\u3001mpfr-2.4.2.tar.bz2\u3002\u8fd9\u4e09\u4e2a\u6587\u4ef6\u90fd\u53ef\u4ee5\u5728gccftp\u4e0a\u627e\u5230\u3002\u4e0b\u597d\u4e86\uff0c\u5c06\u4e09\u4e2a\u6587\u4ef6\u590d\u5236\u5230gcc-5.3.0\u6587\u4ef6\u5939\u4e2d\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

tar -jxvf gmp-4.3.2.tar.bz2
\ntar -zxvf mpc-0.8.1.tar.gz
\ntar -jxvf mpfr-2.4.2.tar.bz2
\nln -sf gmp-4.3.2 gmp
\nln -sf mpc-0.8.1 mpc
\nln -sf mpfr-2.4.2 mpfr
\n<\/code><\/pre>\n<\/p>\n

\u63a5\u7740\u53ef\u4ee5\u5f00\u59cb\u7f16\u8bd1\u5b89\u88c5\u4e86\uff1a<\/p>\n

\n

mkdir gcc-build-6.4.0
\ncd gcc-build-6.4.0\n..\/configure -enable-checking=release -enable-languages=c,c++ -disable-multilib\nmake j4
\nmake install
\n<\/code><\/pre>\n<\/p>\n

\u4e2d\u6807\u9e92\u9e9flinux\u4e0b\u8f7d_\u4e2d\u6807linux_\u4e2d\u6807\u666e\u534elinux\u4e0b\u8f7d<\/p>\n

\u6700\u540e\u67e5\u770bgcc\u7248\u672c\u9a8c\u8bc1\u662f\u5426\u6210\u529f\u3002<\/p>\n

\n

[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

\u4e2d\u6807linux_\u4e2d\u6807\u9e92\u9e9flinux\u4e0b\u8f7d_\u4e2d\u6807\u666e\u534elinux\u4e0b\u8f7d<\/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}]}}