{"id":158023,"date":"2023-05-15T08:37:26","date_gmt":"2023-05-15T00:37:26","guid":{"rendered":"http:\/\/www.idc.net\/help\/158023\/"},"modified":"2023-05-15T08:37:26","modified_gmt":"2023-05-15T00:37:26","slug":"%e6%8e%a2%e7%a9%b6linux-deps%ef%bc%8c%e8%a7%a3%e6%9e%90%e5%85%b6%e5%9c%a8%e9%a1%b9%e7%9b%ae%e7%bc%96%e8%af%91%e4%b8%ad%e7%9a%84%e4%bd%9c%e7%94%a8-linux-deps","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/158023\/","title":{"rendered":"\u63a2\u7a76Linux .deps\uff0c\u89e3\u6790\u5176\u5728\u9879\u76ee\u7f16\u8bd1\u4e2d\u7684\u4f5c\u7528 (linux .deps)"},"content":{"rendered":"<p>Linux\u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\uff0c\u5176\u5f3a\u5927\u7684\u7a33\u5b9a\u6027\u548c\u81ea\u7531\u5f00\u6e90\u7684\u7279\u70b9\uff0c\u4f7f\u5f97Linux\u5728\u5404\u4e2a\u9886\u57df\u90fd\u6709\u5e7f\u6cdb\u5e94\u7528\u3002\u5728\u8f6f\u4ef6\u5f00\u53d1\u7684\u8fc7\u7a0b\u4e2d\uff0cLinux\u4e5f\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u5e73\u53f0\u4e4b\u4e00\u3002\u5728Linux\u4e0a\u8fdb\u884c\u8f6f\u4ef6\u5f00\u53d1\uff0c\u7f16\u8bd1\u5668\u7684\u9009\u62e9\u4e5f\u662f\u591a\u79cd\u591a\u6837\uff0c\u5176\u4e2d\uff0cgcc\u662f\u6700\u4e3a\u5e38\u89c1\u7684\u7f16\u8bd1\u5668\u3002<\/p>\n<p>\u5728\u8fdb\u884cLinux\u9879\u76ee\u7f16\u8bd1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u5e38\u5e38\u4f1a\u9047\u5230\u4e00\u7ec4\u4ee5.deps\u7ed3\u5c3e\u7684\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a.deps\/mn.Po\uff0c.deps\/mn.Plo\uff0c.deps\/mn.Tpo\u7b49\u7b49\u3002\u8fd9\u4e9b\u6587\u4ef6\u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff0c\u5bf9\u9879\u76ee\u7684\u7f16\u8bd1\u6709\u4f55\u5f71\u54cd\uff1f\u672c\u6587\u5c06\u7740\u91cd\u63a2\u7a76\u8fd9\u4e9b\u95ee\u9898\uff0c\u89e3\u6790Linux .deps\u5728\u9879\u76ee\u7f16\u8bd1\u4e2d\u7684\u4f5c\u7528\u3002<\/p>\n<p>1\u3001.deps\u6587\u4ef6\u7684\u4f5c\u7528<\/p>\n<p>\u5728Linux\u4e2d\uff0c.deps\u6587\u4ef6\u662f\u7531make\u547d\u4ee4\u5728\u8fdb\u884c\u9879\u76ee\u7f16\u8bd1\u65f6\u81ea\u52a8\u751f\u6210\u7684\uff0c\u5176\u4f5c\u7528\u662f\u8bb0\u5f55\u5404\u4e2a\u6e90\u6587\u4ef6\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\u3002\u5728\u9879\u76ee\u4e2d\uff0c\u5982\u679c\u6e90\u6587\u4ef6\u4e4b\u95f4\u5b58\u5728\u4f9d\u8d56\u5173\u7cfb\uff0c\u90a3\u4e48\u5728\u7f16\u8bd1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5c31\u9700\u8981\u5148\u7f16\u8bd1\u4f9d\u8d56\u6587\u4ef6\uff0c\u4ee5\u4fbf\u540e\u7eed\u6587\u4ef6\u80fd\u591f\u987a\u5229\u7f16\u8bd1\u3002.deps\u6587\u4ef6\u5c31\u8d77\u5230\u4e86\u8bb0\u5f55\u4f9d\u8d56\u5173\u7cfb\u7684\u4f5c\u7528\u3002<\/p>\n<p>2\u3001.deps\u6587\u4ef6\u7684\u751f\u6210\u65b9\u5f0f<\/p>\n<p>\u5728\u8fdb\u884cLinux\u9879\u76ee\u7f16\u8bd1\u65f6\uff0cmake\u547d\u4ee4\u4f1a\u81ea\u52a8\u626b\u63cf\u6bcf\u4e2a\u6e90\u6587\u4ef6\uff0c\u67e5\u627e\u5176\u6240\u4f9d\u8d56\u7684\u5934\u6587\u4ef6\u548c\u5176\u4ed6\u6e90\u6587\u4ef6\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u4f9d\u8d56\u5173\u7cfb\u8bb0\u5f55\u5728.deps\u6587\u4ef6\u4e2d\u3002.deps\u6587\u4ef6\u7684\u751f\u6210\u65b9\u5f0f\u5305\u62ec\u4e24\u79cd\uff1a<\/p>\n<p>\uff081\uff09\u57fa\u4e8e\u65f6\u95f4\u6233\u7684\u4f9d\u8d56\u5173\u7cfb<\/p>\n<p>make\u547d\u4ee4\u4f1a\u68c0\u67e5\u6bcf\u4e2a\u76ee\u6807\u6587\u4ef6\u548c\u4f9d\u8d56\u6587\u4ef6\uff08\u4e5f\u5c31\u662f\u6e90\u6587\u4ef6\uff09\u7684\u65f6\u95f4\u6233\uff0c\u5982\u679c\u76ee\u6807\u6587\u4ef6\u7684\u65f6\u95f4\u6233\u8f83\u65e7\uff0c\u5219\u9700\u8981\u91cd\u65b0\u7f16\u8bd1\u8fd9\u4e2a\u76ee\u6807\u6587\u4ef6\u3002\u5982\u679c\u4f9d\u8d56\u6587\u4ef6\u7684\u65f6\u95f4\u6233\u53d8\u5316\uff0c\u5219\u9700\u8981\u91cd\u65b0\u7f16\u8bd1\u4f9d\u8d56\u6587\u4ef6\u548c\u76ee\u6807\u6587\u4ef6\u3002\u5bf9\u4e8e\u6ca1\u6709\u4f9d\u8d56\u5173\u7cfb\u7684\u76ee\u6807\u6587\u4ef6\uff0cmake\u4f1a\u751f\u6210\u4e00\u4e2a\u4ee5\u76ee\u6807\u6587\u4ef6\u540d\u4e3a\u524d\u7f00\u7684deps\u6587\u4ef6\uff0c\u5176\u5185\u5bb9\u4e3a\u7a7a\u3002<\/p>\n<p>\uff082\uff09\u57fa\u4e8eMD5\u7b7e\u540d\u7684\u4f9d\u8d56\u5173\u7cfb<\/p>\n<p>\u5982\u679c\u6e90\u6587\u4ef6\u548c\u5934\u6587\u4ef6\u7684\u65f6\u95f4\u6233\u5e76\u6ca1\u6709\u53d1\u751f\u53d8\u5316\uff0c\u4f46\u6587\u4ef6\u5185\u5bb9\u5374\u53d1\u751f\u4e86\u6539\u53d8\uff0c\u90a3\u4e48\u57fa\u4e8e\u65f6\u95f4\u6233\u7684\u4f9d\u8d56\u5173\u7cfb\u5c31\u65e0\u6cd5\u63a2\u6d4b\u5230\u8fd9\u79cd\u53d8\u5316\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0cmake\u547d\u4ee4\u8fd8\u652f\u6301MD5\u7b7e\u540d\u4f9d\u8d56\u5173\u7cfb\u3002\u8fd9\u79cd\u65b9\u5f0f\u4f1a\u5bf9\u6e90\u6587\u4ef6\u548c\u5934\u6587\u4ef6\u8fdb\u884cMD5\u7b7e\u540d\uff0c\u5982\u679c\u7b7e\u540d\u53d1\u751f\u4e86\u6539\u53d8\uff0c\u90a3\u4e48\u5c31\u4f1a\u91cd\u65b0\u7f16\u8bd1\u76ee\u6807\u6587\u4ef6\u3002\u8fd9\u79cd\u65b9\u5f0f\u80fd\u591f\u66f4\u51c6\u786e\u5730\u63a2\u6d4b\u5230\u6587\u4ef6\u5185\u5bb9\u7684\u53d8\u5316\u3002<\/p>\n<p>3\u3001.deps\u6587\u4ef6\u7684\u4f7f\u7528\u65b9\u5f0f<\/p>\n<p>\u5728Linux\u9879\u76ee\u7f16\u8bd1\u7684\u8fc7\u7a0b\u4e2d\uff0c.deps\u6587\u4ef6\u80fd\u591f\u5e2e\u52a9\u7f16\u8bd1\u5668\u6b63\u786e\u5730\u5b89\u6392\u7f16\u8bd1\u987a\u5e8f\uff0c\u4ece\u800c\u4fdd\u8bc1\u6e90\u6587\u4ef6\u80fd\u591f\u5728\u6b63\u786e\u7684\u5148\u540e\u987a\u5e8f\u4e2d\u7f16\u8bd1\u3002\u5f53\u6211\u4eec\u4f7f\u7528makefile\u6765\u7ba1\u7406\u9879\u76ee\u65f6\uff0c\u9700\u8981\u5728makefile\u4e2d\u6307\u5b9a\u751f\u6210.deps\u6587\u4ef6\u7684\u4f4d\u7f6e\uff0c\u5e76\u5c06\u5176\u4f5c\u4e3a\u4f9d\u8d56\u6587\u4ef6\u52a0\u5165\u76ee\u6807\u6587\u4ef6\u7684\u4f9d\u8d56\u5217\u8868\u4e2d\u3002\u8fd9\u6837\uff0c\u5728\u8fdb\u884cmake\u6216make install\u547d\u4ee4\u65f6\uff0cmake\u547d\u4ee4\u5c31\u4f1a\u81ea\u52a8\u626b\u63cf.deps\u6587\u4ef6\uff0c\u4ece\u800c\u786e\u4fdd\u6e90\u6587\u4ef6\u7684\u6b63\u786e\u7f16\u8bd1\u987a\u5e8f\u3002<\/p>\n<p>4\u3001.deps\u6587\u4ef6\u7684\u6ce8\u610f\u4e8b\u9879<\/p>\n<p>\u5728\u4f7f\u7528.deps\u6587\u4ef6\u8fdb\u884c\u9879\u76ee\u7f16\u8bd1\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<p>\uff081\uff09makefile\u4e2d\u5fc5\u987b\u5305\u542b\u4e00\u4e2a\u89c4\u5219\u6765\u751f\u6210.deps\u6587\u4ef6\u3002\u8be5\u89c4\u5219\u901a\u5e38\u662f\u7531automake\u81ea\u52a8\u751f\u6210\u7684\uff0c\u4f46\u5982\u679c\u6ca1\u6709\u4f7f\u7528automake\uff0c\u5c31\u9700\u8981\u624b\u52a8\u7f16\u5199\u8fd9\u4e2a\u89c4\u5219\u3002<\/p>\n<p>\uff082\uff09.deps\u6587\u4ef6\u5fc5\u987b\u88ab\u5305\u542b\u5728makefile\u4e2d\uff0c\u4ee5\u4fbf\u80fd\u591f\u88ab\u6b63\u786e\u5730\u4f7f\u7528\u3002<\/p>\n<p>\uff083\uff09\u5728\u751f\u6210.deps\u6587\u4ef6\u65f6\uff0cmake\u547d\u4ee4\u4f1a\u81ea\u52a8\u626b\u63cf\u6bcf\u4e2a\u6e90\u6587\u4ef6\uff0c\u5982\u679c\u6e90\u6587\u4ef6\u4e2d\u6ca1\u6709\u5305\u542b\u5934\u6587\u4ef6\uff0c\u5219\u53ef\u80fd\u5bfc\u81f4\u4f9d\u8d56\u5173\u7cfb\u8bb0\u5f55\u4e0d\u5b8c\u6574\uff0c\u7f16\u8bd1\u9519\u8bef\u3002\u56e0\u6b64\uff0c\u9700\u8981\u5728\u6e90\u6587\u4ef6\u4e2d\u6b63\u786e\u5730\u5305\u542b\u5934\u6587\u4ef6\u3002<\/p>\n<p>\uff084\uff09\u5982\u679c\u4f7f\u7528\u4e86\u52a8\u6001\u5e93\uff0c\u90a3\u4e48\u5728\u751f\u6210.deps\u6587\u4ef6\u65f6\uff0c\u8fd8\u9700\u8981\u8bb0\u5f55\u52a8\u6001\u5e93\u548c\u9759\u6001\u5e93\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\u3002<\/p>\n<p>\uff085\uff09.deps\u6587\u4ef6\u4e2d\u7684\u4f9d\u8d56\u5173\u7cfb\u662f\u7531\u4e0a\u4e00\u4e2a\u6784\u5efa\u72b6\u6001\u751f\u6210\u7684\uff0c\u5982\u679c\u6240\u4f7f\u7528\u7684\u7f16\u8bd1\u5668\u4e0d\u540c\uff08\u4f8b\u5982\uff0c\u4eceGCC\u5207\u6362\u5230Clang\uff09\uff0c\u5219\u9700\u8981\u6e05\u9664.deps\u6587\u4ef6\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u4f7f\u7528\u6b63\u786e\u7684\u7f16\u8bd1\u5668\u91cd\u65b0\u751f\u6210deps\u6587\u4ef6\u3002<\/p>\n<p>5\u3001<\/p>\n<p>Linux .deps\u6587\u4ef6\u5728\u9879\u76ee\u7f16\u8bd1\u4e2d\u626e\u6f14\u4e86\u91cd\u8981\u7684\u89d2\u8272\uff0c\u5b83\u8bb0\u5f55\u4e86\u6e90\u6587\u4ef6\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u5e76\u901a\u8fc7make\u547d\u4ee4\u81ea\u52a8\u751f\u6210\uff0c\u4f7f\u5f97\u5728\u8fdb\u884c\u9879\u76ee\u7f16\u8bd1\u65f6\u80fd\u591f\u6b63\u786e\u5730\u8fdb\u884c\u4f9d\u8d56\u5173\u7cfb\u63a2\u6d4b\u548c\u7f16\u8bd1\u6392\u5e8f\u3002\u5bf9\u4e8eLinux\u9879\u76ee\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u6df1\u5165\u7406\u89e3\u5e76\u6b63\u786e\u5730\u4f7f\u7528.deps\u6587\u4ef6\u80fd\u591f\u63d0\u9ad8\u9879\u76ee\u7684\u7f16\u8bd1\u6548\u7387\u548c\u7a33\u5b9a\u6027\uff0c\u540c\u65f6\u8fd8\u80fd\u591f\u66f4\u597d\u5730\u7ba1\u7406\u9879\u76ee\u6587\u4ef6\u548c\u4f9d\u8d56\u5173\u7cfb\u3002<\/p>\n<p><strong>\u76f8\u5173\u95ee\u9898\u62d3\u5c55\u9605\u8bfb\uff1a<\/strong><\/p>\n<ul>\n<li>linux\u4e0b\u8f6f\u4ef6\u7f16\u8bd1\u51fa\u9519<\/li>\n<li>linux deploy\u5b89\u88c5\u955c\u50cf\u65f6\u51fa\u73b0Making file system(ext4)\u2026fai<\/li>\n<\/ul>\n<h3>linux\u4e0b\u8f6f\u4ef6\u7f16\u8bd1\u51fa\u9519<\/h3>\n<p>\u5b89\u88c5\u5f00\u53d1\u62a5\u6ca1\u6709?<\/p>\n<p>\u6ca1\u6709\u5b89\u88c5wx2.4\uff0c\u627e\u4e0d\u5230\u5934\u6587\u4ef6\u548c\u5e93\u5bfc\u81f4\u3002<\/p>\n<p>\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5wx2.4\u8bd5\u4e00\u4e0b\u3002<\/p>\n<h3>linux deploy\u5b89\u88c5\u955c\u50cf\u65f6\u51fa\u73b0Making file system(ext4)\u2026fai<\/h3>\n<p>\u7b2c59\u56de\u67f3\u53f6\u6e1a\u8fb9\u55d4\u83ba\u54a4\u71d5\u7edb\u4e91\u8f69\u91cc\u53ec\u5c06\u98de\u7b26\u7b2c60\u56de\u8309\u8389\u7c89\u66ff\u53bb\u8537\u8587\u785d\u73ab\u7470\u9732\u5f15\u51fa\u832f\u82d3\u971c<\/p>\n<p>deploy\u8bbe\u7f6e\u5185\u5b89\u88c5\u7c7b\u578b\u6539\u6084\u7b11\u6210\u76ee\u5f55\u3002<\/p>\n<p>\u4e0b\u9762\u542f\u5e06\u542b\u7684\u5b89\u88c5\u8def\u5f84 \u5217\u5982\u586b \/data\/linux<\/p>\n<p>\u7136\u540e\u4f60\u5728 es\u8fd9\u7c7b\u7684\u6587\u4ef6\u7ba1\u7406\u5668\u770b\/data\/linux<\/p>\n<p>\u90a3\u5c31\u662f\u8f7f\u7f13\u4f60\u7684chroot\u7cfb\u7edf\u4e86\u3002<\/p>\n<p>linux .deps\u7684\u4ecb\u7ecd\u5c31\u804a\u5230\u8fd9\u91cc\u5427\uff0c\u611f\u8c22\u4f60\u82b1\u65f6\u95f4\u9605\u8bfb\u672c\u7ad9\u5185\u5bb9\uff0c\u66f4\u591a\u5173\u4e8elinux .deps,\u63a2\u7a76Linux .deps\uff0c\u89e3\u6790\u5176\u5728\u9879\u76ee\u7f16\u8bd1\u4e2d\u7684\u4f5c\u7528,linux\u4e0b\u8f6f\u4ef6\u7f16\u8bd1\u51fa\u9519,linux deploy\u5b89\u88c5\u955c\u50cf\u65f6\u51fa\u73b0Making file system(ext4)\u2026fai\u7684\u4fe1\u606f\u522b\u5fd8\u4e86\u5728\u672c\u7ad9\u8fdb\u884c\u67e5\u627e\u5594\u3002<\/p>\n<p><a href=\"http:https:\/\/idc.net\/\">\u9999\u6e2f\u670d\u52a1\u5668<\/a>\u9996\u9009\u540e\u6d6a\u4e91\uff0c2H2G\u9996\u670810\u5143\u5f00\u901a\u3002<br \/>\u540e\u6d6a\u4e91\uff08www.IDC.Net\uff09\u63d0\u4f9b\u7b80\u5355\u597d\u7528\uff0c\u4ef7\u683c\u539a\u9053\u7684\u9999\u6e2f\/\u7f8e\u56fd\u4e91\u670d\u52a1\u5668\u548c\u72ec\u7acb\u670d\u52a1\u5668\u3002IDC+ISP+ICP\u8d44\u8d28\u3002ARIN\u548cAPNIC\u4f1a\u5458\u3002\u6210\u719f\u6280\u672f\u56e2\u961f15\u5e74\u884c\u4e1a\u7ecf\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\uff0c\u5176\u5f3a\u5927\u7684\u7a33\u5b9a\u6027\u548c\u81ea\u7531\u5f00\u6e90\u7684\u7279\u70b9\uff0c\u4f7f\u5f97Linux\u5728\u5404\u4e2a\u9886\u57df\u90fd\u6709\u5e7f\u6cdb\u5e94\u7528\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-158023","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/158023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=158023"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/158023\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=158023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=158023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=158023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}