{"id":28898,"date":"2015-03-31T01:20:50","date_gmt":"2015-03-30T16:20:50","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=28898"},"modified":"2015-03-31T01:20:50","modified_gmt":"2015-03-30T16:20:50","slug":"macports-reinstall","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/macports-reinstall\/","title":{"rendered":"\u3010Tips\u3011\u300cMacPorts\u300d\u306e\u8abf\u5b50\u304c\u60aa\u3044\u6642\u306f\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u307b\u3046\u304c\u826f\u3044\uff01\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2015\/03\/Icommand2.png\" alt=\"Command\" title=\"command.png\" border=\"0\" width=\"545\" height=\"472\" \/><\/p>\n<p>Mac\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u300c<a href=\"https:\/\/www.macports.org\/\">MacPorts<\/a>\u300d\u306f\u3001OS X\u306e\u6a19\u6e96\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306b\u3067\u304d\u308b\u3060\u3051\u4f9d\u5b58\u305b\u305a\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u305f\u3081OS\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u3066\u3082\u3001\u305d\u306e\u307e\u307e\u52d5\u4f5c\u3059\u308b\u5834\u5408\u304c\u591a\u3044\u306e\u3067\u3059\u304c\u3001\u5fc5\u305a\u3057\u3082\u5e38\u306b\u3046\u307e\u304f\u52d5\u304d\u7d9a\u3051\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u3001MacPorts\u306e\u516c\u5f0f\u300c<a href=\"https:\/\/trac.macports.org\/wiki\/Migration\">\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30ac\u30a4\u30c9<\/a>\u300d\u3067\u306f\u3001\u300c<span class=\"mybold\">MacPorts\u306f\u3001\u7279\u5b9a\u306e\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3001\u7279\u5b9a\u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u30c7\u30b6\u30a4\u30f3\u3055\u308c\u3066\u3044\u3066\u3001OS\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3084\u3001\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u5909\u66f4\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3001\u554f\u984c\u304c\u8d77\u3053\u308b\u304b\u3082\u3057\u308c\u306a\u3044<\/span>\u300d\u3068\u6ce8\u610f\u66f8\u304d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<blockquote><p>\nA MacPorts installation is designed to work with a particular operating system and a particular hardware architecture. Problems may occur after major system changes\n<\/p><\/blockquote>\n<p>PowerPC\u304b\u3089Intel\u306e\u3088\u3046\u306a\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u5909\u66f4\u306f\u305d\u3046\u305d\u3046\u8d77\u3053\u3089\u306a\u3044\u304b\u3089\u826f\u3044\u3068\u3057\u3066\u3001OS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7(\u4f8b\u3048\u3070Mavericks\u304b\u3089Yosemite)\u6642\u306b\u3082\u3001MacPorts\u306e\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306fMacPorts\u306e\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h2>MacPorts\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806<\/h2>\n<p>\u57fa\u672c\u7684\u306b<a href=\"https:\/\/trac.macports.org\/wiki\/Migration\">\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30ac\u30a4\u30c9<\/a>\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u901a\u308a\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<h3>Xcode\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Mac App Store\u304b\u3089Xcode\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h3>MacPorts\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>OS\u3054\u3068\u306e\u30d0\u30a4\u30ca\u30ea\u30d1\u30c3\u30b1\u30fc\u30b8\u3092<a href=\"https:\/\/www.macports.org\/install.php\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a>\u3057\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\/opt\/local\/etc\/macports\u306b\u3042\u308b\u300cmacports.conf\u300d\u306a\u3069\u306econf\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u307e\u3059\u3002\u65e2\u306b\u300cmacports.conf\u300d\u304c\u5b58\u5728\u3057\u3066\u3044\u305f\u5834\u5408\u300cmacports.conf.default\u300d\u3068\u3057\u3066\u65b0\u3057\u3044\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u306e\u3067\u3001\u624b\u4f5c\u696d\u3067\u5fc5\u8981\u306a\u8a2d\u5b9a\u3092\u79fb\u690d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u81ea\u5206\u304c\u7279\u5225\u306a\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u5358\u306b\u65b0\u3057\u3044\u8a2d\u5b9a\u3092\u30d5\u30a1\u30a4\u30eb\u3092\u3001\u53e4\u3044\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u4e0a\u66f8\u304d\u3057\u3066\u3082\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n<pre>\nsudo cp macports.conf.default macports.conf\n<\/pre>\n<p>\u4ed6\u306econf\u30d5\u30a1\u30a4\u30eb\u306b\u95a2\u3057\u3066\u3082\u540c\u69d8\u3067\u3059\u3002<\/p>\n<h3>Ports\u306e\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307fports\u306e\u30ea\u30b9\u30c8\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<pre>\nport -qv installed > myports.txt\n<\/pre>\n<p>(\u30aa\u30d7\u30b7\u30e7\u30f3)requests ports(\u660e\u793a\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fports)\u306e\u30ea\u30b9\u30c8\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<pre>\nport echo requested | cut -d ' ' -f 1 > requested.txt\n<\/pre>\n<p>\u5168\u3066\u306eports\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre>\nsudo port -f uninstall installed\n<\/pre>\n<p>\u30af\u30ea\u30fc\u30f3\u3057\u307e\u3059\u3002<\/p>\n<pre>\nsudo port clean all\n<\/pre>\n<p>\u4fdd\u5b58\u3057\u3066\u304a\u3044\u305f\u30ea\u30b9\u30c8\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7528\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3063\u3066\u3001ports\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u76f4\u3057\u307e\u3059\u3002<\/p>\n<pre>\ncurl -O https:\/\/svn.macports.org\/repository\/macports\/contrib\/restore_ports\/restore_ports.tcl\nchmod +x restore_ports.tcl\nsudo .\/restore_ports.tcl myports.txt\n<\/pre>\n<p>(\u30aa\u30d7\u30b7\u30e7\u30f3)requested status\u3092\u623b\u3057\u307e\u3059\u3002\u81ea\u5206\u304c\u660e\u793a\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fports\u304c\u3069\u308c\u304b\u5206\u304b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>\nsudo port unsetrequested installed\nxargs sudo port setrequested < requested.txt\n<\/pre>\n<p>\u516c\u5f0f\u624b\u9806\u306f\u3053\u306e\u901a\u308a\u3067\u3059\u304c\u3001\u4ee5\u524d\u3068\u5168\u304f\u540c\u3058ports\u3092\u5165\u308c\u306a\u304a\u3059\u5fc5\u8981\u304c\u306a\u3044\u5834\u5408\u3001ports\u3092\u524a\u9664\u5f8c\u3001\u624b\u4f5c\u696d\u3067ports\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u65b9\u304c\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093(requested.txt\u3092\u307f\u306a\u304c\u3089)\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u5168\u304f\u540c\u3058MacPorts\u3092\u5165\u308c\u3066\u3044\u308b\u306f\u305a\u306e\u4e8c\u3064\u306eMac\u3067\u3001libz.a\u306e\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u304c\u7570\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u767a\u898b\u3057\u3001MacPorts\u304c\u53e4\u304f\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u6c17\u304c\u4ed8\u304d\u307e\u3057\u305f\u3002\u3053\u306e\u5834\u5408\u500b\u5225\u306eports\u3067\u4f55\u56de\u5165\u308c\u306a\u304a\u3057\u3066\u3082\u3060\u3081\u3067\u3001\u5168\u4f53\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u76f4\u3059\u3057\u304b\u89e3\u6c7a\u65b9\u6cd5\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>MacPorts\u306e\u8abf\u5b50\u304c\u60aa\u304f\u304b\u3064OS\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u524d\u304b\u3089MacPorts\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3046\u307e\u304f\u52d5\u304f\u3088\u3046\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mac\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u300cMacPorts\u300d\u306f\u3001OS X\u306e\u6a19\u6e96\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306b\u3067\u304d\u308b\u3060\u3051\u4f9d\u5b58\u305b\u305a\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u305f\u3081OS\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u3066\u3082\u3001\u305d\u306e\u307e\u307e\u52d5\u4f5c\u3059\u308b\u5834\u5408\u304c\u591a\u3044\u306e\u3067\u3059\u304c\u3001\u5fc5 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":28897,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[4,2047,75],"tags":[349],"class_list":["post-28898","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mac","category-tips","category-software","tag-macports"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/28898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=28898"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/28898\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/28897"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=28898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=28898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=28898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}