1"use strict";(globalThis.webpackChunkopenxlings_github_io=globalThis.webpackChunkopenxlings_github_io||[]).push([[70],{7208(e,n,s){s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>x,frontMatter:()=>d,metadata:()=>l,toc:()=>a});const l=JSON.parse('{"id":"faq","title":"\u5e38\u89c1\u95ee\u9898","description":"\u5b89\u88c5\u76f8\u5173","source":"@site/docs/faq.md","sourceDirName":".","slug":"/faq","permalink":"/en/docs/faq","draft":false,"unlisted":false,"editUrl":"https://github.com/openxlings/openxlings.github.io/edit/main/docs/faq.md","tags":[],"version":"current","sidebarPosition":100,"frontMatter":{"sidebar_position":100,"title":"\u5e38\u89c1\u95ee\u9898"},"sidebar":"docsSidebar","previous":{"title":"\u914d\u7f6e\u53c2\u8003","permalink":"/en/docs/reference/config"}}');var i=s(4848),r=s(8453);const d={sidebar_position:100,title:"\u5e38\u89c1\u95ee\u9898"},o="\u5e38\u89c1\u95ee\u9898",c={},a=[{value:"\u5b89\u88c5\u76f8\u5173",id:"\u5b89\u88c5\u76f8\u5173",level:2},{value:"\u5b89\u88c5\u547d\u4ee4\u6267\u884c\u540e\u6ca1\u6709\u53cd\u5e94\uff1f",id:"\u5b89\u88c5\u547d\u4ee4\u6267\u884c\u540e\u6ca1\u6709\u53cd\u5e94",level:3}
1,{value:"\u5b89\u88c5\u540e\u547d\u4ee4\u627e\u4e0d\u5230\uff1f",id:"\u5b89\u88c5\u540e\u547d\u4ee4\u627e\u4e0d\u5230",level:3},{value:"\u5982\u4f55\u66f4\u65b0 xlings \u672c\u8eab\uff1f",id:"\u5982\u4f55\u66f4\u65b0-xlings-\u672c\u8eab",level:3},{value:"\u5305\u7ba1\u7406",id:"\u5305\u7ba1\u7406",level:2},{value:"\u641c\u7d22\u4e0d\u5230\u60f3\u8981\u7684\u5305\uff1f",id:"\u641c\u7d22\u4e0d\u5230\u60f3\u8981\u7684\u5305",level:3},{value:"\u5b89\u88c5\u5305\u65f6\u4e0b\u8f7d\u592a\u6162\uff1f",id:"\u5b89\u88c5\u5305\u65f6\u4e0b\u8f7d\u592a\u6162",level:3},{value:"\u5982\u4f55\u540c\u65f6\u5b89\u88c5\u591a\u4e2a\u7248\u672c\uff1f",id:"\u5982\u4f55\u540c\u65f6\u5b89\u88c5\u591a\u4e2a\u7248\u672c",level:3},{value:"SubOS",id:"subos",level:2},{value:"subos \u4e4b\u95f4\u7684\u5305\u4f1a\u91cd\u590d\u4e0b\u8f7d\u5417\uff1f",id:"subos-\u4e4b\u95f4\u7684\u5305\u4f1a\u91cd\u590d\u4e0b\u8f7d\u5417",level:3},{value:"\u5220\u9664 subos \u540e\u78c1\u76d8\u7a7a\u95f4\u6ca1\u6709\u91ca\u653e\uff1f",id:"\u5220\u9664-subos-\u540e\u78c1\u76d8\u7a7a\u95f4\u6ca1\u6709\u91ca\u653e",level:3},{value:"shell-level \u548c global \u6a21\u5f0f\u6709\u4ec0\u4e48\u533a\u522b\uff1f",id:"shell-level-\u548c-global-\u6a21\u5f0f\u6709\u4ec0\u4e48\u533a\u522b",level:3},{value:"Sandbox",id:"sandbox",level:2},{value:"Sandbox \u548c\u666e\u901a subos \u6709\u4ec0\u4e48\u533a\u522b\uff1f",id:"sandbox-\u548c\u666e\u901a-subos-\u6709\u4ec0\u4e48\u533a\u522b",level:3},{value:"\u4e3a\u4ec0\u4e48 Sandbox \u53ea\u652f\u6301 Linux\uff1f",id:"\u4e3a\u4ec0\u4e48-sandbox-\u53ea\u652f\u6301-linux",level:3},{value:"\u5176\u4ed6",id:"\u5176\u4ed6",level:2},{value:"xlings \u548c Homebrew / apt / pacman \u6709\u4ec0\u4e48\u4e0d\u540c\uff1f",id:"xlings-\u548c-homebrew--apt--pacman-\u6709\u4ec0\u4e48\u4e0d\u540c",level:3},{value:"\u5982\u4f55\u53c2\u4e0e\u8d21\u732e\uff1f",id:"\u5982\u4f55\u53c2\u4e0e\u8d21\u732e",level:3}];function h(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"\u5e38\u89c1\u95ee\u9898",children:"\u5e38\u89c1\u95ee\u9898"})}),"\n",(0,i.jsx)(n.h2,{id:"\u5b89\u88c5\u76f8\u5173",children:"\u5b89\u88c5\u76f8\u5173"}),"\n",(0,i.jsx)(n.h3,{id:"\u5b89\u88c5\u547d\u4ee4\u6267\u884c\u540e\u6ca1\u6709\u53cd\u5e94",children:"\u5b89\u88c5\u547d\u4ee4\u6267\u884c\u540e\u6ca1\u6709\u53cd\u5e94\uff1f"}),"\n",(0,i.jsxs)(n.p,{children:["\u8bf7\u786e\u4fdd\u7f51\u7edc\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee GitHub\u3002\u5982\u679c\u8bbf\u95ee\u53d7\u9650\uff0c\u53ef\u4ee5\u901a\u8fc7 ",(0,i.jsx)(n.code,{children:"XLINGS_GITHUB_MIRROR"})," \u6307\u5b9a\u955c\u50cf\uff1a"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"XLINGS_GITHUB_MIRROR=https://mirror.example.com \\\n curl -fsSL https://mirror.example.com/openxlings/xlings/main/tools/other/quick_install.sh | bash\n"})}),"\n",(0,i.jsx)(n.p,{children:"Windows PowerShell\uff1a"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-powershell",children:'$env:XLINGS_GITHUB_MIRROR = "https://mirror.example.com"\npowershell -ExecutionPolicy Bypass -c "irm https://mirror.example.com/openxlings/xlings/main/tools/other/quick_install.ps1 | iex"\n'})}
1),"\n",(0,i.jsx)(n.h3,{id:"\u5b89\u88c5\u540e\u547d\u4ee4\u627e\u4e0d\u5230",children:"\u5b89\u88c5\u540e\u547d\u4ee4\u627e\u4e0d\u5230\uff1f"}),"\n",(0,i.jsx)(n.p,{children:"\u5b89\u88c5\u5b8c\u6210\u540e\u9700\u8981\u91cd\u65b0\u6253\u5f00\u7ec8\u7aef\uff0c\u6216\u624b\u52a8\u52a0\u8f7d shell \u914d\u7f6e\uff1a"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"source ~/.bashrc # bash\nsource ~/.zshrc # zsh\n"})}),"\n",(0,i.jsx)(n.h3,{id:"\u5982\u4f55\u66f4\u65b0-xlings-\u672c\u8eab",children:"\u5982\u4f55\u66f4\u65b0 xlings \u672c\u8eab\uff1f"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"# \u91cd\u65b0\u8fd0\u884c\u5b89\u88c5\u547d\u4ee4\u5373\u53ef\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\ncurl -fsSL https://raw.githubusercontent.com/openxlings/xlings/refs/heads/main/tools/other/quick_install.sh | bash\n"})}),"\n",(0,i.jsx)(n.h2,{id:"\u5305\u7ba1\u7406",children:"\u5305\u7ba1\u7406"}),"\n",(0,i.jsx)(n.h3,{id:"\u641c\u7d22\u4e0d\u5230\u60f3\u8981\u7684\u5305",children:"\u641c\u7d22\u4e0d\u5230\u60f3\u8981\u7684\u5305\uff1f"}),"\n",(0,i.jsx)(n.p,{children:"\u5148\u66f4\u65b0\u5305\u7d22\u5f15\uff1a"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"xlings update\n"})}),"\n",(0,i.jsxs)(n.p,{children:["\u5982\u679c\u4ecd\u7136\u627e\u4e0d\u5230\uff0c\u8bf4\u660e\u8be5\u8f6f\u4ef6\u5c1a\u672a\u6536\u5f55\u5230 xim-pkgindex\u3002\u6b22\u8fce\u901a\u8fc7 ",(0,i.jsx)(n.a,{href:"https://github.com/openxlings/xim-pkgindex",children:"Pull Request"})," \u6dfb\u52a0\u65b0\u5305\u3002"]}),"\n",(0,i.jsx)(n.h3,{id:"\u5b89\u88c5\u5305\u65f6\u4e0b\u8f7d\u592a\u6162",children:"\u5b89\u88c5\u5305\u65f6\u4e0b\u8f7d\u592a\u6162\uff1f"}),"\n",(0,i.jsxs)(n.p,{children:["\u53ef\u4ee5\u914d\u7f6e\u955c\u50cf\u6e90\u3002\u5728 ",(0,i.jsx)(n.code,{children:".xlings.json"})," \u4e2d\u8bbe\u7f6e\uff1a"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-json",children:'{\n "mirror": "CN"\n}\n'})}),"\n",(0,i.jsx)(n.h3,{id:"\u5982\u4f55\u540c\u65f6\u5b89\u88c5\u591a\u4e2a\u7248\u672c",children:"\u5982\u4f55\u540c\u65f6\u5b89\u88c5\u591a\u4e2a\u7248\u672c\uff1f"}),"\n",(0,i.jsx)(n.p,{children:"\u76f4\u63a5\u5b89\u88c5\u4e0d\u540c\u7248\u672c\u5373\u53ef\uff0cxlings \u652f\u6301\u591a\u7248\u672c\u5171\u5b58\uff1a"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"xlings install gcc@15\nxlings install gcc@13\n"})}),"\n",(0,i.jsxs)(n.p,{children:["\u7136\u540e\u7528 ",(0,i.jsx)(n.code,{children:"xlings use"})," \u5207\u6362\uff1a"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"xlings use gcc 15\nxlings use gcc 13\n"})}),"\n",(0,i.jsx)(n.h2,{id:"subos",children:"SubOS"}),"\n",(0,i.jsx)(n.h3,{id:"subos-\u4e4b\u95f4\u7684\u5305\u4f1a\u91cd\u590d\u4e0b\u8f7d\u5417",children:"subos \u4e4b\u95f4\u7684\u5305\u4f1a\u91cd\u590d\u4e0b\u8f7d\u5417\uff1f"}),"\n",(0,i.jsx)(n.p,{children:"\u4e0d\u4f1a\u3002\u6240\u6709 subos \u5171\u4eab\u540c\u4e00\u4efd\u5305 payload\uff0c\u901a\u8fc7\u5f15\u7528\u8ba1\u6570\u7ba1\u7406\u751f\u547d\u5468\u671f\u3002\u53ea\u6709\u6700\u540e\u4e00\u4e2a\u5f15\u7528\u88ab\u79fb\u9664\u65f6\u624d\u4f1a\u6e05\u7406 payload\u3002"}),"\n",(0,i.jsx)(n.h3,{id:"\u5220\u9664-subos-\u540e\u78c1\u76d8\u7a7a\u95f4\u6ca1\u6709\u91ca\u653e",children:"\u5220\u9664 subos \u540e\u78c1\u76d8\u7a7a\u95f4\u6ca1\u6709\u91ca\u653e\uff1f"}),"\n",(0,i.jsx)(n.p,{children:"\u5220\u9664 subos \u53ea\u79fb\u9664\u8be5 subos \u7684\u7248\u672c\u89c6\u56fe\u548c\u914d\u7f6e\u3002\u5982\u679c\u5176\u4ed6 subos \u4ecd\u5728\u4f7f\u7528\u76f8\u540c\u7684\u5305\uff0cpayload \u4e0d\u4f1a\u88ab\u5220\u9664\u3002\u53ef\u4ee5\u7528\u4ee5\u4e0b\u547d\u4ee4\u6e05\u7406\u65e0\u5f15\u7528\u7684 payload\uff1a"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"xlings self clean\n"})}),"\n",(0,i.jsx)(n.h3,{id:"shell-level-\u548c-global-\u6a21\u5f0f\u6709\u4ec0\u4e48\u533a\u522b",children:"shell-level \u548c global \u6a21\u5f0f\u6709\u4ec0\u4e48\u533a\u522b\uff1f"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"shell-level"}),"\uff08\u9ed8\u8ba4\uff09\uff1a\u542f\u52a8\u4e00\u4e2a\u5b50 shell\uff0c\u9000\u51fa\u540e\u56de\u5230\u539f\u73af\u5883"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"global"}),"\uff08",(0,i.jsx)(n.code,{children:"--global"}),"\uff09\uff1a\u4fee\u6539\u5168\u5c40\u6307\u9488\uff0c\u5f71\u54cd\u6240\u6709\u65b0\u6253\u5f00\u7684\u7ec8\u7aef"]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"\u63a8\u8350\u65e5\u5e38\u4f7f\u7528 shell-level \u6a21\u5f0f\uff0c\u907f\u514d\u610f\u5916\u5f71\u54cd\u5168\u5c40\u73af\u5883\u3002"}),"\n",(0,i.jsx)(n.h2,{id:"sandbox",children:"Sandbox"}),"\n",(0,i.jsx)(n.h3,{id:"sandbox-\u548c\u666e\u901a-subos-\u6709\u4ec0\u4e48\u533a\u522b",children:"Sandbox \u548c\u666e\u901a subos \u6709\u4ec0\u4e48\u533a\u522b\uff1f"}),"\n",(0,i.jsxs)(n.p,{children:["\u666e\u901a subos \u53ea\u9694\u79bb PATH \u548c\u73af\u5883\u53d8\u91cf\uff0c\u5171\u4eab\u5bbf\u4e3b\u7684 ",(0,i.jsx)(n.code,{children:"$HOME"})," \u548c dotfile\u3002Sandbox \u901a\u8fc7 proot/bwrap \u5b9e\u73b0\u6587\u4ef6\u7cfb\u7edf\u7ea7\u9694\u79bb\uff0c\u62e5\u6709\u72ec\u7acb\u7684 ",(0,i.jsx)(n.code,{children:"$HOME"}),"\u3001dotfile \u548c ",(0,i.jsx)(n.code,{children:"/etc"}),"\u3002"]}),"\n",(0,i.jsx)(n.h3,{id:"\u4e3a\u4ec0\u4e48-sandbox-\u53ea\u652f\u6301-linux",children:"\u4e3a\u4ec0\u4e48 Sandbox \u53ea\u652f\u6301 Linux\uff1f"}),"\n",(0,i.jsx)(n.p,{children:"Sandbox \u4f9d\u8d56 Linux \u7279\u6709\u7684 proot \u6216 bubblewrap (bwrap) \u5de5\u5177\u6765\u5b9e\u73b0\u6587\u4ef6\u7cfb\u7edf\u89c6\u56fe\u91cd\u5b9a\u5411\u3002macOS \u548c Windows \u
16ca1\u6709\u7b49\u6548\u673a\u5236\u3002"}),"\n",(0,i.jsx)(n.h2,{id:"\u5176\u4ed6",children:"\u5176\u4ed6"}),"\n",(0,i.jsx)(n.h3,{id:"xlings-\u548c-homebrew--apt--pacman-\u6709\u4ec0\u4e48\u4e0d\u540c",children:"xlings \u548c Homebrew / apt / pacman \u6709\u4ec0\u4e48\u4e0d\u540c\uff1f"}),"\n",(0,i.jsx)(n.p,{children:"xlings \u7684\u6838\u5fc3\u533a\u522b\u5728\u4e8e\uff1a"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u591a\u7248\u672c\u7ba1\u7406"}),"\uff1a\u539f\u751f\u652f\u6301\u540c\u4e00\u5de5\u5177\u7684\u591a\u7248\u672c\u5171\u5b58\u548c\u5207\u6362"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u8de8\u5e73\u53f0"}),"\uff1a\u540c\u4e00\u5957\u547d\u4ee4\u5728 Linux\u3001macOS\u3001Windows \u4e0a\u901a\u7528"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u73af\u5883\u9694\u79bb"}),"\uff1aSubOS \u673a\u5236\u63d0\u4f9b\u5de5\u4f5c\u7a7a\u95f4\u7ea7\u522b\u7684\u9694\u79bb"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u4e07\u7269\u7686\u53ef\u5305"}),"\uff1a\u4e0d\u4ec5\u5b89\u88c5\u8f6f\u4ef6\uff0c\u8fd8\u80fd\u5b89\u88c5\u914d\u7f6e\u3001\u6559\u7a0b\u7b49"]}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"\u5982\u4f55\u53c2\u4e0e\u8d21\u732e",children:"\u5982\u4f55\u53c2\u4e0e\u8d21\u732e\uff1f"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.a,{href:"https://github.com/openxlings/xim-pkgindex",children:"\u6dfb\u52a0\u65b0\u5305"})}),"\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.a,{href:"https://github.com/openxlings/xlings/issues",children:"\u62a5\u544a\u95ee\u9898"})}),"\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.a,{href:"https://forum.d2learn.org/category/9/xlings",children:"\u793e\u533a\u8bba\u575b"})}),"\n"]})]})}function x(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},8453(e,n,s){s.d(n,{R:()=>d,x:()=>o});var l=s(6540);const i={},r=l.createContext(i);function d(e){const n=l.useContext(r);return l.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:d(e.components),l.createElement(r.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.