{"id":45341,"date":"2023-10-17T03:49:55","date_gmt":"2023-12-06T02:32:09","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/"},"modified":"2024-05-04T04:38:10","modified_gmt":"2024-05-03T20:38:10","slug":"45341-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/","title":{"rendered":""},"content":{"rendered":"<h1>\u5b9f\u65bd\u74b0\u5883<\/h1>\n<pre class=\"post-pre\"><code>CPU: Apple M1 Pro\r\nOS: 13.4\r\nshell: fish\r\n<\/code><\/pre>\n<h1>Install<\/h1>\n<p>&nbsp;<\/p>\n<p>\u306b\u5f93\u3044\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c<\/p>\n<pre class=\"post-pre\"><code>$ curl --proto '=https' --tlsv1.2 -sSf https:\/\/sh.rustup.rs | sh                                                                                                                    \ue0b2 \u2718 0|INT \ue0b2 \uf252 42s \ue0b2 07:03:48\r\ninfo: downloading installer\r\n\r\nWelcome to Rust!\r\n\r\nThis will download and install the official compiler for the Rust\r\nprogramming language, and its package manager, Cargo.\r\n\r\nRustup metadata and toolchains will be installed into the Rustup\r\nhome directory, located at:\r\n\r\n  \/Users\/republicofkorokke\/.rustup\r\n\r\nThis can be modified with the RUSTUP_HOME environment variable.\r\n\r\nThe Cargo home directory is located at:\r\n\r\n  \/Users\/republicofkorokke\/.cargo\r\n\r\nThis can be modified with the CARGO_HOME environment variable.\r\n\r\nThe cargo, rustc, rustup and other commands will be added to\r\nCargo's bin directory, located at:\r\n\r\n  \/Users\/republicofkorokke\/.cargo\/bin\r\n\r\nThis path will then be added to your PATH environment variable by\r\nmodifying the profile files located at:\r\n\r\n  \/Users\/republicofkorokke\/.profile\r\n  \/Users\/republicofkorokke\/.zshenv\r\n\r\nYou can uninstall at any time with rustup self uninstall and\r\nthese changes will be reverted.\r\n\r\nCurrent installation options:\r\n\r\n\r\n   default host triple: aarch64-apple-darwin\r\n     default toolchain: stable (default)\r\n               profile: default\r\n  modify PATH variable: yes\r\n\r\n1) Proceed with installation (default)\r\n2) Customize installation\r\n3) Cancel installation\r\n&gt;1\r\n\r\ninfo: profile set to 'default'\r\ninfo: default host triple is aarch64-apple-darwin\r\ninfo: syncing channel updates for 'stable-aarch64-apple-darwin'\r\ninfo: latest update on 2023-04-20, rust version 1.69.0 (84c898d65 2023-04-16)\r\ninfo: downloading component 'cargo'\r\ninfo: downloading component 'clippy'\r\ninfo: downloading component 'rust-docs'\r\ninfo: downloading component 'rust-std'\r\n 26.1 MiB \/  26.1 MiB (100 %)  14.2 MiB\/s in  1s ETA:  0s\r\ninfo: downloading component 'rustc'\r\n 51.5 MiB \/  51.5 MiB (100 %)  14.6 MiB\/s in  3s ETA:  0s\r\ninfo: downloading component 'rustfmt'\r\ninfo: installing component 'cargo'\r\ninfo: installing component 'clippy'\r\ninfo: installing component 'rust-docs'\r\n 13.4 MiB \/  13.4 MiB (100 %)   4.9 MiB\/s in  1s ETA:  0s\r\ninfo: installing component 'rust-std'\r\n 26.1 MiB \/  26.1 MiB (100 %)  19.2 MiB\/s in  1s ETA:  0s\r\ninfo: installing component 'rustc'\r\n 51.5 MiB \/  51.5 MiB (100 %)  21.9 MiB\/s in  2s ETA:  0s\r\ninfo: installing component 'rustfmt'\r\ninfo: default toolchain set to 'stable-aarch64-apple-darwin'\r\n\r\n  stable-aarch64-apple-darwin installed - rustc 1.69.0 (84c898d65 2023-04-16)\r\n\r\n\r\nRust is installed now. Great!\r\n\r\nTo get started you may need to restart your current shell.\r\nThis would reload your PATH environment variable to include\r\nCargo's bin directory ($HOME\/.cargo\/bin).\r\n\r\nTo configure your current shell, run:\r\nsource \"$HOME\/.cargo\/env\"\r\n<\/code><\/pre>\n<p>\u4e00\u756a\u4e0b\u306b\u300c\u4eca\u306eshell\u3067PATH\u901a\u3057\u305f\u3044\u306a\u3089source &#8220;$HOME\/.cargo\/env&#8221;\u3057\u308d\u300d \u3068\u3042\u308a\u307e\u3059\u304c<br \/>\nfish\u7528\u306e\u8a18\u8ff0\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u5b9f\u884c\u3057\u3066\u3082\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059<\/p>\n<p>fish\u3067PATH\u3092\u901a\u3059\u306b\u306fconfig.fish\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18<\/p>\n<pre class=\"post-pre\"><code>fish_add_path $HOME\/.cargo\/bin\r\n<\/code><\/pre>\n<p>fish\u3067PATH\u306e\u8ffd\u52a0\u65b9\u6cd5\u306f\u8272\u3005\u3042\u308b\u304c\u3001\u3053\u308c\u304c\u826f\u3044\u3089\u3057\u3044<\/p>\n<p>\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8<\/p>\n<p>&nbsp;<\/p>\n<p>\u6700\u5f8c\u306b config.fish \u3092\u8aad\u307f\u8fbc\u307f\u76f4\u3057\u3066curgo\u304c\u53e9\u3051\u308b\u304b\u78ba\u8a8d<\/p>\n<pre class=\"post-pre\"><code>$ source ~\/.config\/fish\/config.fish\r\n$ cargo -V\r\ncargo 1.69.0 (6e9a83356 2023-04-12)\r\n<\/code><\/pre>\n<p>\u5c0e\u5165\u306fPython\u3088\u308a\u7c21\u5358\u3067\u3088\u304b\u3063\u305f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b9f\u65bd\u74b0\u5883 CPU: Apple M1 Pro OS: 13.4 shell: fish Install &#038;nb [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45341","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u5b9f\u65bd\u74b0\u5883 CPU: Apple M1 Pro OS: 13.4 shell: fish Install &amp;nb [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-06T02:32:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-03T20:38:10+00:00\" \/>\n<meta name=\"author\" content=\"\u9038, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u9038, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-12-06T02:32:09+00:00\",\"dateModified\":\"2024-05-03T20:38:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\",\"name\":\"\u9038, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"caption\":\"\u9038, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u5b9f\u65bd\u74b0\u5883 CPU: Apple M1 Pro OS: 13.4 shell: fish Install &nb [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-12-06T02:32:09+00:00","article_modified_time":"2024-05-03T20:38:10+00:00","author":"\u9038, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9038, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-12-06T02:32:09+00:00","dateModified":"2024-05-03T20:38:10+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487","name":"\u9038, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","caption":"\u9038, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45341-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45341"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45341\/revisions"}],"predecessor-version":[{"id":96159,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45341\/revisions\/96159"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}