{"id":52295,"date":"2024-12-03T11:28:56","date_gmt":"2024-12-03T03:28:56","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52295\/"},"modified":"2024-12-03T11:28:56","modified_gmt":"2024-12-03T03:28:56","slug":"linux%e8%83%bd%e4%b8%8d%e8%83%bd%e6%89%a7%e8%a1%8cexe","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52295\/","title":{"rendered":"linux\u80fd\u4e0d\u80fd\u6267\u884cexe"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>linux\u80fd\u4e0d\u80fd\u6267\u884cexe<\/h1>\n<p>\u4f60\u5728\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\u76f8\u5173\u7684\u77e5\u8bc6\u5417\uff1f\u672c\u6587<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300alinux\u80fd\u4e0d\u80fd\u6267\u884cexe\u300b<\/span>\uff0c\u4e3b\u8981\u4ecb\u7ecd\u7684\u5185\u5bb9\u5c31\u6d89\u53ca\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\uff0c\u5982\u679c\u4f60\u60f3\u63d0\u5347\u81ea\u5df1\u7684\u5f00\u53d1\u80fd\u529b\uff0c\u5c31\u4e0d\u8981\u9519\u8fc7\u8fd9\u7bc7\u6587\u7ae0\uff0c\u5927\u5bb6\u8981\u77e5\u9053\u7f16\u7a0b\u7406\u8bba\u57fa\u7840\u548c\u5b9e\u6218\u64cd\u4f5c\u90fd\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u54e6\uff01<\/p>\n<\/p>\n<blockquote>\n<p>\u53ef\u4ee5\uff0c\u4f46\u65e0\u6cd5\u76f4\u63a5\u6267\u884cexe\u6587\u4ef6\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0cexe\u7a0b\u5e8f\u662f\u4e0d\u80fd\u5728LINUX\u4e0b\u8fd0\u884c\u7684\uff0c\u8fd9\u662f\u56e0\u4e3a\u5b83\u4eec\u7684\u5185\u6838\u662f\u4e0d\u540c\u7684\uff1b\u4f46\u662f\u53ef\u4ee5\u901a\u8fc7\u5728Linux\u4e0a\u5b89\u88c5wine\u6765\u8fd0\u884cexe\u7a0b\u5e8f\u3002Wine\u662f\u4e00\u4e2a\u80fd\u591f\u5728\u591a\u79cdPOSIX-compliant\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884cWindows\u5e94\u7528\u7684\u517c\u5bb9\u5c42\uff1b\u5b83\u53ef\u4ee5\u5c06Windows API\u8c03\u7528\u7ffb\u8bd1\u6210\u4e3a\u52a8\u6001\u7684POSIX\u8c03\u7528\uff0c\u514d\u9664\u4e86\u6027\u80fd\u548c\u5176\u4ed6\u4e00\u4e9b\u884c\u4e3a\u7684\u5185\u5b58\u5360\u7528\u3002<\/p>\n<\/blockquote>\n<p><strong>exe\u6587\u4ef6\u662fWindows\u7cfb\u7edf\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u65e0\u6cd5\u76f4\u63a5\u5728Linux\u7cfb\u7edf\u4e2d\u8fd0\u884c\uff0c\u9700\u8981\u5728Linux\u4e2d\u5b89\u88c5Wine\u8fd0\u884c\u73af\u5883\u624d\u53ef\u4ee5\u3002<\/strong><\/p>\n<p>\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u57fa\u4e8eWindows\u7684exe\u7a0b\u5e8f\u90fd\u4e0d\u80fd\u5728LINUX\u4e0b\u8fd0\u884c\uff0c\u8fd9\u662f\u56e0\u4e3a\u5b83\u4eec\u7684\u5185\u6838\u662f\u4e0d\u540c\u7684\uff1b\u4f46\u662f\u53ef\u4ee5\u901a\u8fc7\u5728Linux\u4e0a\u5b89\u88c5wine\u6765\u8fd0\u884cexe\u7a0b\u5e8f\u3002<\/p>\n<p>Wine \uff08\u201cWine Is Not an Emulator\u201d \u7684\u9996\u5b57\u6bcd\u7f29\u5199\uff09\u662f\u4e00\u4e2a\u80fd\u591f\u5728\u591a\u79cd POSIX-compliant \u64cd\u4f5c\u7cfb\u7edf\uff08\u8bf8\u5982 Linux\uff0cmacOS \u53ca BSD \u7b49\uff09\u4e0a\u8fd0\u884c Windows \u5e94\u7528\u7684\u517c\u5bb9\u5c42\u3002Wine \u4e0d\u662f\u50cf\u865a\u62df\u673a\u6216\u8005\u6a21\u62df\u5668\u4e00\u6837\u6a21\u4eff\u5185\u90e8\u7684 Windows \u903b\u8f91\uff0c\u800c\u662f\u5c06 Windows API \u8c03\u7528\u7ffb\u8bd1\u6210\u4e3a\u52a8\u6001\u7684 POSIX \u8c03\u7528\uff0c\u514d\u9664\u4e86\u6027\u80fd\u548c\u5176\u4ed6\u4e00\u4e9b\u884c\u4e3a\u7684\u5185\u5b58\u5360\u7528\uff0c\u8ba9\u4f60\u80fd\u591f\u5e72\u51c0\u5730\u96c6\u5408 Windows \u5e94\u7528\u5230\u4f60\u7684\u684c\u9762\u3002<\/p>\n<p><strong>\u5b89\u88c5 WineHQ \u5b89\u88c5\u5305\uff08Ubuntu 18.04.2 64\u4f4d\u7cfb\u7edf\u4e3a\u4f8b\uff09<\/strong><\/p>\n<p>\u5982\u679c\u60a8\u4e4b\u524d\u5b89\u88c5\u8fc7\u6765\u81ea\u5176\u4ed6\u4ed3\u5e93\u7684 Wine \u5b89\u88c5\u5305\uff0c\u8bf7\u5728\u5c1d\u8bd5\u5b89\u88c5 WineHQ \u5b89\u88c5\u5305\u4e4b\u524d\u5220\u9664\u5b83\u53ca\u4f9d\u8d56\u5b83\u7684\u6240\u6709\u5b89\u88c5\u5305\uff08\u5982\uff1awine-mono\u3001wine-gecko\u3001winetricks\uff09\uff0c\u5426\u5219\u53ef\u80fd\u5bfc\u81f4\u4f9d\u8d56\u51b2\u7a81\u3002<\/p>\n<p>\u5982\u679c\u4f7f\u7528\u7684\u662f 64 \u4f4d\u7cfb\u7edf\uff0c\u8bf7\u5f00\u542f 32 bit \u67b6\u6784\u652f\u6301\uff08\u5982\u679c\u4e4b\u524d\u6ca1\u6709\u5f00\u542f\u7684\u8bdd\uff09\uff1a<\/p>\n<pre>#&nbsp;sudo&nbsp;dpkg&nbsp;--add-architecture&nbsp;i386<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240421\/17136858896624c58164e3f.jpg\" class=\"aligncenter\" title=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe\" alt=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe\" \/><\/p>\n<p>\u4e0b\u8f7d\u6dfb\u52a0\u4ed3\u5e93\u5bc6\u94a5\uff1a<\/p>\n<pre>#&nbsp;wget&nbsp;-nc&nbsp;https:\/\/dl.winehq.org\/wine-builds\/winehq.keysudo&nbsp;\n#&nbsp;apt-key&nbsp;add&nbsp;winehq.key<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240421\/17136858896624c58168498.jpg\" class=\"aligncenter\" title=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe1\" alt=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe1\" \/><\/p>\n<p>\u6dfb\u52a0\u4ed3\u5e93\uff1a<\/p>\n<pre>#&nbsp;sudo&nbsp;apt-add-repository&nbsp;'deb&nbsp;https:\/\/dl.winehq.org\/wine-builds\/ubuntu\/&nbsp;bionic&nbsp;main'<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240421\/17136858896624c5816c3d7.jpg\" class=\"aligncenter\" title=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe2\" alt=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe2\" \/><\/p>\n<p>\u66f4\u65b0\u5b89\u88c5\u5305\uff1a<\/p>\n<pre>#&nbsp;sudo&nbsp;apt&nbsp;update<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240421\/17136858896624c5816dbd4.jpg\" class=\"aligncenter\" title=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe3\" alt=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe3\" \/><\/p>\n<p>\u5b89\u88c5Wine\uff1a<\/p>\n<pre>sudo&nbsp;apt&nbsp;install&nbsp;--install-recommends&nbsp;winehq-stable<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240421\/17136858896624c581717fe.jpg\" class=\"aligncenter\" title=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe4\" alt=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe4\" \/><\/p>\n<p>\u81f3\u6b64wine\u5c31\u5b89\u88c5\u5b8c\u6210\u4e86\u3002<\/p>\n<p><strong>\u5b89\u88c5exe\u7a0b\u5e8f\uff08\u4ee5QQ\u4e3a\u4f8b\uff09<\/strong><\/p>\n<p>\u4e0b\u8f7d\u4ee5.exe\u4e3a\u540e\u7f00\u7684QQ\u53ef\u4ee5\u6267\u884c\u6587\u4ef6\u5230\u684c\u9762\uff0c\u53f3\u51fb\u8be5\u53ef\u6267\u884c\u6587\u4ef6\u9009\u62e9\u201c\u4f7f\u7528\u5176\u4ed6\u7a0b\u5e8f\u6253\u5f00\uff08A\uff09\u201d<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240421\/17136858896624c581729c3.jpg\" class=\"aligncenter\" title=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe5\" alt=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe5\" \/><\/p>\n<p>\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u91cc\u9009\u62e9\u201cWine Windows Program Loader \u201d<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240421\/17136858896624c58175679.jpg\" class=\"aligncenter\" title=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe6\" alt=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe6\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\u5c31\u548c\u5728Windows\u4e0b\u5b89\u88c5\u8f6f\u4ef6\u4e00\u6837\u76f4\u5230\u5b89\u88c5\u5b8c\u6210<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240421\/17136858896624c58178cd8.jpg\" class=\"aligncenter\" title=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe7\" alt=\"linux\u80fd\u4e0d\u80fd\u6267\u884cexe\u63d2\u56fe7\" \/><\/p>\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a\u5982\u975e\u5fc5\u8981\uff0c\u4e00\u822c\u4e0d\u592a\u5efa\u8bae\u5728Linux\u4e0a\u8fd0\u884cexe\u7a0b\u5e8f\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u5404\u79cd\u5404\u6837\u7684\u7684Bug\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u300alinux\u80fd\u4e0d\u80fd\u6267\u884cexe\u300b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u5173\u4e8eLinux,exe\u7684\u8d44\u6599\u8bf7\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>linux\u80fd\u4e0d\u80fd\u6267\u884cexe \u4f60\u5728\u5b66\u4e60\u6587\u7ae0\u76f8\u5173\u7684\u77e5\u8bc6\u5417\uff1f\u672c\u6587\u300alinux\u80fd\u4e0d\u80fd\u6267\u884cexe\u300b\uff0c\u4e3b\u8981\u4ecb\u7ecd\u7684\u5185\u5bb9\u5c31\u6d89\u53ca\u5230\uff0c\u5982\u679c\u4f60\u60f3\u63d0\u5347\u81ea\u5df1\u7684\u5f00\u53d1\u80fd\u529b\uff0c\u5c31\u4e0d\u8981\u9519\u8fc7\u8fd9\u7bc7\u6587\u7ae0\uff0c\u5927\u5bb6\u8981\u77e5\u9053\u7f16\u7a0b\u7406\u8bba\u57fa\u7840\u548c\u5b9e\u6218\u64cd\u4f5c\u90fd\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u54e6\uff01 \u53ef\u4ee5\uff0c\u4f46\u65e0\u6cd5\u76f4\u63a5\u6267\u884cexe\u6587\u4ef6\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0cexe\u7a0b\u5e8f\u662f\u4e0d\u80fd\u5728LINUX\u4e0b\u8fd0\u884c\u7684\uff0c\u8fd9\u662f\u56e0\u4e3a\u5b83\u4eec\u7684\u5185\u6838\u662f\u4e0d\u540c\u7684\uff1b\u4f46\u662f\u53ef\u4ee5\u901a\u8fc7\u5728Linux\u4e0a\u5b89\u88c5wine\u6765\u8fd0\u884cexe\u7a0b\u5e8f\u3002Wine\u662f\u4e00\u4e2a\u80fd\u591f\u5728\u591a\u79cdPOSIX-compliant\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884cWindows\u5e94\u7528\u7684\u517c\u5bb9\u5c42\uff1b\u5b83\u53ef\u4ee5\u5c06Windows API\u8c03\u7528\u7ffb\u8bd1\u6210\u4e3a\u52a8\u6001\u7684POSIX\u8c03\u7528\uff0c\u514d\u9664\u4e86\u6027\u80fd\u548c\u5176\u4ed6\u4e00\u4e9b\u884c\u4e3a\u7684\u5185\u5b58\u5360\u7528\u3002 exe\u6587\u4ef6\u662fWindows\u7cfb\u7edf\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u65e0\u6cd5\u76f4\u63a5\u5728Linux\u7cfb\u7edf\u4e2d\u8fd0\u884c\uff0c\u9700\u8981\u5728Linux\u4e2d\u5b89\u88c5Wine\u8fd0\u884c\u73af\u5883\u624d\u53ef\u4ee5\u3002 \u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4efb\u4f55\u57fa\u4e8eWindows\u7684exe\u7a0b\u5e8f\u90fd\u4e0d\u80fd\u5728LINUX\u4e0b\u8fd0\u884c\uff0c\u8fd9\u662f\u56e0\u4e3a\u5b83\u4eec\u7684\u5185\u6838\u662f\u4e0d\u540c\u7684\uff1b\u4f46\u662f\u53ef\u4ee5\u901a\u8fc7\u5728Linux\u4e0a\u5b89\u88c5wine\u6765\u8fd0\u884cexe\u7a0b\u5e8f\u3002 Wine \uff08\u201cWine Is Not an Emulator\u201d \u7684\u9996\u5b57\u6bcd\u7f29\u5199\uff09\u662f\u4e00\u4e2a\u80fd\u591f\u5728\u591a\u79cd POSIX-compliant \u64cd\u4f5c\u7cfb\u7edf\uff08\u8bf8\u5982 Linux\uff0cmacOS \u53ca BSD \u7b49\uff09\u4e0a\u8fd0\u884c Windows \u5e94\u7528\u7684\u517c\u5bb9\u5c42\u3002Wine \u4e0d\u662f\u50cf\u865a\u62df\u673a\u6216\u8005\u6a21\u62df\u5668\u4e00\u6837\u6a21\u4eff\u5185\u90e8\u7684 Windows \u903b\u8f91\uff0c\u800c\u662f\u5c06 Windows API \u8c03\u7528\u7ffb\u8bd1\u6210\u4e3a\u52a8\u6001\u7684 POSIX \u8c03\u7528\uff0c\u514d\u9664\u4e86\u6027\u80fd\u548c\u5176\u4ed6\u4e00\u4e9b\u884c\u4e3a\u7684\u5185\u5b58\u5360\u7528\uff0c\u8ba9\u4f60\u80fd\u591f\u5e72\u51c0\u5730\u96c6\u5408 Windows \u5e94\u7528\u5230\u4f60\u7684\u684c\u9762\u3002 \u5b89\u88c5 WineHQ \u5b89\u88c5\u5305\uff08Ubuntu 18.04.2 64\u4f4d\u7cfb\u7edf\u4e3a\u4f8b\uff09 \u5982\u679c\u60a8\u4e4b\u524d\u5b89\u88c5\u8fc7\u6765\u81ea\u5176\u4ed6\u4ed3\u5e93\u7684 Wine \u5b89\u88c5\u5305\uff0c\u8bf7\u5728\u5c1d\u8bd5\u5b89\u88c5 WineHQ \u5b89\u88c5\u5305\u4e4b\u524d\u5220\u9664\u5b83\u53ca\u4f9d\u8d56\u5b83\u7684\u6240\u6709\u5b89\u88c5\u5305\uff08\u5982\uff1awine-mono\u3001wine-gecko\u3001winetricks\uff09\uff0c\u5426\u5219\u53ef\u80fd\u5bfc\u81f4\u4f9d\u8d56\u51b2\u7a81\u3002 \u5982\u679c\u4f7f\u7528\u7684\u662f 64 \u4f4d\u7cfb\u7edf\uff0c\u8bf7\u5f00\u542f 32 bit \u67b6\u6784\u652f\u6301\uff08\u5982\u679c\u4e4b\u524d\u6ca1\u6709\u5f00\u542f\u7684\u8bdd\uff09\uff1a #&nbsp;sudo&nbsp;dpkg&nbsp;&#8211;add-architecture&nbsp;i386 \u4e0b\u8f7d\u6dfb\u52a0\u4ed3\u5e93\u5bc6\u94a5\uff1a #&nbsp;wget&nbsp;-nc&nbsp;https:\/\/dl.winehq.org\/wine-builds\/winehq.keysudo&nbsp; #&nbsp;apt-key&nbsp;add&nbsp;winehq.key \u6dfb\u52a0\u4ed3\u5e93\uff1a #&nbsp;sudo&nbsp;apt-add-repository&nbsp;&#8216;deb&nbsp;https:\/\/dl.winehq.org\/wine-builds\/ubuntu\/&nbsp;bionic&nbsp;main&#8217; \u66f4\u65b0\u5b89\u88c5\u5305\uff1a #&nbsp;sudo&nbsp;apt&nbsp;update [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-52295","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=52295"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52295\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}