{"id":138,"date":"2010-08-05T11:57:09","date_gmt":"2010-08-05T02:57:09","guid":{"rendered":"http:\/\/www.javable.jp\/blog\/?p=138"},"modified":"2012-04-06T06:02:10","modified_gmt":"2012-04-05T21:02:10","slug":"php%e3%81%abcurl%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%97%e3%82%88%e3%81%86%e3%81%a8%e3%81%97%e3%81%a6%e3%83%8f%e3%83%9e%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.javable.jp\/blog\/138.html","title":{"rendered":"PHP\u306bcURL\u3092\u5c0e\u5165\u3057\u3088\u3046\u3068\u3057\u3066\u30cf\u30de\u308b"},"content":{"rendered":"<p>\r\n\u4e45\u3005\u306bPHP\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u30cf\u30de\u308a\u307e\u3057\u305f\u3002\r\n<\/p><!--more-->\r\n<p>\r\nPHP4.4.9\u3067\u52d5\u3044\u3066\u3044\u305f\u65e2\u5b58\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306bcurl\u3092\u5c0e\u5165\u3059\u308b\u5fc5\u8981\u304c\u51fa\u3066\u304d\u305f\u306e\u3067\u3001<a href=\"http:\/\/www.php.net\/manual\/ja\/curl.installation.php\" class=\"external\">\u30de\u30cb\u30e5\u30a2\u30eb<\/a>\u3092\u53c2\u8003\u306b\u3001\uff08CentOS\u306a\u306e\u3067\uff09\r\n<pre class=\"screen\" style=\"color: #0F6\">\r\n\r\nyum install curl*\r\n\r\n<\/pre>\r\n\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u3002curl, curl-devel \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3082\u3088\u3046\u3002\r\n<\/p>\r\n<p>\r\n\u3055\u3066\u3044\u3088\u3044\u3088configure\u3002<br \/>\r\n\u30fb\u30fb\u30fb\u304c\u3001\u3057\u304b\u3057\u3001\r\n<pre class=\"screen\" style=\"color: #0F6\">\r\n\r\n<span style=\"color:red;\">checking for CURL support... yes\r\nchecking for CURL in default path... found in \/usr\r\nchecking for cURL 7.9.8 or greater... libcurl 7.15.5<\/span>\r\nchecking for SSL support in libcurl... yes\r\nchecking for SSL library used... openssl\r\nchecking for openssl\/crypto.h... yes\r\n<span style=\"color:red;\">checking for curl_easy_perform in -lcurl... no<\/span>\r\nconfigure: error: There is something wrong. \r\n                  Please check config.log for more information.\r\n\r\n<\/pre>\r\n\u3068\u7121\u60c5\u306b\u3082\u30a8\u30e9\u30fc\u304c\u30fb\u30fb\u30fb\r\n<\/p>\r\n<p>\r\n\u3050\u3050\u3063\u3066\u3050\u3050\u3063\u3066\u3001libidn\u3082\u5fc5\u8981\u3068\u306e\u8a18\u8ff0\u3092\u898b\u3064\u3051\u305f\u306e\u3067\u3001\u305d\u308c\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\r\n\u305d\u3046\u3044\u3048\u3070\u3001php &#038; curl \u304c\u65e2\u306b\u52d5\u3044\u3066\u3044\u308b\u74b0\u5883\u306ephpinfo()\u3092\u898b\u305f\u6642\u3082\r\n<\/p>\r\n<table cellpadding=\"3\" border=\"0\" width=\"600\" class=\"phptable\">\r\n<tbody><tr><td class=\"e\">CURL support <\/td><td class=\"v\">enabled <\/td><\/tr>\r\n<tr><td class=\"e\">CURL Information <\/td><td class=\"v\">libcurl\/7.15.5 OpenSSL\/0.9.8b zlib\/1.2.3 <span style=\"color: red;\">libidn<\/span>\/0.6.5 <\/td><\/tr>\r\n<\/tbody><\/table>\r\n<p>\r\n\u3068\u3042\u308a\u307e\u3057\u305f\u306d\u30fb\u30fb\u3088\u3057\u4eca\u5ea6\u3053\u305d\uff01<br \/>\r\n\u30fb\u30fb\u30fb\u7d50\u679c\u306f\u30c0\u30e1\u3067\u3057\u305f\u30fb\u30fb\u30fb\r\n<\/p>\r\n<p>\r\n\u3055\u3089\u306b\u3044\u308d\u3044\u308d\u3068\u8abf\u3079\u3066\u3044\u3063\u305f\u3068\u3053\u308d\u3001krb5\u304c\u5fc5\u8981\u3068\u306e\u4e8b\u3067\u3001\u305d\u308c\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001\u898b\u4e8b\u306bOK\uff01\uff01<br \/>\r\nOpenSSL\u3042\u305f\u308a\u3067\u4f7f\u3063\u3066\u3044\u308b\u3093\u3067\u3057\u3087\u3046\u304b\u306d\u30fb\u30fb\u4f55\u306b\u305b\u3088\u3001\u8131\u51fa\u3067\u304d\u3066\u826f\u304b\u3063\u305f\u3067\u3059\u3002\r\n<\/p>","protected":false},"excerpt":{"rendered":"\u4e45\u3005\u306bPHP\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u30cf\u30de\u308a\u307e\u3057\u305f\u3002","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.javable.jp\/blog\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javable.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javable.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javable.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javable.jp\/blog\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":22,"href":"https:\/\/www.javable.jp\/blog\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":251,"href":"https:\/\/www.javable.jp\/blog\/wp-json\/wp\/v2\/posts\/138\/revisions\/251"}],"wp:attachment":[{"href":"https:\/\/www.javable.jp\/blog\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javable.jp\/blog\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javable.jp\/blog\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}