{"id":228,"date":"2026-11-01T16:38:25","date_gmt":"2026-11-01T08:38:25","guid":{"rendered":"http:\/\/192.168.100.121\/?p=228"},"modified":"2026-11-01T17:07:38","modified_gmt":"2026-11-01T09:07:38","slug":"install-claude-code-and-codex-on-android-with-termux","status":"publish","type":"post","link":"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/","title":{"rendered":"\u624b\u673aTermux\u5b89\u88c5claude code &amp; Codex\u6559\u7a0b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\uff1a\u8fd9\u7bc7\u6587\u7ae0\u53ea\u8bb2\u4e86\u5b89\u88c5\u5230\u80fd\u7528\uff0c\u4f46\u662f\u90e8\u5206\u624b\u673a\u4f1a\u51fa\u73b0\u65e0\u6cd5\u8054\u7f51\u7684\u95ee\u9898\uff0c\u6216\u8005CC\u5361\u987f\u3002\u8be6\u60c5\u770b\u770b\u57511\uff0c2<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_88 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#%E5%89%8D%E8%A8%80\" >\u524d\u8a00<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#%E5%89%8D%E6%9C%9F%E5%87%86%E5%A4%87\" >\u524d\u671f\u51c6\u5907<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#1_Termux\" >1. Termux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#2_Codex%E5%92%8CCC%E7%9A%84%E6%96%87%E4%BB%B6%E6%A2%AF%E5%AD%90\" >2. Codex\u548cCC\u7684\u6587\u4ef6\/\u68af\u5b50<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#%E5%BC%80%E5%A7%8B%E5%AE%89%E8%A3%85\" >\u5f00\u59cb\u5b89\u88c5<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#1Codex\" >1.Codex<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#2Claude_code\" >2.Claude code<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#%E5%9D%91\" >\u5751<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#1%E6%89%8B%E6%9C%BA%E5%85%B3%E6%8E%89%E6%A2%AF%E5%AD%90%E5%90%8E%EF%BC%8CCC%E5%92%8CCodex%E6%97%A0%E6%B3%95%E8%81%94%E7%BD%91\" >1.\u624b\u673a\u5173\u6389\u68af\u5b50\u540e\uff0cCC\u548cCodex\u65e0\u6cd5\u8054\u7f51<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#2Claude_Code%E7%89%B9%E5%88%AB%E5%8D%A1%E9%A1%BF\" >2.Claude Code\u7279\u522b\u5361\u987f<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%89%8D%E8%A8%80\"><\/span>\u524d\u8a00<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u60f3\u5fc5\u5927\u5bb6\u5728\u7535\u8111\u4e0a\u90fd\u5df2\u7ecf\u723d\u8e6cai\u7f16\u7a0b\u4e86\uff0c\u4f46\u662f\u5728\u624b\u673a\u4e0a\u5462\uff1f\u4f60\u8bf4\u8fdc\u63a7\uff0c\u90a3\u786e\u5b9e\u3002\u5404\u5bb6\u90fd\u6709\u4e00\u4e9b\u8fdc\u7a0b\u8bbf\u95ee\u7684\u529f\u80fd\uff0c\u4f46\u662f\u548c\u624b\u673a\u914d\u5408\u4e0d\u597d\u3002\u5982\u679c\u662fssh\u8fde\u63a5Tui\uff0c\u90a3\u5c31\u5f88\u68d2\u4e86\u3002\u4f46\u662f\uff0c\u8fd9\u4e5f\u53ea\u662f\u8fdc\u63a7<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u80fd\u8ba9agent\u76f4\u63a5\u64cd\u63a7\u624b\u673a\u90a3\u4e0d\u662f\u66f4\u597d\uff1f\u7279\u522b\u662f\u5bf9\u4e8epro\u7528\u6237\u6765\u8bf4\uff0c\u6709\u4e86adb\u6743\u9650\u751a\u81f3root\uff0c\u53ef\u4ee5\u8ba9agent\u81ea\u5df1\u5199\u6a21\u5757\uff0c\u67e5\u65e5\u5fd7\uff0c\u6392\u969c\u548c\u5e72\u6d3b\u3002\u518d\u4e5f\u4e0d\u7528\u6258\u7740\u4e2a\u7535\u8111\u5230\u5904\u8dd1\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u90a3\u4e48\uff0charness\u90a3\u4e48\u591a\uff0c\u5b89\u5353\u79fb\u690d\u7684\u548c\u539f\u751f\u7684\u90fd\u6709\u3002\u4f46\u662f\u4e3a\u5565\u9009\u8fd9\u4e24\u4e2a\uff1f<br>\u5176\u5b9e\u4e5f\u5f88\u7b80\u5355\ud83d\ude02\u7528\u7684\u591a\u7f62\u4e86\u3002<br>1.\u7528\u7684\u591a\uff0c\u4e0a\u624b\u5feb<br>2.Tui\u975e\u5e38\u5f3a\u5927\uff0c\u4e0d\u4f9d\u8d56web\u7ba1\u7406<br>3.\u548cTermux\u8fd9\u79cdlinux\u73af\u5883\u914d\u5408\u6781\u5f3a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u90a3\u522b\u7684\u4e5f\u4e0d\u8bf4\u4e86\uff0c\u76f4\u63a5\u5f00\u59cb\u5427<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%89%8D%E6%9C%9F%E5%87%86%E5%A4%87\"><\/span>\u524d\u671f\u51c6\u5907<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Termux\"><\/span>1. Termux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5148\u7b80\u5355\u4ecb\u7ecd\u4e00\u4e0bTermux\u5427\u3002\u4f60\u53ef\u4ee5\u7406\u89e3\u6210\u5b89\u5353\u624b\u673a\u4e0a\u9762\u7684\u4e00\u4e2a\u865a\u62df\u7ec8\u7aef\u3002\u63d0\u4f9b\u4e86\u4e00\u4e2a&#8221;Linux&#8221;\u73af\u5883\u3002\u5b83\u4e0d\u9700\u8981adb\u6216\u8005root\u5c31\u80fd\u63d0\u4f9b\u57fa\u672c\u7684linux\u529f\u80fd\uff0c\u53ef\u4ee5\u968f\u4fbf\u88c5\u5927\u591a\u6570\u7684arm64\u7684linux\u8f6f\u4ef6\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8epython,Node.js,git\u548c\u5404\u79cd\u6742\u4e03\u6742\u516b\u73a9\u610f\u3002\u4e0d\u8fc7\u4e48\uff0c\u517c\u5bb9\u6027\u8fd8\u662f\u4f1a\u6709\u4e00\u70b9\u7684\u95ee\u9898\uff0c\u9700\u8981\u6211\u4eec\u989d\u5916\u5904\u7406\uff0c\u90a3\u4e48\u4ebf\u70b9\u70b9&#8230;<br>\u5176\u5b9e\uff0c\u4f60\u7528termux\u6253linux\u6e38\u620f\u751a\u81f3\u8dd1\u5404\u79cd\u5927\u578b\u8f6f\u4ef6\u90fd\u662f\u6ca1\u95ee\u9898\u7684\uff0c\u9650\u5236\u53ea\u662f\u5728\u4e8e\u624b\u673a\u8fd9\u4e2a\u8f7d\u4f53\u592a\u62c9\u8de8\u4e86\u70b9\u3002\u6781\u5ba2\u6e7e\u5404\u79cd\u624b\u673a\u73a9pc\u6e38\u620f\u7684\u89c6\u9891\uff0c\u57fa\u672c\u90fd\u662f\u5728Termux\u91cc\u9762\u64cd\u4f5c\u7684\u3002\u53ef\u73a9\u6027\u6781\u9ad8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u91cc\u80af\u5b9a\u76f4\u63a5\u4e0b\u6700\u65b0\u7248\u597d\u4e86(\u867d\u7136\u4f46\u662f\u6700\u65b0\u7248\u4e5f\u662f25\u5e745\u6708\u7684\u4e86)\u3002\u53ef\u4ee5\u53bbgithub\u4e0b\u8f7d\u6700\u65b0release\u6216\u8005Fdroid\u90fd\u884c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b98\u7f51\uff1a<a href=\"https:\/\/termux.dev\/en\/\" target=\"_blank\" rel=\"noopener\">Termux | The main termux site and help pages.<\/a><br><br>Github: <a href=\"https:\/\/termux.dev\/en\/\" target=\"_blank\" rel=\"noopener\"><\/a><a href=\"https:\/\/github.com\/termux\/termux-app#github\" target=\"_blank\" rel=\"noopener\">termux\/termux-app: Termux &#8211; a terminal emulator application for Android OS extendible by variety of packages.<\/a><br><br>Fdroid:  <a href=\"https:\/\/f-droid.org\/en\/packages\/com.termux\/\" target=\"_blank\" rel=\"noopener\">Termux | F-Droid &#8211; Free and Open Source Android App Repository<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u8f7d\u5b89\u88c5\u5b8c\u4e86\u4e4b\u540e\uff0c\u8fdb\u5165Termux\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<br>\u6ce8\uff1aTermux\u81ea\u5e26\u4e86\u4e0d\u5c11\uff0c\u4f46\u662f\u90fd\u88c5\u4e00\u4e0b\u5427\uff0c\u9632\u6b62\u8c01\u7684\u6709\u95ee\u9898<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>termux-setup-storage\npkg update\npkg upgrade\npkg install git curl nodejs-lts npm ripgrep <\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">termux-setup-storage<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">pkg<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">update<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">pkg<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">upgrade<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">pkg<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">git<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">curl<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">nodejs-lts<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">ripgrep<\/span><span style=\"color: #D8DEE9FF\"> <\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">termux-setup-storage\uff1a    \u8ba9Termux\u7533\u8bf7\u5b89\u5353\u7684\u6587\u4ef6\u8bbf\u95ee\u6743\u9650\uff0c\u65b9\u4fbf\u4ee5\u540e\u4f7f\u7528\u3002\u8fd9\u91cc\u5f39\u7a97\u70b9\u59cb\u7ec8\u5141\u8bb8\u3002<br>pkg update  pkg upgrade\uff1a \u66f4\u65b0\u4e00\u4e0b\u7d22\u5f15\u548c\u8f6f\u4ef6<br>pkg install git curl ca-certificates nodejs-lts npm ripgrep    \u5b89\u88c5\u6211\u4eec\u8981\u7684\u8fd9\u4e9b\u5305\u3002<br>\u6ce8\uff1a\u5982\u679c\u6709\u95ee\u4f60\u662f\u5426\u5b89\u88c5\uff0c\u8f93\u5165y\u6216\u8005yes\u56de\u8f66\u5c31\u884c<br><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">\u5305<\/th><th class=\"has-text-align-left\" data-align=\"left\">\u7528\u9014<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-left\" data-align=\"left\">git<\/td><td class=\"has-text-align-left\" data-align=\"left\">\u64cd\u4f5c\u4ee3\u7801\u4ed3\u5e93<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">curl<\/td><td class=\"has-text-align-left\" data-align=\"left\">\u4e0b\u8f7d\u548c\u6392\u67e5 HTTP \u8fde\u63a5<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">nodejs-lts<\/td><td class=\"has-text-align-left\" data-align=\"left\">\u672c\u6587\u91c7\u7528\u7684 npm \u5b89\u88c5\u8def\u7ebf\u6240\u9700\u7684 Node \u73af\u5883<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">npm<\/td><td class=\"has-text-align-left\" data-align=\"left\">\u5b89\u88c5 npm \u8f6f\u4ef6\u5305\uff1b\u76ee\u524d\u5728 Termux \u4e2d\u4e0e Node \u5206\u5f00\u6253\u5305<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">ripgrep<\/td><td class=\"has-text-align-left\" data-align=\"left\">\u63d0\u4f9b Termux \u539f\u751f rg\uff0c\u4e5f\u7528\u4e8e Codex \u5305\u5185\u641c\u7d22\u5de5\u5177\u7684\u517c\u5bb9\u5904\u7406<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Codex%E5%92%8CCC%E7%9A%84%E6%96%87%E4%BB%B6%E6%A2%AF%E5%AD%90\"><\/span>2. Codex\u548cCC\u7684\u6587\u4ef6\/\u68af\u5b50<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u4ee5\u624b\u52a8\u51c6\u5907\uff0c\u4f46\u662f\u547d\u4ee4\u88c5\u66f4\u597d\u3002\u4e0d\u8fc7&#8230;\u4f60\u5927\u6982\u9700\u8981\u4e00\u4e9b\u9b54\u6cd5\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u57fa\u672c\u4e0a\u5f00\u4e86\u4ee3\u7406\u5c31\u884c\u3002\u5b9e\u5728\u4e0d\u884c\u5c31\u5728\u68af\u5b50\u8f6f\u4ef6\u91cc\u9762\u6253\u5f00\u201c\u5bf9\u5c40\u57df\u7f51\u5f00\u653e\u201d \uff0c\u7136\u540e\u8bbe\u7f6e\u597d\u4e00\u4e2a\u7aef\u53e3\u5907\u7528\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%BC%80%E5%A7%8B%E5%AE%89%E8%A3%85\"><\/span>\u5f00\u59cb\u5b89\u88c5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1Codex\"><\/span>1.Codex<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>\u6211\u4e0d\u542c\u6559\u7a0b\u6211\u5c31\u8981\u786c\u88c5<\/summary>\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">Error<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>Error: Missing optional dependency @openai\/codex-linux-arm64. Reinstall Codex: npm install -g @openai\/codex@latest<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">Error:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">Missing<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">optional<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">dependency<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">@openai\/codex-linux-arm64.<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">Reinstall<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">Codex:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">-g<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">@openai\/codex@latest<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u662f\u8fd9\u662f\u4e2a\u5b89\u5353\u8bbe\u5907\u554a\ud83d\ude05Codex\u5b98\u65b9\u6ca1\u6709\u63d0\u4f9b\u5b89\u5353\u5305\uff0c\u6240\u4ee5\u76f4\u63a5\u70b8\u98de<\/p>\n<\/details>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Codex \u76f4\u63a5\u88c5\u5728 Termux \u91cc\u3002\u4e0d\u8fc7\u8fd9\u91cc\u8981\u628a\u4e3b\u5305\u548c ARM64 \u5305\u4e00\u8d77\u88c5\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">\u81ea\u52a8\u5b89\u88c5\u6700\u65b0\u7248\u672c<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>codex_version=$(npm view @openai\/codex@latest version)\n\nnpm install -g --force \\\n  \"@openai\/codex@${codex_version}\" \\\n  \"@openai\/codex-linux-arm64@npm:@openai\/codex@${codex_version}-linux-arm64\"<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">codex_version<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">$(<\/span><span style=\"color: #88C0D0\">npm<\/span><span style=\"color: #A3BE8C\"> view @openai\/codex@latest version<\/span><span style=\"color: #ECEFF4\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">-g<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--force<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #EBCB8B\">\\<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">@openai\/codex@<\/span><span style=\"color: #81A1C1\">${<\/span><span style=\"color: #D8DEE9\">codex_version<\/span><span style=\"color: #81A1C1\">}<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #EBCB8B\">\\<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">@openai\/codex-linux-arm64@npm:@openai\/codex@<\/span><span style=\"color: #81A1C1\">${<\/span><span style=\"color: #D8DEE9\">codex_version<\/span><span style=\"color: #81A1C1\">}<\/span><span style=\"color: #A3BE8C\">-linux-arm64<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">\u5907\u9009\uff1a\u5b89\u88c5\u56fa\u5b9a\u7248\u672c<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>npm install -g --force \\\n  @openai\/codex@0.160.0 \\\n  '@openai\/codex-linux-arm64@npm:@openai\/codex@0.160.0-linux-arm64'<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">-g<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--force<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #EBCB8B\">\\<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #A3BE8C\">@openai\/codex@0.160.0<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #EBCB8B\">\\<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #A3BE8C\">@openai\/codex-linux-arm64@npm:@openai\/codex@0.160.0-linux-arm64<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>\u4e3a\u5565\u8981\u52a0&#8211;force \u6765\u5f3a\u5236\u6307\u5b9a\uff1f<\/summary>\n<p class=\"wp-block-paragraph\">\u56e0\u4e3a\u7cfb\u7edf\u9ed8\u8ba4\u5b89\u5353\u548clinux\u4e1c\u897f\u4e0d\u517c\u5bb9\uff0c\u4f1a\u76f4\u63a5\u62a5\u9519\uff0clike this<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">Error<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>npm error code EBADPLATFORM\nnpm error notsup Unsupported platform for @openai\/codex@0.166.0-linux-arm64: wanted {\"os\":\"linux\",\"cpu\":\"arm64\"} (current: {\"os\":\"android\",\"cpu\":\"arm64\"})<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">error<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">code<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">EBADPLATFORM<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">error<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">notsup<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">Unsupported<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">platform<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">for<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">@openai\/codex@0.166.0-linux-arm64:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">wanted<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">{<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">os<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">linux<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">cpu<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">arm64<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">}<\/span><span style=\"color: #D8DEE9FF\"> (current: <\/span><span style=\"color: #A3BE8C\">{<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">os<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">android<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">cpu<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">arm64<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">}<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u6240\u4ee5\u8fd9\u91cc\u624b\u52a8\u8865\u9f50\u5e73\u53f0\u5305\uff0c\u7528&nbsp;<code>--force<\/code>&nbsp;\u8df3\u8fc7\u5e73\u53f0\u68c0\u67e5\u3002\u5b83\u53ea\u7ba1\u8ba9 npm \u5b89\u88c5\uff0c\u540e\u9762\u8fd0\u884c\u4e0a\u7684\u517c\u5bb9\u95ee\u9898\u8fd8\u5f97\u5904\u7406\u3002<\/p>\n<\/details>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u91cc\u5c31\u662f\u5355\u72ec\u88c5codex\u3002\u88c5\u597d\u4e4b\u540e\u80af\u5b9a\u547d\u4ee4\u884c\u76f4\u63a5codex\u56de\u8f66\u542f\u52a8\uff0c\u7136\u540e\u4f60\u4f1a\u53d1\u73b0\uff0c\u6b38\u4ed6\u8fd8\u662f\u8dd1\u4e0d\u4e86&#8230;<br>\u5355\u72ec\u6d4b\u4e00\u4e0brg\uff0c\u4f60\u5c31\u77e5\u9053\u4e3a\u5565\u4e86<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">Error<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>$ codex_dir=\"$(npm root -g)\/@openai\/codex-linux-arm64\/vendor\/aarch64-unknown-linux-musl\"\n$ \"$codex_dir\/codex-path\/rg\" --version\ncannot execute: required file not found\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">$<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">codex_dir=<\/span><span style=\"color: #ECEFF4\">&quot;$(<\/span><span style=\"color: #88C0D0\">npm<\/span><span style=\"color: #A3BE8C\"> root -g<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #A3BE8C\">\/@openai\/codex-linux-arm64\/vendor\/aarch64-unknown-linux-musl<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">$<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9\">$codex_dir<\/span><span style=\"color: #A3BE8C\">\/codex-path\/rg<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--version<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">cannot<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">execute:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">required<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">file<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">not<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">found<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f46\u662f\u5176\u5b9eCodex\u81ea\u5e26\u4e86\u4e00\u4efdrg\u3002\u4e0d\u8fc7\u53ef\u60dc\u7684\u662f\uff0c\u4ed6\u4e0d\u80fd\u76f4\u63a5\u5728termux\u91cc\u9762\u8fd0\u884c\u3002\u5b83\u9700\u8981<code>\/lib\/ld-linux-aarch64.so.1<\/code>\uff0c\u4e0d\u8fc7Termux \u91cc\u6ca1\u6709\u8fd9\u4e2a\u52a0\u8f7d\u5668\u3002<br>\u867d\u8bf4\u5982\u6b64\uff0c\u4e0d\u8fc7\u4e5f\u597d\u89e3\u51b3\u3002\u6211\u4eec\u524d\u9762\u5df2\u7ecf\u88c5\u4e86termux\u81ea\u5df1\u7684rg\u4e86\uff0c\u76f4\u63a5\u6267\u884c\u4e00\u4e2a\u66ff\u6362\u5c31\u884c\u4e86<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>$ cp --remove-destination \"$PREFIX\/bin\/rg\" \"$codex_dir\/codex-path\/rg\"\n$ \"$codex_dir\/codex-path\/rg\" --version<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">$<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">cp<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--remove-destination<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9\">$PREFIX<\/span><span style=\"color: #A3BE8C\">\/bin\/rg<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9\">$codex_dir<\/span><span style=\"color: #A3BE8C\">\/codex-path\/rg<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">$<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9\">$codex_dir<\/span><span style=\"color: #A3BE8C\">\/codex-path\/rg<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--version<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u63a5\u4e0b\u6765\uff0c\u5e94\u8be5\u884c\u4e86\u5427\uff1f\u76f4\u63a5codex\u542f\u52a8\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u4f1a\u53d1\u73b0\uff0c\u8fd8\u662f\u4e0d\u884c\u3002\u4e0d\u8fc7\u5f88\u5feb\u4e86\u3002\u5df2\u7ecf\u5230\u4e86\u6700\u540e\u4e00\u4e2a\u9636\u6bb5\u5c31\u662f\u4fee\u590d\u540e\u53f0\u670d\u52a1\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>Error: app server did not become ready on \u2026\/app-server-control.sock\n\nError: Permission denied (os error 13): failed to connect to \u2026\/app-server-control.sock: No such file or directory (os error 2)\n\nTo work without the background server, rerun the same command with --no-daemon (including resume or fork and its arguments).<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">Error:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">app<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">server<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">did<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">not<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">become<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">ready<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">on<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">\u2026\/app-server-control.sock<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">Error:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">Permission<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">denied<\/span><span style=\"color: #D8DEE9FF\"> (os <\/span><span style=\"color: #A3BE8C\">error<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">13<\/span><span style=\"color: #D8DEE9FF\">): failed to connect to \u2026\/app-server-control.sock: No such file or directory <\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #88C0D0\">os<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">error<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">2<\/span><span style=\"color: #ECEFF4\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">To<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">work<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">without<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">the<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">background<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">server,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">rerun<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">the<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">same<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">command<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">with<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--no-daemon<\/span><span style=\"color: #D8DEE9FF\"> (including <\/span><span style=\"color: #A3BE8C\">resume<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">or<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">fork<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">and<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">its<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">arguments<\/span><span style=\"color: #D8DEE9FF\">).<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">OAI\u5df2\u7ecf\u7ed9\u6211\u4eec\u5199\u597d\u4e86\u8fd9\u4e2a\u7684\u89e3\u51b3\u65b9\u6cd5\u3002\u4f60\u770b\u8fd9\u4e2a  &#8211;no-daemon\uff0c\u6bcf\u6b21\u542f\u52a8\u7684\u65f6\u5019\u5728codex\u540e\u9762\u8ffd\u52a0\u4e0a\u8fd9\u4e2a\u5c31\u884c\u4e86\u3002\u5acc\u9ebb\u70e6\uff1f\u6709\u4e24\u4e2a\u529e\u6cd5\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>codex features disable daemon_auto_start<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">codex<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">features<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">disable<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">daemon_auto_start<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e2a\u662f\u76f4\u63a5\u5e72\u6389\u81ea\u52a8\u542f\u52a8\u3002\u6ca1\u6709\u4e86\u540e\u53f0\u670d\u52a1\u90a3\u81ea\u7136\u4e0d\u4f1a\u5361\u6211\u4e86\u5bf9\u5427\uff1f<br>\u5f53\u7136\uff0c\u4e5f\u53ef\u4ee5\u5199\u4e00\u4e2a\u522b\u540d\uff0c\u5c31\u50cf\u8fd9\u6837<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">~\/.bashrc<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>alias codex='codex --no-daemon'<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #81A1C1\">alias<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">codex<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #A3BE8C\">codex --no-daemon<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u63a5\u4e0b\u6765\uff0cCodex\u7684\u4e3b\u9875\u5e94\u8be5\u80fd\u6b63\u5e38\u6253\u5f00\u4e86\u3002\u5f00\u59cb\u723d\u73a9\u5427\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2Claude_code\"><\/span>2.Claude code<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">CC\u8fd9\u91cc\u8981\u591a\u7ed5\u4e00\u6b65\u3002\u867d\u7136\u8bf4\u524d\u9762\u7684 Codex \u4e5f\u662f\u501f\u7528 Linux ARM64 \u5305\uff0c\u4f46\u662fLinux\u8f6f\u4ef6\u80fd\u4e0d\u80fd\u8dd1\u9664\u4e86\u8981\u5bf9\u4e0aARM64\u8fd9\u4e9bCPU\u67b6\u6784\uff0c\u8fd8\u8981\u770b\u8fd0\u884c\u5e93\u3002\u5e38\u89c1\u7684\u6709glibc<span id='easy-footnote-1-228' class='easy-footnote-margin-adjust'><\/span><span class='easy-footnote'><a href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#easy-footnote-bottom-1-228\" title=\"GNU C Library\uff0cLinux \u7cfb\u7edf\u4e2d\u6700\u57fa\u7840\u3001\u6700\u5e38\u7528\u7684 C \u6807\u51c6\u5e93\u3002\u529f\u80fd\u5168\uff0c\u4f46\u4f53\u79ef\u5927\u3002\"><sup>1<\/sup><\/a><\/span>\u548cmusl<span id='easy-footnote-2-228' class='easy-footnote-margin-adjust'><\/span><span class='easy-footnote'><a href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#easy-footnote-bottom-2-228\" title=\"\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684 C \u6807\u51c6\u5e93\u3002\u76f8\u6bd4\u5e38\u89c1\u7684 glibc\uff0c\u5b83\u4f53\u79ef\u66f4\u5c0f\uff0c\u5e38\u7528\u4e8e\u6781\u7b80\u7684 Linux \u7cfb\u7edf\u3002\"><sup>2<\/sup><\/a><\/span>\u3002CC \u8fd9\u4efd Linux musl \u7a0b\u5e8f\u8fd8\u9700\u8981\u5bf9\u5e94\u7684\u52a0\u8f7d\u5668\u548c\u8fd0\u884c\u5e93\uff0cTermux \u91cc\u9762\u6ca1\u6709\u73b0\u6210\u7684\uff0c\u8868\u793a\u65e0\u80fd\u4e3a\u529b\u4e86\u3002<br>\u6240\u4ee5\u6211\u4eec\u7528PRoot<span id='easy-footnote-3-228' class='easy-footnote-margin-adjust'><\/span><span class='easy-footnote'><a href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#easy-footnote-bottom-3-228\" title=\"PRoot \u662f\u4e00\u4e2a\u7528\u6237\u7a7a\u95f4\u7684\u00a0&lt;code&gt;chroot&lt;\/code&gt;\u00a0\u5de5\u5177\u3002\u6b63\u5e38 Linux \u4e0b\u5207\u6362\u7cfb\u7edf\u73af\u5883\u9700\u8981 Root \u6743\u9650\uff0c\u4f46\u5728\u672a Root \u7684 Android\uff08Termux\uff09\u91cc\uff0cPRoot \u5229\u7528\u7cfb\u7edf\u8c03\u7528\u62e6\u622a\uff08ptrace\uff09\u6280\u672f\uff0c\u201c\u6b3a\u9a97\u201d\u7a0b\u5e8f\u4ee5\u4e3a\u81ea\u5df1\u5728\u4e00\u4e2a\u72ec\u7acb\u7684 Linux \u73af\u5883\u91cc\uff08\u5373 Alpine\uff09\uff0c\u4ece\u800c\u8ba9\u666e\u901a\u7528\u6237\u4e5f\u80fd\u5728\u624b\u673a\u4e0a\u8dd1\u5404\u79cd Linux \u53d1\u884c\u7248\u3002\"><sup>3<\/sup><\/a><\/span>\u5728Termux\u91cc\u9762\u642d\u4e00\u4e2aAlpine<span id='easy-footnote-4-228' class='easy-footnote-margin-adjust'><\/span><span class='easy-footnote'><a href=\"https:\/\/www.serversalem.top\/index.php\/2026\/11\/01\/install-claude-code-and-codex-on-android-with-termux\/#easy-footnote-bottom-4-228\" title=\"\u4e00\u6b3e\u8ffd\u6c42\u6781\u81f4\u8f7b\u91cf\u5316\u7684 Linux \u53d1\u884c\u7248\uff0c\u9ed8\u8ba4\u81ea\u5e26 musl \u73af\u5883\uff0c\u5e38\u7528\u4e8e\u5bb9\u5668\u548c\u5d4c\u5165\u5f0f\u8bbe\u5907\u3002\"><sup>4<\/sup><\/a><\/span>\u73af\u5883\uff0c\u518d\u628aCC\u88c5\u8fdb\u53bb\u3002Alpine\u81ea\u5e26\u4e86\u5b83\u9700\u8981\u7684musl\u73af\u5883\uff0c\u5269\u4e0b\u7684\u4f9d\u8d56\u4e5f\u53ef\u4ee5\u76f4\u63a5\u7528\u5305\u7ba1\u7406\u5668\u8865\u4e0a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u518d\u6765\u4ecb\u7ecd\u4e00\u4e0bPRoot\u548cAlpine\u5427\u3002\u524d\u9762\u7684Termux\u5df2\u7ecf\u63d0\u4f9b\u4e86\u4e00\u4e2a\u201cLinux\u201d\u73af\u5883\uff0c\u4e0d\u8fc7\u6709\u4e9b\u8f6f\u4ef6\u9700\u8981\u7684\u8fd0\u884c\u5e93\u3001\u76ee\u5f55\u7ed3\u6784\u548c\u5b83\u5bf9\u4e0d\u4e0a\uff0c\u8fd9\u65f6\u5019\u5c31\u53ef\u4ee5\u501fPRoot&#8221;\u88c5&#8221;\u4e2aLinux\u53d1\u884c\u7248\u8fdb\u6765\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>\u76f4\u63a5\u5b89\u88c5CC\u4f1a\u548b\u6837\uff1f<\/summary>\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>$ npm install @anthropic-ai\/claude-code@2.1.218\n$ claude --version\nError: claude native binary not installed.\n\n# \u8981\u662f\u6211\u4eec\u624b\u52a8\u6267\u884c node install.cjs \u4f1a\u548b\u6837\uff1f\n\n$ node install.cjs\n&#091;@anthropic-ai\/claude-code postinstall&#093; Native binaries for linux-arm64-android are not available on this release channel.<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">$<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">@anthropic-ai\/claude-code@2.1.218<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">$<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">claude<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--version<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">Error:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">claude<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">native<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">binary<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">not<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">installed.<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\"># \u8981\u662f\u6211\u4eec\u624b\u52a8\u6267\u884c node install.cjs \u4f1a\u548b\u6837\uff1f<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">$<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">node<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">install.cjs<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">&#091;<\/span><span style=\"color: #D8DEE9FF\">@anthropic-ai\/claude-code postinstall<\/span><span style=\"color: #ECEFF4\">&#093;<\/span><span style=\"color: #D8DEE9FF\"> Native binaries <\/span><span style=\"color: #81A1C1\">for<\/span><span style=\"color: #D8DEE9FF\"> linux-arm64-android are not available on this release channel.<\/span><\/span><\/code><\/pre><\/div>\n<\/details>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u90a3\u4e48\uff0c\u5f00\u59cb\u52a8\u624b\u5427\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">\u5148\u5728 Termux \u88c5 Alpine<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>pkg install proot-distro\nproot-distro install alpine:latest --name alpine\nproot-distro login alpine<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">pkg<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">proot-distro<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">proot-distro<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">alpine:latest<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--name<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">alpine<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">proot-distro<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">login<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">alpine<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">\u5728 Alpine \u91cc\u9762\u6267\u884c<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>apk add --no-cache nodejs npm bash git ca-certificates libgcc libstdc++ ripgrep\nnpm install -g @anthropic-ai\/claude-code@latest\nclaude --version<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">apk<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">add<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--no-cache<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">nodejs<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">bash<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">git<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">ca-certificates<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">libgcc<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">libstdc++<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">ripgrep<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">-g<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">@anthropic-ai\/claude-code@latest<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">claude<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--version<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\uff1a\u8fd9\u91cc\u7684npm\uff0cbash,git\u8fd9\u4e9b\u90fd\u8981\u53e6\u5916\u88c5\uff0c\u6bd5\u7adf\u8fd9\u662f\u4e00\u4e2a\u65b0\u7684Alpine\u73af\u5883\u800c\u975e\u6211\u4eec\u4e4b\u524d\u7528\u7684Termux\u81ea\u5df1\u7684\u73af\u5883\u4e86\u3002<br>\u8fd9\u662f\u5b89\u88c5\u6700\u65b0\u7248\u7684\u547d\u4ee4\u3002\u5982\u679c\u8981\u56fa\u5b9a\u7248\u672c\uff0c\u53ef\u4ee5\u628a\u91cc\u9762\u66ff\u6362\u6210\u8fd9\u4e24\u4e2a  <br><em>proot-distro install alpine:3.24 &#8211;name alpine <br>npm install -g @anthropic-ai\/claude-code@2.1.218<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u554a\uff0c\u6211\u4eec\u8fd9\u4e2a\u88c5\u7684cc\u5728Alpine\u91cc\u9762\uff0c\u6240\u4ee5\u6253\u5f00\u5b83\u9700\u8981\u8fd9\u6837<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>proot-distro login alpine\nclaude<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">proot-distro<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">login<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">alpine<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">claude<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u6837\u89c1\u5230\u6b63\u5e38\u7684\u9875\u9762\u4e86\uff0c\u5c31\u53ef\u4ee5 exit\u9000\u51facc\uff0c\u518dexit\u9000\u51faproot\u56de\u5230Termux\u4e86\u3002<br>\u6bcf\u6b21\u8fd9\u4e48\u5f00\u80af\u5b9a\u4e5f\u4e0d\u8212\u670d\u5bf9\u5427\uff1f\u90a3\u8fd8\u662f\u5199\u4e00\u4e2a\u522b\u540d\u5427\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">~\/.bashrc<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>claude() {\n  proot-distro login alpine -- env USE_BUILTIN_RIPGREP=0 claude \"$@\"\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">claude<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #88C0D0\">proot-distro<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">login<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">alpine<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">--<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">env<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">USE_BUILTIN_RIPGREP=<\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">claude<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9\">$@<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fdd\u5b58\u5b8c\u6267\u884c\u4e0b\u9762\u8fd9\u4e2a\u5237\u65b0\u4e00\u4e0b\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>source ~\/.bashrc\nclaude<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #88C0D0\">source<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #A3BE8C\">~\/.bashrc<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">claude<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u63a5\u7740\uff0c\u5c31\u8fdb\u53bbCC\u4e86\uff0c\u5c3d\u60c5\u4eab\u53d7\u5427<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%9D%91\"><\/span>\u5751<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u91cc\u7684\u5927\u5751\u4e3b\u8981\u67092\u4e2a\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1%E6%89%8B%E6%9C%BA%E5%85%B3%E6%8E%89%E6%A2%AF%E5%AD%90%E5%90%8E%EF%BC%8CCC%E5%92%8CCodex%E6%97%A0%E6%B3%95%E8%81%94%E7%BD%91\"><\/span>1.\u624b\u673a\u5173\u6389\u68af\u5b50\u540e\uff0cCC\u548cCodex\u65e0\u6cd5\u8054\u7f51<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u7bc7\u6587\u7ae0\u5199\u592a\u957f\u4e86\u4e5f\u4e0d\u597d\uff0c\u8fd9\u91cc\u5c31\u53e6\u5f00\u4e00\u4e2a\u9875\u9762\u6765\u5199\u5427\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5360\u4f4d\u7b26<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2Claude_Code%E7%89%B9%E5%88%AB%E5%8D%A1%E9%A1%BF\"><\/span>2.Claude Code\u7279\u522b\u5361\u987f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5360\u4f4d\u7b26<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6ce8\uff1a\u8fd9\u7bc7\u6587\u7ae0\u53ea\u8bb2\u4e86\u5b89\u88c5\u5230\u80fd\u7528\uff0c\u4f46\u662f\u90e8\u5206\u624b\u673a\u4f1a\u51fa\u73b0\u65e0\u6cd5\u8054\u7f51\u7684\u95ee\u9898\uff0c\u6216\u8005CC\u5361\u987f\u3002\u8be6\u60c5\u770b\u770b\u57511\uff0c2 \u524d\u8a00 \u60f3\u5fc5\u5927\u5bb6\u5728\u7535\u8111\u4e0a\u90fd\u5df2\u7ecf\u723d\u8e6cai\u7f16\u7a0b\u4e86\uff0c\u4f46\u662f\u5728\u624b\u673a\u4e0a\u5462\uff1f\u4f60\u8bf4\u8fdc\u63a7\uff0c\u90a3\u786e\u5b9e\u3002\u5404\u5bb6\u90fd\u6709\u4e00\u4e9b\u8fdc\u7a0b\u8bbf\u95ee\u7684\u529f\u80fd\uff0c\u4f46\u662f\u548c\u624b\u673a\u914d\u5408\u4e0d\u597d\u3002\u5982\u679c\u662fssh\u8fde\u63a5Tui\uff0c\u90a3\u5c31\u5f88\u68d2\u4e86\u3002\u4f46\u662f\uff0c\u8fd9\u4e5f\u53ea\u662f\u8fdc\u63a7 \u5982\u679c\u80fd\u8ba9agent\u76f4\u63a5\u64cd\u63a7\u624b\u673a\u90a3\u4e0d\u662f\u66f4\u597d\uff1f\u7279\u522b\u662f\u5bf9\u4e8epro\u7528\u6237\u6765\u8bf4\uff0c\u6709\u4e86adb\u6743\u9650\u751a\u81f3root\uff0c\u53ef\u4ee5\u8ba9agent\u81ea\u5df1\u5199\u6a21\u5757\uff0c\u67e5\u65e5\u5fd7\uff0c\u6392\u969c\u548c\u5e72\u6d3b\u3002\u518d\u4e5f\u4e0d\u7528\u6258\u7740\u4e2a\u7535\u8111\u5230\u5904\u8dd1\u4e86\u3002 \u90a3\u4e48\uff0charness\u90a3\u4e48\u591a\uff0c\u5b89\u5353\u79fb\u690d\u7684\u548c\u539f\u751f\u7684\u90fd\u6709\u3002\u4f46\u662f\u4e3a\u5565\u9009\u8fd9\u4e24\u4e2a\uff1f\u5176\u5b9e\u4e5f\u5f88\u7b80\u5355\ud83d\ude02\u7528\u7684\u591a\u7f62\u4e86\u30021.\u7528\u7684\u591a\uff0c\u4e0a\u624b\u5feb2.Tui\u975e\u5e38\u5f3a\u5927\uff0c\u4e0d\u4f9d\u8d56web\u7ba1\u74063.\u548cTermux\u8fd9\u79cdlinux\u73af\u5883\u914d\u5408\u6781\u5f3a \u90a3\u522b\u7684\u4e5f\u4e0d\u8bf4\u4e86\uff0c\u76f4\u63a5\u5f00\u59cb\u5427 \u524d\u671f\u51c6\u5907 1. Termux \u5148\u7b80\u5355\u4ecb\u7ecd\u4e00\u4e0bTermux\u5427\u3002\u4f60\u53ef\u4ee5\u7406\u89e3\u6210\u5b89\u5353\u624b\u673a\u4e0a\u9762\u7684\u4e00\u4e2a\u865a\u62df\u7ec8\u7aef\u3002\u63d0\u4f9b\u4e86\u4e00\u4e2a&#8221;Linux&#8221;\u73af\u5883\u3002\u5b83\u4e0d\u9700\u8981adb\u6216\u8005root\u5c31\u80fd\u63d0\u4f9b\u57fa\u672c\u7684linux\u529f\u80fd\uff0c\u53ef\u4ee5\u968f\u4fbf\u88c5\u5927\u591a\u6570\u7684arm64\u7684linux\u8f6f\u4ef6\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8epython,Node.js,git\u548c\u5404\u79cd\u6742\u4e03\u6742\u516b\u73a9\u610f\u3002\u4e0d\u8fc7\u4e48\uff0c\u517c\u5bb9\u6027\u8fd8\u662f\u4f1a\u6709\u4e00\u70b9\u7684\u95ee\u9898\uff0c\u9700\u8981\u6211\u4eec\u989d\u5916\u5904\u7406\uff0c\u90a3\u4e48\u4ebf\u70b9\u70b9&#8230;\u5176\u5b9e\uff0c\u4f60\u7528termux\u6253linux\u6e38\u620f\u751a\u81f3\u8dd1\u5404\u79cd\u5927\u578b\u8f6f\u4ef6\u90fd\u662f\u6ca1\u95ee\u9898\u7684\uff0c\u9650\u5236\u53ea\u662f\u5728\u4e8e\u624b\u673a\u8fd9\u4e2a\u8f7d\u4f53\u592a\u62c9\u8de8\u4e86\u70b9\u3002\u6781\u5ba2\u6e7e\u5404\u79cd\u624b\u673a\u73a9pc\u6e38\u620f\u7684\u89c6\u9891\uff0c\u57fa\u672c\u90fd\u662f\u5728Termux\u91cc\u9762\u64cd\u4f5c\u7684\u3002\u53ef\u73a9\u6027\u6781\u9ad8\u3002 \u8fd9\u91cc\u80af\u5b9a\u76f4\u63a5\u4e0b\u6700\u65b0\u7248\u597d\u4e86(\u867d\u7136\u4f46\u662f\u6700\u65b0\u7248\u4e5f\u662f25\u5e745\u6708\u7684\u4e86)\u3002\u53ef\u4ee5\u53bbgithub\u4e0b\u8f7d\u6700\u65b0release\u6216\u8005Fdroid\u90fd\u884c\u3002 \u5b98\u7f51\uff1aTermux | The main termux site and help pages. Github: termux\/termux-app: Termux &#8211; a terminal emulator application for Android OS extendible by variety of packages. Fdroid: Termux | F-Droid &#8211; Free and Open Source Android App Repository \u4e0b\u8f7d\u5b89\u88c5\u5b8c\u4e86\u4e4b\u540e\uff0c\u8fdb\u5165Termux\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a\u6ce8\uff1aTermux\u81ea\u5e26\u4e86\u4e0d\u5c11\uff0c\u4f46\u662f\u90fd\u88c5\u4e00\u4e0b\u5427\uff0c\u9632\u6b62\u8c01\u7684\u6709\u95ee\u9898 termux-setup-storage\uff1a \u8ba9Termux\u7533\u8bf7\u5b89\u5353\u7684\u6587\u4ef6\u8bbf\u95ee\u6743\u9650\uff0c\u65b9\u4fbf\u4ee5\u540e\u4f7f\u7528\u3002\u8fd9\u91cc\u5f39\u7a97\u70b9\u59cb\u7ec8\u5141\u8bb8\u3002pkg update pkg upgrade\uff1a \u66f4\u65b0\u4e00\u4e0b\u7d22\u5f15\u548c\u8f6f\u4ef6pkg install git curl ca-certificates nodejs-lts npm ripgrep \u5b89\u88c5\u6211\u4eec\u8981\u7684\u8fd9\u4e9b\u5305\u3002\u6ce8\uff1a\u5982\u679c\u6709\u95ee\u4f60\u662f\u5426\u5b89\u88c5\uff0c\u8f93\u5165y\u6216\u8005yes\u56de\u8f66\u5c31\u884c \u5305 \u7528\u9014 git \u64cd\u4f5c\u4ee3\u7801\u4ed3\u5e93 curl \u4e0b\u8f7d\u548c\u6392\u67e5 HTTP \u8fde\u63a5 nodejs-lts \u672c\u6587\u91c7\u7528\u7684 npm \u5b89\u88c5\u8def\u7ebf\u6240\u9700\u7684 Node \u73af\u5883 npm \u5b89\u88c5 npm \u8f6f\u4ef6\u5305\uff1b\u76ee\u524d\u5728 Termux \u4e2d\u4e0e Node \u5206\u5f00\u6253\u5305 ripgrep \u63d0\u4f9b Termux \u539f\u751f rg\uff0c\u4e5f\u7528\u4e8e Codex \u5305\u5185\u641c\u7d22\u5de5\u5177\u7684\u517c\u5bb9\u5904\u7406 2. Codex\u548cCC\u7684\u6587\u4ef6\/\u68af\u5b50 \u53ef\u4ee5\u624b\u52a8\u51c6\u5907\uff0c\u4f46\u662f\u547d\u4ee4\u88c5\u66f4\u597d\u3002\u4e0d\u8fc7&#8230;\u4f60\u5927\u6982\u9700\u8981\u4e00\u4e9b\u9b54\u6cd5\u3002 \u57fa\u672c\u4e0a\u5f00\u4e86\u4ee3\u7406\u5c31\u884c\u3002\u5b9e\u5728\u4e0d\u884c\u5c31\u5728\u68af\u5b50\u8f6f\u4ef6\u91cc\u9762\u6253\u5f00\u201c\u5bf9\u5c40\u57df\u7f51\u5f00\u653e\u201d \uff0c\u7136\u540e\u8bbe\u7f6e\u597d\u4e00\u4e2a\u7aef\u53e3\u5907\u7528\u3002 \u5f00\u59cb\u5b89\u88c5 1.Codex Codex \u76f4\u63a5\u88c5\u5728 Termux \u91cc\u3002\u4e0d\u8fc7\u8fd9\u91cc\u8981\u628a\u4e3b\u5305\u548c ARM64 \u5305\u4e00\u8d77\u88c5\uff1a \u8fd9\u91cc\u5c31\u662f\u5355\u72ec\u88c5codex\u3002\u88c5\u597d\u4e4b\u540e\u80af\u5b9a\u547d\u4ee4\u884c\u76f4\u63a5codex\u56de\u8f66\u542f\u52a8\uff0c\u7136\u540e\u4f60\u4f1a\u53d1\u73b0\uff0c\u6b38\u4ed6\u8fd8\u662f\u8dd1\u4e0d\u4e86&#8230;\u5355\u72ec\u6d4b\u4e00\u4e0brg\uff0c\u4f60\u5c31\u77e5\u9053\u4e3a\u5565\u4e86 \u4f46\u662f\u5176\u5b9eCodex\u81ea\u5e26\u4e86\u4e00\u4efdrg\u3002\u4e0d\u8fc7\u53ef\u60dc\u7684\u662f\uff0c\u4ed6\u4e0d\u80fd\u76f4\u63a5\u5728termux\u91cc\u9762\u8fd0\u884c\u3002\u5b83\u9700\u8981\/lib\/ld-linux-aarch64.so.1\uff0c\u4e0d\u8fc7Termux \u91cc\u6ca1\u6709\u8fd9\u4e2a\u52a0\u8f7d\u5668\u3002\u867d\u8bf4\u5982\u6b64\uff0c\u4e0d\u8fc7\u4e5f\u597d\u89e3\u51b3\u3002\u6211\u4eec\u524d\u9762\u5df2\u7ecf\u88c5\u4e86termux\u81ea\u5df1\u7684rg\u4e86\uff0c\u76f4\u63a5\u6267\u884c\u4e00\u4e2a\u66ff\u6362\u5c31\u884c\u4e86 \u63a5\u4e0b\u6765\uff0c\u5e94\u8be5\u884c\u4e86\u5427\uff1f\u76f4\u63a5codex\u542f\u52a8\uff01 \u4f60\u4f1a\u53d1\u73b0\uff0c\u8fd8\u662f\u4e0d\u884c\u3002\u4e0d\u8fc7\u5f88\u5feb\u4e86\u3002\u5df2\u7ecf\u5230\u4e86\u6700\u540e\u4e00\u4e2a\u9636\u6bb5\u5c31\u662f\u4fee\u590d\u540e\u53f0\u670d\u52a1\u3002 OAI\u5df2\u7ecf\u7ed9\u6211\u4eec\u5199\u597d\u4e86\u8fd9\u4e2a\u7684\u89e3\u51b3\u65b9\u6cd5\u3002\u4f60\u770b\u8fd9\u4e2a &#8211;no-daemon\uff0c\u6bcf\u6b21\u542f\u52a8\u7684\u65f6\u5019\u5728codex\u540e\u9762\u8ffd\u52a0\u4e0a\u8fd9\u4e2a\u5c31\u884c\u4e86\u3002\u5acc\u9ebb\u70e6\uff1f\u6709\u4e24\u4e2a\u529e\u6cd5\uff1a \u8fd9\u4e2a\u662f\u76f4\u63a5\u5e72\u6389\u81ea\u52a8\u542f\u52a8\u3002\u6ca1\u6709\u4e86\u540e\u53f0\u670d\u52a1\u90a3\u81ea\u7136\u4e0d\u4f1a\u5361\u6211\u4e86\u5bf9\u5427\uff1f\u5f53\u7136\uff0c\u4e5f\u53ef\u4ee5\u5199\u4e00\u4e2a\u522b\u540d\uff0c\u5c31\u50cf\u8fd9\u6837 \u63a5\u4e0b\u6765\uff0cCodex\u7684\u4e3b\u9875\u5e94\u8be5\u80fd\u6b63\u5e38\u6253\u5f00\u4e86\u3002\u5f00\u59cb\u723d\u73a9\u5427\u3002 2.Claude code CC\u8fd9\u91cc\u8981\u591a\u7ed5\u4e00\u6b65\u3002\u867d\u7136\u8bf4\u524d\u9762\u7684 Codex \u4e5f\u662f\u501f\u7528 Linux ARM64 \u5305\uff0c\u4f46\u662fLinux\u8f6f\u4ef6\u80fd\u4e0d\u80fd\u8dd1\u9664\u4e86\u8981\u5bf9\u4e0aARM64\u8fd9\u4e9bCPU\u67b6\u6784\uff0c\u8fd8\u8981\u770b&#8230;<\/p>\n","protected":false},"author":1,"featured_media":240,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"[]"},"categories":[30],"tags":[28,21,29],"class_list":["post-228","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-30","tag-android","tag-codex","tag-termux"],"spectra_blocks_featured_image_url":{"thumbnail":{"url":"https:\/\/www.serversalem.top\/wp-content\/uploads\/2026\/11\/04_pixel-pocket-dev-station-150x150.png","width":150,"height":150},"medium":{"url":"https:\/\/www.serversalem.top\/wp-content\/uploads\/2026\/11\/04_pixel-pocket-dev-station-300x169.png","width":300,"height":169},"medium_large":{"url":"https:\/\/www.serversalem.top\/wp-content\/uploads\/2026\/11\/04_pixel-pocket-dev-station-768x432.png","width":768,"height":432},"large":{"url":"https:\/\/www.serversalem.top\/wp-content\/uploads\/2026\/11\/04_pixel-pocket-dev-station-1024x576.png","width":960,"height":540},"full":{"url":"https:\/\/www.serversalem.top\/wp-content\/uploads\/2026\/11\/04_pixel-pocket-dev-station.png","width":1672,"height":941}},"spectra_blocks_author_info":{"display_name":"Kitasami_Nya","avatar_url":"https:\/\/www.serversalem.top\/wp-content\/uploads\/default-avatar.png","author_link":"https:\/\/www.serversalem.top\/author\/kitasami_nya\/","description":""},"_links":{"self":[{"href":"https:\/\/www.serversalem.top\/index.php\/wp-json\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serversalem.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.serversalem.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.serversalem.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serversalem.top\/index.php\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":17,"href":"https:\/\/www.serversalem.top\/index.php\/wp-json\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":253,"href":"https:\/\/www.serversalem.top\/index.php\/wp-json\/wp\/v2\/posts\/228\/revisions\/253"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.serversalem.top\/index.php\/wp-json\/wp\/v2\/media\/240"}],"wp:attachment":[{"href":"https:\/\/www.serversalem.top\/index.php\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.serversalem.top\/index.php\/wp-json\/wp\/v2\/categories?post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.serversalem.top\/index.php\/wp-json\/wp\/v2\/tags?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}