{"id":5074,"date":"2014-05-12T14:49:55","date_gmt":"2014-05-12T05:49:55","guid":{"rendered":"https:\/\/mimumimu.net\/blog\/?p=5074"},"modified":"2014-05-12T14:51:30","modified_gmt":"2014-05-12T05:51:30","slug":"fpm-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e4%bb%bb%e6%84%8f%e3%81%ae%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0%e3%82%92-rpm-%e3%81%ab%e3%81%be%e3%81%a8%e3%82%81%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/mimumimu.net\/blog\/2014\/05\/12\/fpm-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e4%bb%bb%e6%84%8f%e3%81%ae%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0%e3%82%92-rpm-%e3%81%ab%e3%81%be%e3%81%a8%e3%82%81%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82\/","title":{"rendered":"fpm \u3092\u4f7f\u3063\u3066\u4efb\u610f\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092 rpm \u306b\u307e\u3068\u3081\u3066\u307f\u308b\u3002"},"content":{"rendered":"<p>\u307f\u3080\u3089\u3067\u3059\u3002   <br \/>\u4f5c\u696d\u4e2d\u306b\u898b\u3064\u3051\u305f\u3053\u3068\u3067\u3001\u305f\u3076\u3093\u4eca\u5f8c\u3082\u4f7f\u3044\u305d\u3046\u306a\u6c17\u304c\u3059\u308b\u306e\u3067\u30e1\u30e2\u3002<\/p>\n<p>SPEC \u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308c\u3070 rpmbuild \u3067\u4e00\u767a\u306a\u306e\u3067\u3059\u304c\u3001   <br \/>\u305d\u3093\u306a\u3046\u308c\u3057\u3044\u3053\u3068\u306f\u3042\u307e\u308a\u306a\u3044\u306e\u3067\u3001\u3069\u3046\u3057\u3088\u3046\u304b\u3068\u3002<\/p>\n<p>fpm \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3068\u826f\u3044\u611f\u3058\u306b rpm \u306b\u307e\u3068\u3081\u3066\u304f\u308c\u308b\u306e\u3067\u3001   <br \/>\u3053\u308c\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3001\u3068\u3044\u3046\u305d\u3093\u306a\u8a71\u3002<\/p>\n<hr \/>\n<h3>\uff11\uff0efpm \u306e\u6e96\u5099<\/h3>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:5402cc39-208e-411b-9a15-38ceb2aaefba\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: bash;\">yum install gcc ruby ruby-devel ruby-libs rubygems rpm-build\ngem install fpm<\/pre>\n<\/div>\n<p><\/p>\n<p>rubygem \u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u305d\u308c\u7d4c\u7531\u3067\u5165\u308c\u308b\u3002<\/p>\n<hr \/>\n<h3>\uff12\uff0e\u666e\u901a\u306b\u30b3\u30f3\u30d1\u30a4\u30eb<\/h3>\n<p>\u4eca\u56de\u306f ruby \u3067\u8a66\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>configure \u306e\u6642\u306f\u3001<br \/>\n  <br \/> prefix \u3092 \u201c\/usr\u201d \u306b\u5411\u3051\u3066\u304a\u304f\u3068\u826f\u3044\u611f\u3058\u3067\u3059\u3002<\/p>\n<p>\uff08\u5225\u306b \/usr\/local\/ \u3067\u3082\u5927\u4e08\u592b\u3060\u3068\u306f\u601d\u3044\u307e\u3059\u304c\u3001\u6c17\u5206\u7684\u306b\u3002\uff09<\/p>\n<p>\u3042\u3068\u306f make \u306b \u201c-j\u201d \u3092\u4ed8\u3051\u3066 CPU \u3092\u826f\u3044\u611f\u3058\u306b\u5538\u3089\u305b\u3066\u3002<\/p>\n<p>\uff08\u4ed6\u306b\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u4f7f\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308c\u3070\u5165\u308c\u3066\u304a\u304f\u3002\uff09<\/p>\n<p>&#160;<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:16ea8626-a03c-4f1f-adb7-8915e897baf4\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: bash;\">wget http:\/\/cache.ruby-lang.org\/pub\/ruby\/2.1\/ruby-2.1.2.tar.gz\ntar zxvf ruby-2.1.2.tar.gz\ncd ruby-2.1.2\n.\/configure --prefix=\/usr\nmake -j8<\/pre>\n<\/div>\n<hr \/>\n<h3>\uff13\uff0e rpm \u3092\u4f5c\u308b<\/h3>\n<p>make \u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001<br \/>\n  <br \/>\u51fa\u529b\u7528\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u3063\u3066\u305d\u3053\u306b\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<p>\u79c1\u306e\u5834\u5408\u306f\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b ruby \u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:6ec9284f-a92c-4aaa-91e1-5507ef998e2c\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: bash;\">mkdir ~\/ruby<\/pre>\n<\/div>\n<p>\u3067\u3082\u3063\u3066\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u7d50\u679c\u3092\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5411\u3051\u3066\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:79a46627-d7d2-4410-8ec4-3ae4f8b8e4bb\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: bash;\">make install DESTDIR=~\/ruby<\/pre>\n<\/div>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u6307\u5b9a\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:5e821daf-3999-4be4-bfe0-9795982804fb\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: bash;\">[mimura1133@localhost ruby]# find ~\/ruby\n\/home\/mimura1133\/ruby\n\/home\/mimura1133\/ruby\/usr\n\/home\/mimura1133\/ruby\/usr\/lib\n\/home\/mimura1133\/ruby\/usr\/lib\/pkgconfig\n\/home\/mimura1133\/ruby\/usr\/lib\/pkgconfig\/ruby-2.1.pc\n\/home\/mimura1133\/ruby\/usr\/lib\/libruby-static.a\n\/home\/mimura1133\/ruby\/usr\/lib\/ruby\n\/home\/mimura1133\/ruby\/usr\/lib\/ruby\/site_ruby\n\/home\/mimura1133\/ruby\/usr\/lib\/ruby\/site_ruby\/2.1.0\n\/home\/mimura1133\/ruby\/usr\/lib\/ruby\/site_ruby\/2.1.0\/x86_64-linux\n\/home\/mimura1133\/ruby\/usr\/lib\/ruby\/vendor_ruby\n\/home\/mimura1133\/ruby\/usr\/lib\/ruby\/vendor_ruby\/2.1.0\n\/home\/mimura1133\/ruby\/usr\/lib\/ruby\/vendor_ruby\/2.1.0\/x86_64-linux<\/pre>\n<\/div>\n<p>&#160;<\/p>\n<p>\u6b21\u306b\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066\u3001 fpm \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066 rpm \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<p>&#160;<\/p>\n<blockquote>\n<p>\u306a\u304a\u3001 fpm \u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u306e\u30d8\u30eb\u30d7\u306f\u4e0b\u8a18URL \u306b\u3042\u308a\u307e\u3059\u3002<br \/>\n    <br \/>&#160;<a title=\"https:\/\/github.com\/jordansissel\/fpm\/wiki\" href=\"https:\/\/github.com\/jordansissel\/fpm\/wiki\">https:\/\/github.com\/jordansissel\/fpm\/wiki<\/a><\/p>\n<p>\u30fb\u30fbdeb \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u3063\u305f\u308a\u3001deb \u304b\u3089 rpm \u306b\u3057\u305f\u308a\u3068\u304b\u3082\u51fa\u6765\u308b\u3063\u307d\u3044\u3067\u3059\u306d\u3002<\/p>\n<\/blockquote>\n<p>&#160;<\/p>\n<p>\u4f55\u3082\u6c17\u306b\u305b\u305a\u3055\u304f\u3063\u3068\u4f5c\u308b\u306e\u3067\u3042\u308c\u3070\u3001<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:0c765d22-7057-4d30-b06d-517a622bf331\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: bash;\">fpm -s dir -t rpm -n (\u540d\u524d) -v (\u30d0\u30fc\u30b8\u30e7\u30f3) -C (\u51fa\u529b\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea) -p (RPM\u30d5\u30a1\u30a4\u30eb\u540d) usr\/<\/pre>\n<\/div>\n<p>\u3068\u3044\u3046\u3088\u3046\u306a\u3001\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<p>&#160;<\/p>\n<p>\u306a\u306e\u3067\u5148\u307b\u3069\u307e\u3067\u3084\u3063\u3066\u3044\u305f ruby \u306e\u5834\u5408\u306f\u3001<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:8c100688-1e7a-435b-bbfc-659e1b461d45\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: bash;\">fpm -s dir -t rpm -n ruby -v 2.1.2 -C \/root\/ruby -p ruby-2.1.2.rpm usr\/\n<\/pre>\n<\/div>\n<p>\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<p>&#160;<\/p>\n<p>\u51dd\u308b\u5834\u5408\u306f \u201c-d\u201d \u3067\u4f9d\u5b58\u95a2\u4fc2\u3092\u6307\u5b9a\u3067\u304d\u308b\u306e\u3067<\/p>\n<p>-d \u201copenssl-devel (&gt; 1.0.1)\u201d<\/p>\n<p>\u3068\u304b\u3002\u3053\u3046\u3044\u3046\u611f\u3058\u3067\u3002<\/p>\n<p>&#160;<\/p>\n<hr \/>\n<h3>\uff14\uff0e\u51fa\u6765\u305f RPM \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n<p>\u3042\u3068\u306f\u3001<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:f4a6c9c1-9fc5-49fe-9aa1-f21fb232469a\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: bash;\">rpm -ivh ruby-2.1.2.rpm<\/pre>\n<\/div>\n<p>\u3068\u304b\u53e9\u3044\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p>\u524a\u9664\u306e\u5834\u5408\u306f<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:08f7107d-8c90-4acd-8251-2078d3cf6ef2\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: bash;\">rpm -e ruby-2.1.2<\/pre>\n<\/div>\n<p>\u3068\u3057\u3066\u3082\u3044\u3044\u3057\u3001<\/p>\n<div id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:c476cb4d-ffc7-4161-8f02-3bd75c19cc9a\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<pre class=\"brush: bash;\">yum remove ruby<\/pre>\n<\/div>\n<p>\u3068\u304b\u3084\u3063\u3066\u3082\u6d88\u3048\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u307f\u3080\u3089\u3067\u3059\u3002 \u4f5c\u696d\u4e2d\u306b\u898b\u3064\u3051\u305f\u3053\u3068\u3067\u3001\u305f\u3076\u3093\u4eca\u5f8c\u3082\u4f7f\u3044\u305d\u3046\u306a\u6c17\u304c\u3059\u308b\u306e\u3067\u30e1\u30e2\u3002 SPEC \u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308c\u3070 rpmbuild \u3067\u4e00\u767a\u306a\u306e\u3067\u3059\u304c\u3001 \u305d\u3093\u306a\u3046\u308c\u3057\u3044\u3053\u3068\u306f\u3042\u307e\u308a\u306a\u3044\u306e\u3067\u3001\u3069\u3046\u3057\u3088\u3046\u304b\u3068\u3002 fpm \u30b3\u30de\u30f3\u30c9\u3092\u4f7f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[514,515,513],"class_list":["post-5074","post","type-post","status-publish","format-standard","hentry","category-unix-linux","tag-fpm","tag-rpm","tag-513"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/5074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/comments?post=5074"}],"version-history":[{"count":0,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/5074\/revisions"}],"wp:attachment":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/media?parent=5074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/categories?post=5074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/tags?post=5074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}