{"id":511,"date":"2014-09-09T16:44:59","date_gmt":"2014-09-09T07:44:59","guid":{"rendered":"https:\/\/blog.ymyzk.com\/?p=511"},"modified":"2014-12-03T09:57:07","modified_gmt":"2014-12-03T00:57:07","slug":"os-x-yosemite-mongodb","status":"publish","type":"post","link":"https:\/\/blog.ymyzk.com\/2014\/09\/os-x-yosemite-mongodb\/","title":{"rendered":"OS X Yosemite \u306b MongoDB \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b"},"content":{"rendered":"

OS X Yosemite \u3067\u306f MongoDB \u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u305f\u3081, Homebrew \u7b49\u3067 MongoDB \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u305b\u3093. \u30b3\u30f3\u30d1\u30a4\u30eb\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u5909\u66f4\u3068\u30d1\u30c3\u30c1\u306e\u9069\u7528\u3067 Yosemite \u306b\u3082 MongoDB \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059.<\/p>\n

<\/p>\n

Formula \u306e\u53d6\u5f97<\/h2>\n

\u6700\u65b0\u306e Formula \u3092\u53d6\u5f97\u3057\u3066\u304a\u304d\u307e\u3059.<\/p>\n

\r\nbrew update\r\n<\/pre>\n

Formula \u306e\u7de8\u96c6<\/h2>\n

Formula \u3092\u7de8\u96c6\u3057\u307e\u3059.<\/p>\n

\r\nbrew edit mongodb\r\n<\/pre>\n

1\u3064\u76ee\u306e\u4fee\u6b63\u70b9\u306f\u4ee5\u4e0b\u306e\u90e8\u5206\u3067, osx-version-min \u306b 10.10 \u3092\u6307\u5b9a\u3059\u308b\u3068, \u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067 10.9 \u306b\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059.<\/p>\n

\r\nargs = %W[\r\n  --prefix=#{prefix}\r\n  -j#{ENV.make_jobs}\r\n  --cc=#{ENV.cc}\r\n  --cxx=#{ENV.cxx}\r\n  --osx-version-min=#{MacOS.version}\r\n]\r\n<\/pre>\n

\u5909\u66f4\u5f8c<\/p>\n

\r\nargs = %W[\r\n  --prefix=#{prefix}\r\n  -j#{ENV.make_jobs}\r\n  --cc=#{ENV.cc}\r\n  --cxx=#{ENV.cxx}\r\n  --osx-version-min=10.9\r\n]\r\n<\/pre>\n

2\u3064\u76ee\u306e\u4fee\u6b63\u70b9\u306f\u30d1\u30c3\u30c1\u306e\u9069\u7528\u51e6\u7406\u306e\u8ffd\u52a0\u3067, \u3053\u308c\u3092 def install \u306e\u76f4\u524d\u306b\u8ffd\u52a0\u3057\u307e\u3059.<\/p>\n

\r\n  if MacOS.version == :yosemite\r\n    patch :p1 do\r\n      url "https:\/\/gist.githubusercontent.com\/LinusU\/a1771562fec0201c54cd\/raw\/98825f9fbe93b8cc524e05a9c0e99864e8301731\/mongodb.diff"\r\n      sha1 "fc45a39ec5511bff3373f4a531dd035eec79d2ea"\r\n    end\r\n  end\r\n<\/pre>\n

\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n

Formula \u3092\u4fdd\u5b58\u3057\u3066, \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059.<\/p>\n

\r\nbrew install mongodb\r\n<\/pre>\n

\u53c2\u8003<\/h2>\n