{"id":23870,"date":"2023-10-12T17:22:30","date_gmt":"2023-03-22T05:01:39","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/"},"modified":"2025-08-11T00:21:05","modified_gmt":"2025-08-10T16:21:05","slug":"%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/","title":{"rendered":"\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1"},"content":{"rendered":"<p>WRF\uff08Weather Research and Forecasting\uff09\u662f\u4e00\u79cd\u9886\u57df\u6c14\u8c61\u6a21\u578b\uff0c\u7528\u4e8e\u6c14\u8c61\u73b0\u8c61\u7684\u7406\u89e3\u7814\u7a76\u7b49\u3002\u8fd9\u4e2a\u6a21\u578b\u662f\u7531\u7f8e\u56fd\u7684NCAR\uff08National Center for Atmospheric Research\uff09\u5f00\u53d1\u7684\uff0c\u53ef\u4ee5\u81ea\u7531\u5730\u7528\u4e8e\u5546\u4e1a\u6216\u975e\u5546\u4e1a\u7528\u9014\u3002\u7136\u800c\uff0c\u5728\u65e5\u6587\u4e2d\uff0c\u5e76\u6ca1\u6709\u627e\u5230\u4ec5\u4f7f\u7528\u5f00\u6e90\u5de5\u5177\u6765\u7f16\u8bd1WRF\u7684\u8bf4\u660e\uff0c\u6240\u4ee5\u6211\u5c06\u5176\u7559\u4f5c\u5907\u5fd8\u5f55\u3002<\/p>\n<h2>\u64cd\u4f5c\u7cfb\u7edf (CZXT)<\/h2>\n<p>\u672c\u6587\u6240\u8ff0\u6807\u9898\uff0c\u6211\u4f7f\u7528\u7684\u662fUbuntu\u3002\u8fd9\u6b21\u4f7f\u7528\u7684\u662f22.04.3LTS\u7248\u672c\uff0c\u4f46\u6211\u8ba4\u4e3a\u5176\u4ed6\u7248\u672c\u4e5f\u6ca1\u95ee\u9898\u3002<br \/>\n\u5173\u4e8eUbuntu\u7684\u5b89\u88c5\uff0c\u56e0\u4e3a\u6709\u5f88\u591a\u4fe1\u606f\uff0c\u5728\u8fd9\u91cc\u5c31\u4e0d\u8be6\u7ec6\u8bf4\u660e\u4e86\u3002<br \/>\n\u6211\u662f\u5728\u4e00\u53f0\u65e7\u7684Intel Mac\uff08i5\uff09\u4e0a\u8fdb\u884c\u7684\u5b89\u88c5\u3002<\/p>\n<h2>\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u83b7\u53d6\u5de5\u5177\u3002<\/h2>\n<p>\u9996\u5148\uff0c\u5f00\u59cb\u66f4\u65b0\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo apt update\r\nsudo apt upgrade \r\n<\/code><\/pre>\n<p>\u5f53\u73b0\u6709\u7684\u8f6f\u4ef6\u5305\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528apt\u4ece\u4e2d\u83b7\u53d6\u6240\u9700\u7684\u5185\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo apt install -y libpng-dev libcairo2-dev libhdf5-dev hdf5-tools hdf5-helpers libhdf5-dev libhdf5-doc libhdf5-serial-dev libnetcdf-dev gfortran jasper libtext-csv-perl m4 csh netcdf-bin openmpi-bin libopenmpi-dev tar\r\n<\/code><\/pre>\n<h2>\u5b89\u88c5netcdf-fortran\u3002<\/h2>\n<p>\u56e0\u4e3a\u5728apt\u4e0a\u6ca1\u529e\u6cd5\uff0c\u6240\u4ee5\u9700\u8981\u8fdb\u884c\u6e90\u4ee3\u7801\u6784\u5efa\u3002\u8bf7\u6839\u636e\u9700\u8981\u7075\u6d3b\u9009\u62e9\u7248\u672c\u3002<br \/>\n\u8bf7\u5728~\/.bashrc\u6587\u4ef6\u4e2d\u9884\u5148\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code>#NetCDF\r\nexport PATH=\"\/usr\/local\/netcdf-fortran\/4.6.1\/bin:$PATH\"\r\nexport NETCDF=\/usr\/local\/netcdf-fortran\/4.6.1\r\nexport NETCDFHOME=$NETCDF\r\nexport NETCDF_LIB=$NETCDF\/lib\r\nexport NETCDF_INC=$NETCDF\/include\r\nexport LD_LIBRARY_PATH=\"$NETCDF\/lib:$LD_LIBRARY_PATH\"\r\nexport NETCDF_classic=1\r\n<\/code><\/pre>\n<p>\u4e0b\u8f7d\u5e76\u5236\u4f5c\u6e90\u4ee3\u7801<\/p>\n<pre class=\"post-pre\"><code>wget https:\/\/downloads.unidata.ucar.edu\/netcdf-fortran\/4.6.1\/netcdf-fortran-4.6.1.tar.gz\r\ntar -xvf netcdf-fortran-4.6.1.tar.gz\r\ncd netcdf-fortran-4.6.1\r\n.\/configure --prefix=\/usr\/local\/netcdf-fortran\/4.6.1\r\nmake check\r\nmake install\r\n<\/code><\/pre>\n<p>\u4e5f\u8bb8\u6ca1\u6709 CHECK \u4e5f\u80fd\u505a\u7684\u5f88\u597d\uff1f<\/p>\n<pre class=\"post-pre\"><code>nf-config --all\r\n<\/code><\/pre>\n<p>\u7528\u8fd9\u4e2a\u4ee5\u540e\u5982\u679c\u51fa\u73b0\u89e3\u91ca\uff0c\u5219\u6210\u529f\u3002<\/p>\n<h2>WRF\u7684\u7f16\u8bd1<\/h2>\n<p>&lt;p\u5982\u679c\u6ca1\u6709 git\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528 wget<\/p>\n<pre class=\"post-pre\"><code>git clone https:\/\/github.com\/wrf-model\/WRF\r\ncd WRF\r\n.\/configure\r\n.\/compile em_real\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>WRF\uff08Weather Research and Forecasting\uff09\u662f\u4e00\u79cd\u9886\u57df\u6c14\u8c61\u6a21\u578b\uff0c\u7528\u4e8e\u6c14\u8c61\u73b0\u8c61\u7684\u7406 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-23870","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"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>\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1\u7684\u6280\u672f\u6587\u7ae0\" \/>\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\/\u7528ubuntu\u5728wrf\u4e0a\u8fdb\u884c\u7f16\u8bd1\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u7528ubuntu\u5728wrf\u4e0a\u8fdb\u884c\u7f16\u8bd1\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-22T05:01:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-10T16:21:05+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \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\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/\",\"name\":\"\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-22T05:01:39+00:00\",\"dateModified\":\"2025-08-10T16:21:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"description\":\"\u5173\u4e8e\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1\"}]},{\"@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\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1 - Blog - Silicon Cloud","description":"\u5173\u4e8e\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1\u7684\u6280\u672f\u6587\u7ae0","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\/\u7528ubuntu\u5728wrf\u4e0a\u8fdb\u884c\u7f16\u8bd1\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1","og_description":"\u5173\u4e8e\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u7528ubuntu\u5728wrf\u4e0a\u8fdb\u884c\u7f16\u8bd1\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-22T05:01:39+00:00","article_modified_time":"2025-08-10T16:21:05+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/","name":"\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-22T05:01:39+00:00","dateModified":"2025-08-10T16:21:05+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"description":"\u5173\u4e8e\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u7528Ubuntu\u5728WRF\u4e0a\u8fdb\u884c\u7f16\u8bd1"}]},{"@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\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8ubuntu%e5%9c%a8wrf%e4%b8%8a%e8%bf%9b%e8%a1%8c%e7%bc%96%e8%af%91%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/23870","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=23870"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/23870\/revisions"}],"predecessor-version":[{"id":60049,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/23870\/revisions\/60049"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=23870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=23870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=23870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}