{"id":1129,"date":"2012-07-17T23:44:31","date_gmt":"2012-07-17T14:44:31","guid":{"rendered":"http:\/\/redwing.moo.jp\/cocoa\/?p=1129"},"modified":"2013-04-16T13:46:13","modified_gmt":"2013-04-16T04:46:13","slug":"macports-%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89","status":"publish","type":"post","link":"https:\/\/redwing.moo.jp\/cocoa\/archives\/1129","title":{"rendered":"MacPorts \u30b3\u30de\u30f3\u30c9"},"content":{"rendered":"<p>.bashrc<\/p>\n<pre>\r\nexport PATH=\/opt\/local\/bin:\/opt\/local\/sbin\/:$PATH\r\nexport MANPATH=\/opt\/local\/man:$MANPATH\r\n<\/pre>\n<p><strong>port \u3092\u66f4\u65b0\u3059\u308b<\/strong><\/p>\n<table>\n<tr>\n<td>$ sudo port selfupdate<\/td>\n<td>MacPorts \u3092\u6700\u65b0\u306e\u72b6\u614b\u306b\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>$ sudo port sync<\/td>\n<td>ports \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u307f\u3092\u6700\u65b0\u306b\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>$ sudo port upgrade installed<\/td>\n<td>\u53e4\u304f\u306a\u3063\u305f\u5168\u3066\u306e ports \u304c\u66f4\u65b0\u3055\u308c\u308b<\/td>\n<\/tr>\n<\/table>\n<p><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8abf\u3079\u308b<\/strong><\/p>\n<table>\n<tr>\n<td>$ port installed<\/td>\n<td>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>$ port search (\u30d1\u30c3\u30b1\u30fc\u30b8\u540d)<\/td>\n<td>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u691c\u7d22\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>$ port variants php5<\/td>\n<td>php5 \u306e variants \u3092\u8abf\u3079\u308b<br \/>\n\uff08variants \u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7a2e\u5225\u307f\u305f\u3044\u306a\u3082\u306e\uff1f)<\/td>\n<\/tr>\n<\/table>\n<p><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u6709\u52b9\u5316\u3001\u7121\u52b9\u5316<\/strong><\/p>\n<table>\n<tr>\n<td>$ port activate (\u30d1\u30c3\u30b1\u30fc\u30b8\u540d)<\/td>\n<td>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6709\u52b9\u5316\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>$ port deactivate (\u30d1\u30c3\u30b1\u30fc\u30b8\u540d)<\/td>\n<td>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u7121\u52b9\u5316\u3059\u308b<\/td>\n<\/tr>\n<\/table>\n<p><strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n<table>\n<tr>\n<td>$ sudo port install (\u30d1\u30c3\u30b1\u30fc\u30b8\u540d)<\/td>\n<td>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>$ sudo port uninstall (\u30d1\u30c3\u30b1\u30fc\u30b8\u540d)<\/td>\n<td>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>$ sudo port clean (\u30d1\u30c3\u30b1\u30fc\u30b8\u540d)<\/td>\n<td>\u30d3\u30eb\u30c9\u6642\u306e\u4e2d\u9593\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>$ sudo port clean &#8211;all (\u30d1\u30c3\u30b1\u30fc\u30b8\u540d)<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<a href=\"https:\/\/twitter.com\/redwing1300?ref_src=twsrc%5Etfw\" class=\"twitter-follow-button\" data-size=\"large\" data-show-count=\"false\">Follow @redwing1300<\/a><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content --><div id=\"redwi-3656894131\" class=\"redwi- redwi-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-9652476346722993\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-9652476346722993\" \ndata-ad-slot=\"\" \ndata-ad-format=\"auto\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>.bashrc export PATH=\/opt\/local\/bin:\/opt\/local\/sbin\/:$PATH export MANPATH=\/opt\/local\/man:$MANPATH port \u3092\u66f4\u65b0\u3059\u308b $  &hellip; <a href=\"https:\/\/redwing.moo.jp\/cocoa\/archives\/1129\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[35],"class_list":["post-1129","post","type-post","status-publish","format-standard","hentry","category-unix_osx","tag-mac-ports"],"_links":{"self":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts\/1129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/comments?post=1129"}],"version-history":[{"count":8,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts\/1129\/revisions"}],"predecessor-version":[{"id":1213,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/posts\/1129\/revisions\/1213"}],"wp:attachment":[{"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/media?parent=1129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/categories?post=1129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redwing.moo.jp\/cocoa\/wp-json\/wp\/v2\/tags?post=1129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}