{"id":42742,"date":"2024-10-04T01:57:39","date_gmt":"2024-10-03T17:57:39","guid":{"rendered":"https:\/\/server.hk\/cnblog\/42742\/"},"modified":"2024-10-04T01:57:39","modified_gmt":"2024-10-03T17:57:39","slug":"centos-7-%e5%ae%89%e8%a3%9d-gamit-%e5%92%8c-gmt","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/42742\/","title":{"rendered":"CentOS 7 \u5b89\u88dd GAMIT \u548c GMT"},"content":{"rendered":"<h1 id=\"centos-7-%e5%ae%89%e8%a3%9d-gamit-%e5%92%8c-gmt-VnOBveQrCh\">CentOS 7 \u5b89\u88dd GAMIT \u548c GMT<\/h1>\n<p>\u5728\u5730\u7403\u79d1\u5b78\u548c\u5730\u7406\u4fe1\u606f\u7cfb\u7d71\uff08GIS\uff09\u9818\u57df\uff0cGAMIT \u548c GMT \u662f\u5169\u500b\u975e\u5e38\u91cd\u8981\u7684\u5de5\u5177\u3002GAMIT\uff08GPS\u5206\u6790\u548c\u5efa\u6a21\u5de5\u5177\uff09\u4e3b\u8981\u7528\u65bc\u8655\u7406\u548c\u5206\u6790\u5168\u7403\u5b9a\u4f4d\u7cfb\u7d71\uff08GPS\uff09\u6578\u64da\uff0c\u800c GMT\uff08\u5730\u7406\u88fd\u5716\u5de5\u5177\uff09\u5247\u7528\u65bc\u88fd\u4f5c\u9ad8\u54c1\u8cea\u7684\u5730\u5716\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728 CentOS 7 \u7cfb\u7d71\u4e0a\u5b89\u88dd\u9019\u5169\u500b\u5de5\u5177\u3002<\/p>\n<h2 id=\"%e5%89%8d%e6%9c%9f%e6%ba%96%e5%82%99-VnOBveQrCh\">\u524d\u671f\u6e96\u5099<\/h2>\n<p>\u5728\u958b\u59cb\u5b89\u88dd\u4e4b\u524d\uff0c\u78ba\u4fdd\u60a8\u7684 CentOS 7 \u7cfb\u7d71\u5df2\u7d93\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u66f4\u65b0\uff1a<\/p>\n<pre><code>sudo yum update -y<\/code><\/pre>\n<p>\u6b64\u5916\uff0c\u60a8\u9700\u8981\u5b89\u88dd\u4e00\u4e9b\u5fc5\u8981\u7684\u4f9d\u8cf4\u5305\uff0c\u9019\u4e9b\u5305\u5c07\u5e6b\u52a9\u60a8\u9806\u5229\u5b89\u88dd GAMIT \u548c GMT\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88dd\u4f9d\u8cf4\u5305\uff1a<\/p>\n<pre><code>sudo yum install gcc gcc-c++ make cmake git wget -y<\/code><\/pre>\n<h2 id=\"%e5%ae%89%e8%a3%9d-gamit-VnOBveQrCh\">\u5b89\u88dd GAMIT<\/h2>\n<p>\u63a5\u4e0b\u4f86\uff0c\u6211\u5011\u5c07\u5b89\u88dd GAMIT\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u5f9e\u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09 GAMIT \u7684\u6700\u65b0\u7248\u672c\u3002\u53ef\u4ee5\u4f7f\u7528 wget \u547d\u4ee4\u4f86\u4e0b\u8f09\uff1a<\/p>\n<pre><code>wget http:\/\/www.gamit.org\/download\/gamit-10.7.tar.gz<\/code><\/pre>\n<p>\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u89e3\u58d3\u7e2e\u6587\u4ef6\uff1a<\/p>\n<pre><code>tar -zxvf gamit-10.7.tar.gz<\/code><\/pre>\n<p>\u9032\u5165\u89e3\u58d3\u5f8c\u7684\u76ee\u9304\uff1a<\/p>\n<pre><code>cd gamit-10.7<\/code><\/pre>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u7de8\u8b6f GAMIT\u3002\u9996\u5148\uff0c\u5275\u5efa\u4e00\u500b\u76ee\u9304\u4f86\u5b58\u653e\u7de8\u8b6f\u6587\u4ef6\uff1a<\/p>\n<pre><code>mkdir build &amp;&amp; cd build<\/code><\/pre>\n<p>\u7136\u5f8c\uff0c\u4f7f\u7528 cmake \u9032\u884c\u914d\u7f6e\uff1a<\/p>\n<pre><code>cmake ..<\/code><\/pre>\n<p>\u6700\u5f8c\uff0c\u4f7f\u7528 make \u547d\u4ee4\u7de8\u8b6f\u4e26\u5b89\u88dd\uff1a<\/p>\n<pre><code>make &amp;&amp; sudo make install<\/code><\/pre>\n<h2 id=\"%e5%ae%89%e8%a3%9d-gmt-VnOBveQrCh\">\u5b89\u88dd GMT<\/h2>\n<p>\u5b89\u88dd\u5b8c GAMIT \u5f8c\uff0c\u63a5\u4e0b\u4f86\u662f\u5b89\u88dd GMT\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u5f9e GMT \u7684\u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09\u6700\u65b0\u7248\u672c\uff1a<\/p>\n<pre><code>wget https:\/\/github.com\/GenericMappingTools\/gmt\/releases\/download\/6.2.0\/gmt-6.2.0.tar.gz<\/code><\/pre>\n<p>\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u89e3\u58d3\u7e2e\u6587\u4ef6\uff1a<\/p>\n<pre><code>tar -zxvf gmt-6.2.0.tar.gz<\/code><\/pre>\n<p>\u9032\u5165\u89e3\u58d3\u5f8c\u7684\u76ee\u9304\uff1a<\/p>\n<pre><code>cd gmt-6.2.0<\/code><\/pre>\n<p>\u7136\u5f8c\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u7de8\u8b6f\u548c\u5b89\u88dd\uff1a<\/p>\n<pre><code>mkdir build &amp;&amp; cd build\ncmake ..\nmake\nsudo make install<\/code><\/pre>\n<h2 id=\"%e7%92%b0%e5%a2%83%e8%ae%8a%e9%87%8f%e8%a8%ad%e7%bd%ae-VnOBveQrCh\">\u74b0\u5883\u8b8a\u91cf\u8a2d\u7f6e<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u9700\u8981\u8a2d\u7f6e\u74b0\u5883\u8b8a\u91cf\uff0c\u4ee5\u4fbf\u7cfb\u7d71\u80fd\u5920\u627e\u5230 GAMIT \u548c GMT \u7684\u53ef\u57f7\u884c\u6587\u4ef6\u3002\u53ef\u4ee5\u5728\u60a8\u7684\u4e3b\u76ee\u9304\u4e0b\u7684 .bashrc \u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u884c\uff1a<\/p>\n<pre><code>export PATH=$PATH:\/usr\/local\/gamit\/bin\nexport PATH=$PATH:\/usr\/local\/gmt\/bin<\/code><\/pre>\n<p>\u4fdd\u5b58\u6587\u4ef6\u5f8c\uff0c\u904b\u884c\u4ee5\u4e0b\u547d\u4ee4\u4f7f\u66f4\u6539\u751f\u6548\uff1a<\/p>\n<pre><code>source ~\/.bashrc<\/code><\/pre>\n<h2 id=\"%e6%b8%ac%e8%a9%a6%e5%ae%89%e8%a3%9d-VnOBveQrCh\">\u6e2c\u8a66\u5b89\u88dd<\/h2>\n<p>\u6700\u5f8c\uff0c\u60a8\u53ef\u4ee5\u901a\u904e\u904b\u884c\u4ee5\u4e0b\u547d\u4ee4\u4f86\u6e2c\u8a66 GAMIT \u548c GMT \u662f\u5426\u5b89\u88dd\u6210\u529f\uff1a<\/p>\n<pre><code>gamit -v\ngmt --version<\/code><\/pre>\n<p>\u5982\u679c\u986f\u793a\u7248\u672c\u865f\uff0c\u5247\u8868\u793a\u5b89\u88dd\u6210\u529f\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-VnOBveQrCh\">\u7e3d\u7d50<\/h2>\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5011\u4ecb\u7d39\u4e86\u5982\u4f55\u5728 CentOS 7 \u7cfb\u7d71\u4e0a\u5b89\u88dd GAMIT \u548c GMT\u3002\u9019\u5169\u500b\u5de5\u5177\u5728\u5730\u7406\u4fe1\u606f\u7cfb\u7d71\u548c\u5730\u7403\u79d1\u5b78\u7814\u7a76\u4e2d\u5177\u6709\u91cd\u8981\u7684\u61c9\u7528\u50f9\u503c\u3002\u82e5\u60a8\u9700\u8981\u7a69\u5b9a\u7684\u4f3a\u670d\u5668\u4f86\u904b\u884c\u9019\u4e9b\u5de5\u5177\uff0c\u8003\u616e\u4f7f\u7528 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u6216 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0c\u4ee5\u78ba\u4fdd\u6700\u4f73\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to install GAMIT and GMT on CentOS 7 with step-by-step instructions for seamless geophysical data processing.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-42742","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=42742"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42742\/revisions"}],"predecessor-version":[{"id":42743,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42742\/revisions\/42743"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=42742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=42742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=42742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}