{"id":1411,"date":"2016-06-14T11:17:45","date_gmt":"2016-06-14T02:17:45","guid":{"rendered":"https:\/\/blog.ymyzk.com\/?p=1411"},"modified":"2016-10-08T18:36:46","modified_gmt":"2016-10-08T09:36:46","slug":"macos-sierra-homebrew","status":"publish","type":"post","link":"https:\/\/blog.ymyzk.com\/2016\/06\/macos-sierra-homebrew\/","title":{"rendered":"macOS Sierra \u3067 Homebrew \u3092\u4f7f\u3046\u65b9\u6cd5 (2016\u5e749\u6708\u66f4\u65b0)"},"content":{"rendered":"

macOS Sierra \u306e\u524d\u30d0\u30fc\u30b8\u30e7\u30f3\u306e OS X El Capitan \u304b\u3089 System Integrity Protection<\/a> (SIP) (rootless \u3068\u3082\u547c\u3070\u308c\u308b) \u3068\u3044\u3046\u6a5f\u80fd\u304c\u5c0e\u5165\u3055\u308c, \/usr<\/code> \u3084 \/System<\/code> \u3068\u3044\u3063\u305f\u91cd\u8981\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u66f8\u304d\u8fbc\u307f\u304c\u5236\u9650\u3055\u308c\u3066\u3044\u307e\u3059. \u901a\u5e38 \/usr\/local<\/code> \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b Homebrew \u3082\u3053\u306e\u5f71\u97ff\u3092\u53d7\u3051\u308b\u305f\u3081, \u3053\u308c\u3092\u56de\u907f\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059.<\/p>\n

<\/p>\n

\u5bfe\u5fdc\u65b9\u6cd5<\/h2>\n

\u57fa\u672c\u7684\u306b OS X El Capitan \u306e\u6642\u3068\u540c\u69d8\u3067\u3059. El Capitan \u3067\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u3066\u3082, \u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u969b\u306b\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u304c\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u308b\u3088\u3046\u3067\u3059.\u00a0\u305d\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u5f93\u3044\u518d\u5ea6\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044.<\/p>\n

2016\/7 \u8ffd\u8a18: Sierra \u304b\u3089 Sierra \u3078\u306e\u30de\u30a4\u30ca\u30fc\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u306f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u5909\u66f4\u4f5c\u696d\u306f\u4e0d\u8981\u306e\u3088\u3046\u3067\u3059.<\/p>\n

2016\/9\/23 \u8ffd\u8a18: Homebrew 1.0.0<\/a> \u304b\u3089 Homebrew \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u304c \/usr\/local\/Homebrew<\/code> \u4ee5\u4e0b\u306b\u5909\u66f4\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081, \u4e00\u90e8\u306e\u624b\u9806\u3092\u4fee\u6b63\u3057\u307e\u3057\u305f.<\/p>\n

\/usr\/local<\/code> \u304c\u65e2\u306b\u5b58\u5728\u3059\u308b\u5834\u5408<\/h3>\n

Homebrew \u3092\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3053\u3061\u3089\u306b\u8a72\u5f53\u3057\u307e\u3059. brew update<\/code> \u3067 Homebrew \u3092\u6700\u65b0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066\u3044\u308c\u3070, \/usr\/local<\/code> \u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306f macOS \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307e\u3067 OK<\/strong> \u3067\u3059. \u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u00a0\/usr\/local<\/code>\u00a0\u306b macOS \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059.<\/p>\n

sudo chown root:wheel \/usr\/local\r\nsudo chmod 0755 \/usr\/local<\/code><\/pre>\n

\/usr\/local<\/code> \u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408<\/h3>\n

\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u00a0\/usr\/local<\/code>\u00a0\u3092\u4f5c\u6210\u3057, \u9069\u5207\u306a\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059.<\/p>\n

sudo mkdir \/usr\/local && sudo chflags norestricted \/usr\/local && sudo chown root:wheel \/usr\/local && sudo chmod 0755 \/usr\/local<\/code><\/pre>\n

\u4e0a\u8a18\u306e\u65b9\u6cd5\u3067\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u306f, \u4e00\u5ea6 SIP \u3092\u7121\u52b9\u5316\u3057\u3066\u304b\u3089\u00a0\/usr\/local<\/code>\u00a0\u3092\u4f5c\u6210\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044. SIP \u306e\u7121\u52b9\u5316\u3084\u3088\u308a\u8a73\u7d30\u306a\u8aac\u660e\u306b\u3064\u3044\u3066\u306f, \u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u3092\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044.<\/p>\n","protected":false},"excerpt":{"rendered":"

macOS Sierra \u306e\u524d\u30d0\u30fc\u30b8\u30e7\u30f3\u306e OS X El Capitan \u304b\u3089 System Integrity Protection (SIP) (rootless \u3068\u3082\u547c\u3070\u308c\u308b) \u3068\u3044\u3046\u6a5f\u80fd\u304c\u5c0e\u5165\u3055\u308c, \/usr […]<\/p>\n","protected":false},"author":2,"featured_media":1498,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[54,21],"_links":{"self":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/1411"}],"collection":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/comments?post=1411"}],"version-history":[{"count":13,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/1411\/revisions"}],"predecessor-version":[{"id":1529,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/1411\/revisions\/1529"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/media\/1498"}],"wp:attachment":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/media?parent=1411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/categories?post=1411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/tags?post=1411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}