﻿{"id":747,"date":"2015-07-14T17:01:27","date_gmt":"2015-07-15T00:01:27","guid":{"rendered":"http:\/\/www.anvilsoftcraft.com\/weblog\/?p=747"},"modified":"2015-07-14T17:01:27","modified_gmt":"2015-07-15T00:01:27","slug":"mongodb%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.anvilsoftcraft.com\/weblog\/?p=747","title":{"rendered":"MongoDB\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u3072\u3055\u3073\u3055\u306b\u30d8\u30ea\u4ee5\u5916\u306e\u30cd\u30bf\u3002<\/p>\n<p>\u30a6\u30c1\u306e\u30b5\u30fc\u30d0\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002\u4eca\u5f8c\u3044\u308d\u3044\u308d\u8a66\u3057\u3066\u307f\u308b\u4e88\u5b9a\u3002<br \/>\n\u4ee5\u4e0b\u306f\u305d\u306e\u624b\u9806\u3002\u7c21\u5358\u306a\u65b9\u6cd5\u3067yum\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p style=\"padding-left: 30px;\">\u30fbyum\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3002\/etc\/yum.repo.d\u306bmongodb.repo\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8a18\u8ff0\u3002<br \/>\n[mongodb]<br \/>\nname=MongoDB Repository<br \/>\nbaseurl=http:\/\/downloads-distro.mongodb.org\/repo\/redhat\/os\/x86_64\/<br \/>\ngpgcheck=0<br \/>\nenabled=1<\/p>\n<p style=\"padding-left: 30px;\">\u30fbyum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n<strong>yum install -y mongodb-org<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><strong><span style=\"text-decoration: underline;\">\u30fbPHP\u304b\u3089\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u8a2d\u5b9a<\/span><\/strong><br \/>\n1.\u3000\u307e\u305amongodb.so\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5165\u308c\u308b\u3002<br \/>\n<strong>pecl install mongo<\/strong><br \/>\n\u3059\u308b\u3068\u3053\u3093\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002<br \/>\nIn file included from \/var\/tmp\/mongo\/io_stream.c:34:<br \/>\n\/var\/tmp\/mongo\/contrib\/php-ssl.h:33:25: error: openssl\/evp.h: No such file or directory<br \/>\n\/var\/tmp\/mongo\/contrib\/php-ssl.h:34:26: error: openssl\/x509.h: No such file or directory<br \/>\n\/var\/tmp\/mongo\/contrib\/php-ssl.h:35:28: error: openssl\/x509v3.h: No such file or directory<br \/>\nIn file included from \/var\/tmp\/mongo\/io_stream.c:34:<br \/>\n\/var\/tmp\/mongo\/contrib\/php-ssl.h:38: error: expected &#8216;)&#8217; before &#8216;*&#8217; token<br \/>\n\/var\/tmp\/mongo\/contrib\/php-ssl.h:39: error: expected &#8216;)&#8217; before &#8216;*&#8217; token<br \/>\n\/var\/tmp\/mongo\/contrib\/php-ssl.h:40: error: expected &#8216;)&#8217; before &#8216;*&#8217; token<br \/>\n\/var\/tmp\/mongo\/io_stream.c: In function &#8216;php_mongo_io_stream_connect&#8217;:<br \/>\n\/var\/tmp\/mongo\/io_stream.c:189: error: &#8216;X509&#8217; undeclared (first use in this function)<br \/>\n\/var\/tmp\/mongo\/io_stream.c:189: error: (Each undeclared identifier is reported only once<br \/>\n\/var\/tmp\/mongo\/io_stream.c:189: error: for each function it appears in.)<br \/>\n\/var\/tmp\/mongo\/io_stream.c:189: error: &#8216;cert&#8217; undeclared (first use in this function)<br \/>\n\/var\/tmp\/mongo\/io_stream.c:194: error: expected expression before &#8216;)&#8217; token<br \/>\nmake: *** [io_stream.lo] Error 1<br \/>\nERROR: `make&#8217; failed<\/p>\n<p>\u539f\u56e0\u306fopenssl\u3002\u306a\u306e\u3067openssl\u3092\u5165\u308c\u308b<br \/>\n<strong>yum install openssl-devel<\/strong><\/p>\n<p style=\"padding-left: 30px;\">\u305d\u308c\u3067\u3082\u3046\u4e00\u56de<br \/>\n<strong>pecl install mongo<\/strong><\/p>\n<p style=\"padding-left: 30px;\">\u305d\u3057\u305f\u3089\/etc\/php.ini\u306b\u4e0b\u8a18\u3092\u8ffd\u52a0\u3002<br \/>\nextension=mongo.so<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3072\u3055\u3073\u3055\u306b\u30d8\u30ea\u4ee5\u5916\u306e\u30cd\u30bf\u3002 \u30a6\u30c1\u306e\u30b5\u30fc\u30d0\u306bMongoDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002\u4eca\u5f8c\u3044\u308d\u3044\u308d\u8a66\u3057\u3066\u307f\u308b\u4e88\u5b9a\u3002 \u4ee5\u4e0b\u306f\u305d\u306e\u624b\u9806\u3002\u7c21\u5358\u306a\u65b9\u6cd5\u3067yum\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002 \u30fbyum\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3002\/etc\/yum.repo. &hellip; <a href=\"https:\/\/www.anvilsoftcraft.com\/weblog\/?p=747\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-747","post","type-post","status-publish","format-standard","hentry","category-software-development"],"_links":{"self":[{"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=747"}],"version-history":[{"count":0,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/747\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}