{"id":37148,"date":"2025-05-14T08:16:07","date_gmt":"2025-05-14T00:16:07","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/37148.html"},"modified":"2025-05-14T08:16:07","modified_gmt":"2025-05-14T00:16:07","slug":"%e5%9c%a8ubuntu%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8b%e5%ae%89%e8%a3%85%e4%bd%8e%e7%89%88%e6%9c%accuda%ef%bc%8c%e9%99%8d%e7%ba%a7-gccrunfile%ef%bc%88%e7%ac%94%e8%ae%b0%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/37148.html","title":{"rendered":"\u5728ubuntu\u670d\u52a1\u5668\u4e0b\u5b89\u88c5\u4f4e\u7248\u672ccuda\uff0c\u964d\u7ea7 GCC+runfile\uff08\u7b14\u8bb0\uff09"},"content":{"rendered":"<\/p>\n<p>\u5728\u5c1d\u8bd5\u4e86\u5728conda\u73af\u5883\u4e0b\u5b89\u88c5cudatoolkit\u548ccudnn\u540e&#xff0c;\u53d1\u73b0\u4e0d\u884c&#xff0c;\u9700\u8981\u5728\u73af\u5883\u4e0b\u914d\u7f6ecuda\u4e3a\u4e86\u4e0d\u5f71\u54cd\u9a71\u52a8cuda&#xff0c;\u51c6\u5907\u901a\u8fc7\u5b89\u88c5\u540e\u914d\u7f6e\u73af\u5883\u7684\u65b9\u5f0f\u8c03\u7528cuda\u3002<\/p>\n<p>\u6211\u9700\u8981\u505a\u7684\u662f\u5728ubuntu22.04\u5728\u6211\u7684\u7528\u6237\u73af\u5883\u4e0b\u914d\u7f6ecuda10.1&#xff0c;gcc\u9700\u6c42\u662f7&#xff0c;\u672c\u6587\u7ae0\u91c7\u7528\u7684\u65b9\u6848\u4e3b\u8981\u662f\u964d\u7ea7 GCC &#043;runfile\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;\u770b\u81ea\u5df1\u7684\u663e\u5361\u652f\u4e0d\u652f\u6301cuda\u4f4e\u7248\u672c\u3002<\/p>\n<h2> 1.\u76f8\u5173\u73af\u5883\u67e5\u9605<\/h2>\n<p>cuda10.1\u5b98\u65b9\u4e0b\u8f7d\u7f51\u5740&#xff1a;<\/p>\n<p>CUDA Toolkit 10.1 Original Archive | NVIDIA Developer<\/p>\n<p>\u6839\u636euname -m\u548clsb_release -a\u67e5\u9605\u6765\u7684\u4fe1\u606f\u53d1\u73b0\u6211\u7684\u670d\u52a1\u5668\u662fx86_64\u548cUbuntu 22.04<\/p>\n<p>(base) ubuntu&#064;xuwei-24506:~\/workdir\/qita\/OSTeC2$ uname -m<br \/>\nx86_64<br \/>\n(base) ubuntu&#064;xuwei-24506:~\/workdir\/qita\/OSTeC2$ lsb_release -a<br \/>\nNo LSB modules are available.<br \/>\nDistributor ID: Ubuntu<br \/>\nDescription:    Ubuntu 22.04.3 LTS<br \/>\nRelease:        22.04<br \/>\nCodename:       jammy <\/p>\n<p>\u67e5\u770b\u5b98\u7f51\u7684\u7248\u672c\u53d1\u73b0ubuntu\u6700\u65e9\u652f\u6301\u523018.10&#xff0c;\u800cUbuntu 22.04 \u9ed8\u8ba4 GCC 11&#xff0c;\u6240\u4ee5\u6211\u4eec\u9700\u8981\u5148\u964d\u4f4eGCC\u52307&#xff0c;\u518d\u5b89\u88c5cuda10.1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"403\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250514001605-6823e0c5a6a55.png\" width=\"1138\" \/><\/p>\n<p>\u4e0b\u8f7d\u5b8ccuda_10.1.243_418.87.00_linux.run\u6587\u4ef6\u540e&#xff0c;\u79fb\u690d\u5230\u670d\u52a1\u5668\u5de5\u4f5c\u680f\u4e0b&#xff0c;\u4e3a\u540e\u7eed\u5de5\u4f5c\u505a\u51c6\u5907<\/p>\n<h2>2.\u5b89\u88c5gcc<\/h2>\n<p>\u67e5\u770bgcc\u7248\u672c<\/p>\n<p>gcc &#8211;version <\/p>\n<p>\u67e5\u770bgcc\u8def\u5f84<\/p>\n<p>which gcc <\/p>\n<p>\u00a0\u6839\u636e\u8def\u5f84\u67e5\u770b\u4e0b\u73b0\u6709\u7684gcc&#xff0c;\u53d1\u73b0\u6ca1\u6709gcc7&#xff0c;\u90a3\u4e48\u63a5\u4e0b\u6765\u9700\u8981\u5b89\u88c5gcc7<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"129\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250514001605-6823e0c5d5ede.png\" width=\"163\" \/><\/p>\n<p>\u5c1d\u8bd5\u7528sudo apt install gcc-7 g&#043;&#043;-7 -y\u4e0b\u8f7dgcc7\u5931\u8d25\u4e86<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"240\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250514001605-6823e0c5dd156.png\" width=\"654\" \/><\/p>\n<p>\u95ee\u9898\u539f\u56e0&#xff1a;\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5 gcc-7 \u548c g&#043;&#043;-7 \u5931\u8d25\u662f\u56e0\u4e3a\u5b98\u65b9\u4ed3\u5e93\u5df2\u7ecf\u79fb\u9664\u4e86\u8fd9\u4e9b\u65e7\u7248\u672c\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u4e34\u65f6\u6dfb\u52a0 Ubuntu 20.04 (focal) \u7684\u8f6f\u4ef6\u6e90<\/p>\n<p>echo &#034;deb http:\/\/archive.ubuntu.com\/ubuntu\/ focal main universe&#034; | sudo tee \/etc\/apt\/sources.list.d\/focal.list<br \/>\nsudo apt update<br \/>\nsudo apt install gcc-7 g&#043;&#043;-7 -y<\/p>\n<p>\u8fd0\u884c\u6210\u529f\u540e\u53ef\u4ee5\u53bb\u670d\u52a1\u5668\u7528\u6237\u8def\u5f84\/usr\/bin\u786e\u8ba4\u662f\u5426\u4e0b\u8f7d\u6210\u529f<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"211\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250514001605-6823e0c5eaf18.png\" width=\"129\" \/><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u4e34\u65f6\u914d\u7f6e\u5bf9\u8bdd\u7684gcc&#xff0c;\u786e\u8ba4\u662f\u5426\u5b89\u88c5\u6210\u529f<\/p>\n<p># \u4e34\u65f6\u8bbe\u7f6e GCC 7 \u4e3a\u5f53\u524d\u4f1a\u8bdd\u7684\u9ed8\u8ba4\u7f16\u8bd1\u5668<br \/>\nexport CC&#061;\/usr\/bin\/gcc-7<br \/>\nexport CXX&#061;\/usr\/bin\/g&#043;&#043;-7<br \/>\n$CC &#8211;version  # \u8fd9\u4f1a\u8c03\u7528 gcc-7<br \/>\n$CXX &#8211;version # \u8fd9\u4f1a\u8c03\u7528 g&#043;&#043;-7 <\/p>\n<h2>3.\u5b89\u88c5cuda&#xff08;Runfile \u65b9\u5f0f&#xff09;<\/h2>\n<p>\u6253\u5f00\u5b58\u653ecuda_10.1.243_418.87.00_linux.run\u7684\u8def\u5f84&#xff0c;\u518d\u4fee\u6539\u6743\u9650<\/p>\n<p>chmod &#043;x cuda_10.1.243_418.87.00_linux.run   # \u6dfb\u52a0\u53ef\u6267\u884c\u6743\u9650 <\/p>\n<p>\u518d\u8fd0\u884c\u5b89\u88c5<\/p>\n<p>sudo .\/cuda_10.1.105_418.39_linux.run \\\\<br \/>\n    &#8211;toolkit \\\\         # \u53ea\u5b89\u88c5CUDA Toolkit<br \/>\n    &#8211;silent \\\\          # \u9759\u9ed8\u5b89\u88c5&#xff08;\u65e0\u4ea4\u4e92\u754c\u9762&#xff09;<br \/>\n    &#8211;override \\\\        # \u8986\u76d6\u5df2\u6709\u5b89\u88c5&#xff08;\u907f\u514d\u51b2\u7a81&#xff09;<br \/>\n    &#8211;no-opengl-libs    # \u4e0d\u5b89\u88c5OpenGL\u5e93&#xff08;\u9632\u6b62\u4e0e\u7cfb\u7edf\u51b2\u7a81&#xff09; <\/p>\n<p>\u5b89\u88c5\u6210\u529f\u4e86&#xff0c;\u4e00\u822c\u90fd\u662f\u5728\/usr\/local\/\u8def\u5f84\u4e0b<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"258\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250514001605-6823e0c5f3ea5.png\" width=\"141\" \/><\/p>\n<p>\u4fee\u6539cuda\u7684\u73af\u5883\u53d8\u91cf\u00a0<\/p>\n<p>export PATH&#061;&#034;$PATH:\/usr\/local\/cuda-10.1\/bin&#034;<br \/>\nexport LD_LIBRARY_PATH&#061;&#034;$LD_LIBRARY_PATH:\/usr\/local\/cuda-10.1\/lib64\/&#034;<br \/>\nexport LIBRARY_PATH&#061;&#034;$LIBRARY_PATH:\/usr\/local\/cuda-10.1\/lib64&#034;   <\/p>\n<p>\u00a0\u6216\u662f<\/p>\n<p>export CUDA_HOME&#061;\/usr\/local\/cuda-10.1<br \/>\nexport PATH&#061;$CUDA_HOME\/bin:$PATH<br \/>\nexport LD_LIBRARY_PATH&#061;$CUDA_HOME\/lib64:$LD_LIBRARY_PATH <\/p>\n<h2>4.\u5b89\u88c5cudnn<\/h2>\n<p>cudnn\u5b98\u65b9\u4e0b\u8f7d\u7f51\u5740&#xff1a;<\/p>\n<p>cuDNN Archive | NVIDIA Developer<\/p>\n<p>\u5bf9\u5e94cuda10.1&#xff0c;\u9009\u62e9cudnn7.6.5\u7248\u672c&#xff0c;\u4e0b\u8f7d\u5b8c\u6210\u540e&#xff0c;\u540c\u6837\u79fb\u690d\u5230\u5f53\u524d\u5de5\u4f5c\u680f\u4e0b<\/p>\n<p>tar -xvf cudnn-10.1-linux-x64-v7.6.5.32.tgz <\/p>\n<p>\u5220\u9664<\/p>\n<p>sudo rm -rf \/usr\/local\/cuda-10.1\/include\/cudnn.h<br \/>\nsudo rm -rf \/usr\/local\/cuda-10.1\/lib64\/libcudnn* <\/p>\n<p>\u590d\u5236<\/p>\n<p>cd cuda<br \/>\nsudo cp include\/cudnn.h \/usr\/local\/cuda-10.1\/include\/<br \/>\nsudo cp lib64\/lib* \/usr\/local\/cuda-10.1\/lib64\/<br \/>\nsudo chmod a&#043;r \/usr\/local\/cuda-10.1\/include\/cudnn.h \/usr\/local\/cuda-10.1\/lib64\/libcudnn* <\/p>\n<p>\u914d\u7f6e<\/p>\n<p> cd \/usr\/local\/cuda-10.1\/targets\/x86_64-linux\/lib\/<br \/>\nsudo ln -sf libcudnn.so.7.6.5 libcudnn.so.7  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb665\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf7\u6b21\u3002\u5728\u5c1d\u8bd5\u4e86\u5728conda\u73af\u5883\u4e0b\u5b89\u88c5cudatoolkit\u548ccudnn\u540e\uff0c\u53d1\u73b0\u4e0d\u884c\uff0c\u9700\u8981\u5728\u73af\u5883\u4e0b\u914d\u7f6ecuda\u4e3a\u4e86\u4e0d\u5f71\u54cd\u9a71\u52a8cuda\uff0c\u51c6\u5907\u901a\u8fc7\u5b89\u88c5\u540e\u914d\u7f6e\u73af\u5883\u7684\u65b9\u5f0f\u8c03\u7528cuda\u3002\u6211\u9700\u8981\u505a\u7684\u662f\u5728ubuntu22.04\u5728\u6211\u7684\u7528\u6237\u73af\u5883\u4e0b\u914d\u7f6ecuda10.1\uff0cgcc\u9700\u6c42\u662f7\uff0c\u672c\u6587\u7ae0\u91c7\u7528\u7684\u65b9\u6848\u4e3b\u8981\u662f\u964d\u7ea7 GCC +runfile\u3002_\u5982\u4f55\u964d\u4f4ecuda\u7248\u672c<\/p>\n","protected":false},"author":2,"featured_media":37143,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,103,50],"topic":[],"class_list":["post-37148","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-ubuntu","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728ubuntu\u670d\u52a1\u5668\u4e0b\u5b89\u88c5\u4f4e\u7248\u672ccuda\uff0c\u964d\u7ea7 GCC+runfile\uff08\u7b14\u8bb0\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/37148.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728ubuntu\u670d\u52a1\u5668\u4e0b\u5b89\u88c5\u4f4e\u7248\u672ccuda\uff0c\u964d\u7ea7 GCC+runfile\uff08\u7b14\u8bb0\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb665\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf7\u6b21\u3002\u5728\u5c1d\u8bd5\u4e86\u5728conda\u73af\u5883\u4e0b\u5b89\u88c5cudatoolkit\u548ccudnn\u540e\uff0c\u53d1\u73b0\u4e0d\u884c\uff0c\u9700\u8981\u5728\u73af\u5883\u4e0b\u914d\u7f6ecuda\u4e3a\u4e86\u4e0d\u5f71\u54cd\u9a71\u52a8cuda\uff0c\u51c6\u5907\u901a\u8fc7\u5b89\u88c5\u540e\u914d\u7f6e\u73af\u5883\u7684\u65b9\u5f0f\u8c03\u7528cuda\u3002\u6211\u9700\u8981\u505a\u7684\u662f\u5728ubuntu22.04\u5728\u6211\u7684\u7528\u6237\u73af\u5883\u4e0b\u914d\u7f6ecuda10.1\uff0cgcc\u9700\u6c42\u662f7\uff0c\u672c\u6587\u7ae0\u91c7\u7528\u7684\u65b9\u6848\u4e3b\u8981\u662f\u964d\u7ea7 GCC +runfile\u3002_\u5982\u4f55\u964d\u4f4ecuda\u7248\u672c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/37148.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-14T00:16:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250514001605-6823e0c5a6a55.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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.wsisp.com\/helps\/37148.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/37148.html\",\"name\":\"\u5728ubuntu\u670d\u52a1\u5668\u4e0b\u5b89\u88c5\u4f4e\u7248\u672ccuda\uff0c\u964d\u7ea7 GCC+runfile\uff08\u7b14\u8bb0\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-14T00:16:07+00:00\",\"dateModified\":\"2025-05-14T00:16:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/37148.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/37148.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/37148.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728ubuntu\u670d\u52a1\u5668\u4e0b\u5b89\u88c5\u4f4e\u7248\u672ccuda\uff0c\u964d\u7ea7 GCC+runfile\uff08\u7b14\u8bb0\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5728ubuntu\u670d\u52a1\u5668\u4e0b\u5b89\u88c5\u4f4e\u7248\u672ccuda\uff0c\u964d\u7ea7 GCC+runfile\uff08\u7b14\u8bb0\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/37148.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728ubuntu\u670d\u52a1\u5668\u4e0b\u5b89\u88c5\u4f4e\u7248\u672ccuda\uff0c\u964d\u7ea7 GCC+runfile\uff08\u7b14\u8bb0\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb665\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf7\u6b21\u3002\u5728\u5c1d\u8bd5\u4e86\u5728conda\u73af\u5883\u4e0b\u5b89\u88c5cudatoolkit\u548ccudnn\u540e\uff0c\u53d1\u73b0\u4e0d\u884c\uff0c\u9700\u8981\u5728\u73af\u5883\u4e0b\u914d\u7f6ecuda\u4e3a\u4e86\u4e0d\u5f71\u54cd\u9a71\u52a8cuda\uff0c\u51c6\u5907\u901a\u8fc7\u5b89\u88c5\u540e\u914d\u7f6e\u73af\u5883\u7684\u65b9\u5f0f\u8c03\u7528cuda\u3002\u6211\u9700\u8981\u505a\u7684\u662f\u5728ubuntu22.04\u5728\u6211\u7684\u7528\u6237\u73af\u5883\u4e0b\u914d\u7f6ecuda10.1\uff0cgcc\u9700\u6c42\u662f7\uff0c\u672c\u6587\u7ae0\u91c7\u7528\u7684\u65b9\u6848\u4e3b\u8981\u662f\u964d\u7ea7 GCC +runfile\u3002_\u5982\u4f55\u964d\u4f4ecuda\u7248\u672c","og_url":"https:\/\/www.wsisp.com\/helps\/37148.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-14T00:16:07+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250514001605-6823e0c5a6a55.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/37148.html","url":"https:\/\/www.wsisp.com\/helps\/37148.html","name":"\u5728ubuntu\u670d\u52a1\u5668\u4e0b\u5b89\u88c5\u4f4e\u7248\u672ccuda\uff0c\u964d\u7ea7 GCC+runfile\uff08\u7b14\u8bb0\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-14T00:16:07+00:00","dateModified":"2025-05-14T00:16:07+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/37148.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/37148.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/37148.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728ubuntu\u670d\u52a1\u5668\u4e0b\u5b89\u88c5\u4f4e\u7248\u672ccuda\uff0c\u964d\u7ea7 GCC+runfile\uff08\u7b14\u8bb0\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/37148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=37148"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/37148\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/37143"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=37148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=37148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=37148"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=37148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}