{"id":2992,"date":"2013-04-03T09:08:19","date_gmt":"2013-04-03T00:08:19","guid":{"rendered":"http:\/\/mike.md.tsukuba.ac.jp\/terui\/blog\/?p=2992"},"modified":"2021-12-27T09:31:22","modified_gmt":"2021-12-27T00:31:22","slug":"macports%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/nbsigh2.com\/?p=2992","title":{"rendered":"OSX10.8\u30b5\u30fc\u30d0\u3000\u305d\u306e\uff129\u3000Macports"},"content":{"rendered":"<p>M\u306e\u66f4\u65b0(Mountain Lion OSX10.8\u30b5\u30fc\u30d0) \u305d\u306e\uff12\uff19\u3000MacPorts<br \/>\nMacPorts \u3068\u306fMacOSX\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u306b\u4fbf\u5229\u306a\u9053\u5177\u3060\u3002Apple\u304c\u63d0\u4f9b\u3059\u308b\u30a2\u30d7\u30ea\u3067\u306f\u306a\u304f\u3001open source\u306e\u30a2\u30d7\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u304c\u697d\u306b\u306a\u308b\u3002\u30b3\u30f3\u30d1\u30a4\u30eb\u306a\u3093\u304b\u3057\u305f\u304f\u306a\u3044\u3002<br \/>\n&nbsp;<br \/>\n<a href=\"https:\/\/distfiles.macports.org\/MacPorts\/MacPorts-2.1.2.tar.bz2\">https:\/\/distfiles.macports.org\/MacPorts\/MacPorts-2.1.2.tar.bz2<\/a>\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u89e3\u51cd\u3057\u3001\u9069\u5f53\u306a\u6240\u306b\u7f6e\u304f\u3002\u3069\u3053\u3067\u3082\u3044\u3044\u304c\u3001\u3068\u308a\u3042\u3048\u305a\/usr\/local \u306b\u3064\u3063\u3053\u3093\u3067\u304a\u3044\u305f\u3002<br \/>\nsh-3.2# cd \/usr\/localmacports-2.1.2\u3000\u3067<\/p>\n<blockquote><p>sh-3.2#\u00a0\u00a0<strong>.\/configure<\/strong><br \/>\nchecking build system type&#8230; x86_64-apple-darwin12.2.0<br \/>\nchecking host system type&#8230; x86_64-apple-darwin12.2.0<br \/>\n&#8230;&#8230;<br \/>\nconfig.status: creating src\/config.h<br \/>\nsh-3.2#\u00a0<strong>make<\/strong><br \/>\n===&gt; making all in doc<br \/>\n&#8230;&#8230;<br \/>\n===&gt; making all in tests<br \/>\nmake[1]: Nothing to be done for `all&#8217;.<br \/>\nsh-3.2#\u00a0<strong>make install<\/strong><br \/>\n===&gt; making install in doc<br \/>\n&#8230;&#8230;<br \/>\nCongratulations, you have successfully installed the MacPorts system. To get the Portfiles and update the system, add \/opt\/local\/bin to your PATH and run:<br \/>\nsudo port -v selfupdate<br \/>\nPlease read &#8220;man port&#8221;, the MacPorts guide at http:\/\/guide.macports.org\/ and Wiki at https:\/\/trac.macports.org\/ for full documentation.<\/p><\/blockquote>\n<p>\u3068\u7d42\u4e86\u3059\u308b\u3002PATH\u3092\u8a2d\u5b9a\u3057\u308d\u3068\u6700\u5f8c\u306b\u884c\u3063\u3066\u3044\u308b\u306e\u3067<br \/>\n~\/.bash_profile \u00a0\u306b<br \/>\nPATH=\/opt\/local\/bin:\/opt\/local\/sbin:$PATH<br \/>\nMANPATH=\/opt\/local\/man:$MANPATH<br \/>\n\u306e\uff12\u884c\u3092\u66f8\u304d\u52a0\u3048\u3066\u304a\u3044\u305f\u3002<br \/>\n\/opt \u306b\u3059\u3079\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3053\u3068\u306b\u306a\u308b\u3002<br \/>\n\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u3002<br \/>\n\/opt\/local\/bin \u3067\u3001<\/p>\n<blockquote><p>sh-3.2# .\/port selfupdate<br \/>\n&#8212;&gt; Updating MacPorts base sources using rsync<br \/>\nMacPorts base version 2.1.2 installed,<br \/>\nMacPorts base version 2.1.3 downloaded.<br \/>\n&#8212;&gt; Updating the ports tree<br \/>\n&#8212;&gt; MacPorts base is outdated, installing new version 2.1.3<br \/>\nInstalling new MacPorts release in \/opt\/local as root:admin; permissions 0755; Tcl-Package in \/Library\/Tcl<br \/>\nThe ports tree has been updated. To upgrade your installed ports, you should run<br \/>\nport upgrade outdated<\/p><\/blockquote>\n<p>\u3068\u30a2\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u305f\u3002<br \/>\nports \u306e\u30ea\u30b9\u30c8\u306e\u540c\u671f\u3092\u884c\u3063\u3066\u304a\u304f\u3002<\/p>\n<blockquote><p>sh-3.2# .\/port sync<br \/>\n&#8212;&gt; Updating the ports tree<br \/>\nsh-3.2#<\/p><\/blockquote>\n<p><a href=\"http:\/\/www40.atwiki.jp\/bi-mu\/pages\/14.html\" target=\"_blank\" rel=\"noopener\">MacPorts\u306e\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9<\/a><br \/>\n$sudo port selfupdate<br \/>\nMacPorts\u3092\u6700\u65b0\u306e\u3082\u306e\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u3002<br \/>\n$sudo port sync<br \/>\nMacPorts\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308bports\u306e\u30ea\u30b9\u30c8\u3092\u66f4\u65b0\u3059\u308b\u3002<br \/>\n$sudo port install +&lt;v_hoge&gt;<br \/>\n\u3092variants&lt;v_hoge&gt;\u4ed8\u304d\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\n\u4f8b) pTeX\u306eutf8\u7248\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\n$sudo port install pTeX +utf8<br \/>\n$port installed<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e\u30c4\u30fc\u30eb\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u3002<br \/>\n$port installed<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30c4\u30fc\u30eb\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u8868\u793a\u3059\u308b\u3002<br \/>\n\u4f8b) $port installed pTeX<br \/>\n$port variants<br \/>\n\u306evariants\u306e\u60c5\u5831\u3092\u8868\u793a\u3059\u308b\u3002variants\u3068\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u30bd\u30d5\u30c8\u306b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u3053\u3068\u3067\u3042\u308b\u3002<br \/>\n\u4f8b) port variants pTeX<br \/>\n$port outdated<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308bports\u306e\u4e2d\u306b\u53e4\u3044\u3082\u306e\u304c\u7121\u3044\u304b\u8abf\u3079\u3001\u3082\u3057\u3042\u308b\u5834\u5408\u306b\u306f\u305d\u306e\u53e4\u3044ports\u3092\u8868\u793a\u3059\u308b\u3002<br \/>\n$sudo port upgrade installed<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u4e2d\u3067\u65e2\u306b\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u51fa\u3066\u3044\u308bports\u3092\u3001\u4e00\u62ec\u3067\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3002\u3053\u306e\u969b\u3001\u53e4\u3044ports\u306finactive\u306a\u72b6\u614b\u3067\u6b8b\u308b\u3002<br \/>\n$sudo port uninstall inactive<br \/>\n\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044(inactive\u306a)ports\u3092\u3001\u4e00\u62ec\u3067\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\n$sudo port deactivate<br \/>\nactive\u306a\u72b6\u614b\u306e\u3068\u3044\u3046ports\u3092\u3001inactive\u306a\u72b6\u614b\u306b\u3059\u308b\u3002\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3055\u308c\u305a\u3001\u30c7\u30a3\u30b9\u30af\u4e0a\u306b\u306f\u6b8b\u308b\u3002<br \/>\n$sudo port activate<br \/>\ninactive\u306a\u72b6\u614b\u306e\u3068\u3044\u3046ports\u3092\u3001active\u306a\u72b6\u614b\u306b\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[]]>\t\t<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,3],"tags":[],"class_list":["post-2992","post","type-post","status-publish","format-standard","hentry","category-mountain-lion-server","category-3"],"_links":{"self":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts\/2992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2992"}],"version-history":[{"count":1,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts\/2992\/revisions"}],"predecessor-version":[{"id":20716,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts\/2992\/revisions\/20716"}],"wp:attachment":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}