{"id":178,"date":"2016-01-24T22:32:23","date_gmt":"2016-01-24T13:32:23","guid":{"rendered":"http:\/\/www.daimlars.jp\/blog\/?p=178"},"modified":"2016-01-24T22:32:23","modified_gmt":"2016-01-24T13:32:23","slug":"aws-sdk%e5%b0%8e%e5%85%a5","status":"publish","type":"post","link":"http:\/\/daimlars.jp\/blog\/?p=178","title":{"rendered":"AWS SDK\u5c0e\u5165"},"content":{"rendered":"<div data-role=\"amazonjs\" data-asin=\"4797382570\" data-locale=\"JP\" data-tmpl=\"\" data-img-size=\"\" class=\"asin_4797382570_JP_ amazonjs_item\"><div class=\"amazonjs_indicator\"><span class=\"amazonjs_indicator_img\"><\/span><a class=\"amazonjs_indicator_title\" href=\"#\">Amazon Web Services \u30d1\u30bf\u30fc\u30f3\u5225\u69cb\u7bc9\u30fb\u904b\u7528\u30ac\u30a4\u30c9<\/a><span class=\"amazonjs_indicator_footer\"><\/span><\/div><\/div>\n<p>\u3053\u306e\u672c\u3092\u898b\u306a\u304c\u3089\u3001\u52c9\u5f37\u3002\u307e\u305a\u306fSDK\u5c0e\u5165\u3002<\/p>\n<pre class=\"lang:default decode:true\">bash-3.2# gem install aws-sdk\nFetching: jmespath-1.1.3.gem (100%)\nSuccessfully installed jmespath-1.1.3\nFetching: aws-sdk-core-2.2.13.gem (100%)\nSuccessfully installed aws-sdk-core-2.2.13\nFetching: aws-sdk-resources-2.2.13.gem (100%)\nSuccessfully installed aws-sdk-resources-2.2.13\nFetching: aws-sdk-2.2.13.gem (100%)\nSuccessfully installed aws-sdk-2.2.13\nParsing documentation for jmespath-1.1.3\nInstalling ri documentation for jmespath-1.1.3\nParsing documentation for aws-sdk-core-2.2.13\nInstalling ri documentation for aws-sdk-core-2.2.13\nParsing documentation for aws-sdk-resources-2.2.13\nInstalling ri documentation for aws-sdk-resources-2.2.13\nParsing documentation for aws-sdk-2.2.13\nInstalling ri documentation for aws-sdk-2.2.13\n4 gems installed<\/pre>\n<p>pear\u3063\u3066\u3070\u4f55\u3067\u3059\u304b\u306d\uff1f<\/p>\n<pre class=\"lang:default decode:true\">bash-3.2# pear config-set auto_discover 1\nbash: pear: command not found<\/pre>\n<p>\u3068\u308a\u3042\u3048\u305a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre class=\"lang:default decode:true\">bash-3.2# homebrew install pear\nbash: homebrew: command not found<\/pre>\n<p>\u3044\u3064\u306e\u307e\u306b\u304bhomebrew\u3082\u7121\u304f\u306a\u3063\u3066\u3044\u305f\u3002MacOS\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u306b\u6d88\u3048\u3066\u305f\u3063\u307d\u3044\u3002<\/p>\n<pre class=\"lang:default decode:true\">bash-3.2# curl -O http:\/\/pear.php.net\/go-pear.phar\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current    Dload  Upload   Total   Spent    Left  Speed\n100 3482k  100 3482k    0     0  87829      0  0:00:40  0:00:40 --:--:--  132k<\/pre>\n<p>\u4e00\u65e6\u8ae6\u3081\u305f\u3088\u3002\u304a\u3068\u306a\u3057\u304fcurl\u5148\u751f\u767a\u52d5\u3002<\/p>\n<pre class=\"lang:default decode:true \">php -d detect_unicode=0 go-pear.phar\nBelow is a suggested file layout for your new PEAR installation.\u00a0 To\nchange individual locations, type the number in front of the\ndirectory.\u00a0 Type 'all' to change all of them or simply press Enter to\naccept these locations.\n1. Installation base ($prefix) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\n2. Temporary directory for processing\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/tmp\/pear\/install\n3. Temporary directory for downloads \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/tmp\/pear\/install\n4. Binaries directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/bin\n5. PHP code directory ($php_dir) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/share\/pear\n6. Documentation directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/docs\n7. Data directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/data\n8. User-modifiable configuration files directory : \/usr\/cfg\n9. Public Web Files directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/www\n10. System manual pages directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/man\n11. Tests directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/tests\n12. Name of configuration file\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/private\/etc\/pear.conf\n1-12, 'all' or Enter to continue: all\nInstallation base ($prefix) [\/usr] :\nTemporary directory for processing [\/tmp\/pear\/install] :\nTemporary directory for downloads [\/tmp\/pear\/install] :\nBinaries directory [$prefix\/bin] :\nPHP code directory ($php_dir) [$prefix\/share\/pear] :\nDocumentation directory [$prefix\/docs] :\nData directory [$prefix\/data] :\nUser-modifiable configuration files directory [$prefix\/cfg] :\nPublic Web Files directory [$prefix\/www] :\nSystem manual pages directory [$prefix\/man] :\nTests directory [$prefix\/tests] :\nName of configuration file [\/private\/etc\/pear.conf] :\nBelow is a suggested file layout for your new PEAR installation.\u00a0 To\nchange individual locations, type the number in front of the\ndirectory.\u00a0 Type 'all' to change all of them or simply press Enter to\naccept these locations.\n1. Installation base ($prefix) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\n2. Temporary directory for processing\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/tmp\/pear\/install\n3. Temporary directory for downloads \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/tmp\/pear\/install\n4. Binaries directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/bin\n5. PHP code directory ($php_dir) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/share\/pear\n6. Documentation directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/docs\n7. Data directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/data\n8. User-modifiable configuration files directory : \/usr\/cfg\n9. Public Web Files directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/www\n10. System manual pages directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/man\n11. Tests directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/tests\n12. Name of configuration file\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/private\/etc\/pear.conf\n1-12, 'all' or Enter to continue:\nUnable to create PHP code directory ($php_dir) \/usr\/share\/pear.\nRun this script as root or pick another location.\nbash-3.2# php -d detect_unicode=0 go-pear.phar\nBelow is a suggested file layout for your new PEAR installation.\u00a0 To\nchange individual locations, type the number in front of the\ndirectory.\u00a0 Type 'all' to change all of them or simply press Enter to\naccept these locations.\n1. Installation base ($prefix) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\n2. Temporary directory for processing\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/tmp\/pear\/install\n3. Temporary directory for downloads \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/tmp\/pear\/install\n4. Binaries directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/bin\n5. PHP code directory ($php_dir) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/share\/pear\n6. Documentation directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/docs\n7. Data directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/data\n8. User-modifiable configuration files directory : \/usr\/cfg\n9. Public Web Files directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/www\n10. System manual pages directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/man\n11. Tests directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/tests\n12. Name of configuration file\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/private\/etc\/pear.conf\n1-12, 'all' or Enter to continue:\nUnable to create PHP code directory ($php_dir) \/usr\/share\/pear.\nRun this script as root or pick another location.<\/pre>\n<p>El Capitan\u306f\/usr\/sharet\u3068\u304b\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4f5c\u3089\u305b\u3066\u304f\u308c\u306a\u3044\u307f\u305f\u3044\u3002<\/p>\n<p>http:\/\/stackoverflow.com\/questions\/33309005\/sudo-mkdir-in-usr-operation-not-permitted-el-capitan<\/p>\n<pre class=\"lang:default decode:true\">bash-3.2# php -d detect_unicode=0 go-pear.phar\nBelow is a suggested file layout for your new PEAR installation.\u00a0 To\nchange individual locations, type the number in front of the\ndirectory.\u00a0 Type 'all' to change all of them or simply press Enter to\naccept these locations.\n1. Installation base ($prefix) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\n2. Temporary directory for processing\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/tmp\/pear\/install\n3. Temporary directory for downloads \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/tmp\/pear\/install\n4. Binaries directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/bin\n5. PHP code directory ($php_dir) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/share\/pear\n6. Documentation directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/docs\n7. Data directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/data\n8. User-modifiable configuration files directory : \/usr\/cfg\n9. Public Web Files directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/www\n10. System manual pages directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/man\n11. Tests directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/tests\n12. Name of configuration file\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/private\/etc\/pear.conf\n1-12, 'all' or Enter to continue: all\nInstallation base ($prefix) [\/usr] : \/usr\/local\nTemporary directory for processing [\/tmp\/pear\/install] :\nTemporary directory for downloads [\/tmp\/pear\/install] :\nBinaries directory [$prefix\/bin] :\nPHP code directory ($php_dir) [$prefix\/share\/pear] :\nDocumentation directory [$prefix\/docs] :\nData directory [$prefix\/data] :\nUser-modifiable configuration files directory [$prefix\/cfg] :\nPublic Web Files directory [$prefix\/www] :\nSystem manual pages directory [$prefix\/man] :\nTests directory [$prefix\/tests] :\nName of configuration file [\/private\/etc\/pear.conf] :\nBelow is a suggested file layout for your new PEAR installation.\u00a0 To\nchange individual locations, type the number in front of the\ndirectory.\u00a0 Type 'all' to change all of them or simply press Enter to\naccept these locations.\n1. Installation base ($prefix) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/local\n2. Temporary directory for processing\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/tmp\/pear\/install\n3. Temporary directory for downloads \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/tmp\/pear\/install\n4. Binaries directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/local\/bin\n5. PHP code directory ($php_dir) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/local\/share\/pear\n6. Documentation directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/local\/docs\n7. Data directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/local\/data\n8. User-modifiable configuration files directory : \/usr\/local\/cfg\n9. Public Web Files directory\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/local\/www\n10. System manual pages directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/local\/man\n11. Tests directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/local\/tests\n12. Name of configuration file\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/private\/etc\/pear.conf\n1-12, 'all' or Enter to continue:\nBeginning install...\nConfiguration written to \/private\/etc\/pear.conf...\nInitialized registry...\nPreparing to install...\ninstalling phar:\/\/\/Volumes\/My Book Thunderbolt Duo\/go-pear.phar\/PEAR\/go-pear-tarballs\/Archive_Tar-1.4.0.tar...\ninstalling phar:\/\/\/Volumes\/My Book Thunderbolt Duo\/go-pear.phar\/PEAR\/go-pear-tarballs\/Console_Getopt-1.4.1.tar...\ninstalling phar:\/\/\/Volumes\/My Book Thunderbolt Duo\/go-pear.phar\/PEAR\/go-pear-tarballs\/PEAR-1.10.1.tar...\ninstalling phar:\/\/\/Volumes\/My Book Thunderbolt Duo\/go-pear.phar\/PEAR\/go-pear-tarballs\/Structures_Graph-1.1.1.tar...\ninstalling phar:\/\/\/Volumes\/My Book Thunderbolt Duo\/go-pear.phar\/PEAR\/go-pear-tarballs\/XML_Util-1.3.0.tar...\ninstall ok: channel:\/\/pear.php.net\/Archive_Tar-1.4.0\ninstall ok: channel:\/\/pear.php.net\/Console_Getopt-1.4.1\ninstall ok: channel:\/\/pear.php.net\/Structures_Graph-1.1.1\ninstall ok: channel:\/\/pear.php.net\/XML_Util-1.3.0\ninstall ok: channel:\/\/pear.php.net\/PEAR-1.10.1\nPEAR: Optional feature webinstaller available (PEAR's web-based installer)\nPEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)\nPEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)\nPEAR: To install optional features use \"pear install pear\/PEAR#featurename\"\n******************************************************************************\nWARNING!\u00a0 The include_path defined in the currently used php.ini does not\ncontain the PEAR PHP directory you just specified:\n&lt;\/usr\/local\/share\/pear&gt;\nIf the specified directory is also not in the include_path used by\nyour scripts, you will have problems getting any PEAR packages working.\nWould you like to alter php.ini &lt;\/etc\/php.ini&gt;? [Y\/n] : Y\nphp.ini &lt;\/etc\/php.ini&gt; include_path updated.\nCurrent include path \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : .:\nConfigured directory \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 : \/usr\/local\/share\/pear\nCurrently used php.ini (guess) : \/etc\/php.ini\nPress Enter to continue:\nThe 'pear' command is now at your service at \/usr\/local\/bin\/pear\n** The 'pear' command is not currently in your PATH, so you need to\n** use '\/usr\/local\/bin\/pear' until you have added\n** '\/usr\/local\/bin' to your PATH environment variable.\nRun it without parameters to see the available actions, try 'pear list'\nto see what packages are installed, or 'pear help' for help.\nFor more information about PEAR, see:\n\u00a0 http:\/\/pear.php.net\/faq.php\n\u00a0 http:\/\/pear.php.net\/manual\/\nThanks for using go-pear!\nbash-3.2#<\/pre>\n<blockquote><p>&nbsp;<\/p><\/blockquote>\n<p>\u3044\u308d\u3044\u308d\u51fa\u3066\u3044\u308b\u3051\u3069\u3001\/usr\/local\u306b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6210\u529f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u672c\u3092\u898b\u306a\u304c\u3089\u3001\u52c9\u5f37\u3002\u307e\u305a\u306fSDK\u5c0e\u5165\u3002 bash-3.2# gem install aws-sdk Fetching: jmespath-1.1.3.gem (100%) Successfully installed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"quote","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-178","post","type-post","status-publish","format-quote","hentry","category-engineering","post_format-post-format-quote"],"_links":{"self":[{"href":"http:\/\/daimlars.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/daimlars.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/daimlars.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/daimlars.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/daimlars.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=178"}],"version-history":[{"count":0,"href":"http:\/\/daimlars.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/178\/revisions"}],"wp:attachment":[{"href":"http:\/\/daimlars.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/daimlars.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/daimlars.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}