{"id":749,"date":"2009-04-18T22:26:10","date_gmt":"2009-04-18T13:26:10","guid":{"rendered":"http:\/\/www.ic-tact.co.jp\/?p=749"},"modified":"2009-04-19T19:26:28","modified_gmt":"2009-04-19T10:26:28","slug":"%e4%bb%8a%e9%80%b1%e3%81%af-ruby-%e3%81%ae%e6%8b%a1%e5%bc%b5%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa%e4%bd%9c%e6%88%90%e3%81%ab%e3%83%8f%e3%83%9e%e3%82%8b","status":"publish","type":"post","link":"http:\/\/www.ic-tact.co.jp\/?p=749","title":{"rendered":"\u4eca\u9031\u306f Ruby \u306e\u62e1\u5f35\u30e9\u30a4\u30d6\u30e9\u30ea\u4f5c\u6210\u306b\u30cf\u30de\u308b"},"content":{"rendered":"<p>\u4eca\u56de\u3082\u6280\u8853\u30cd\u30bf\u3002\u6bce\u9031\u4f55\u304b\u306b\u30cf\u30de\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>Debian Lenny \u306b tarball \u304b\u3089 ruby 1.8.7 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001zlib \u306e\u62e1\u5f35\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f5c\u6210\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u3002<\/p>\n<blockquote><p>\next\/zlib$ sudo ruby extconf.rb<br \/>\nchecking for deflateReset() in -lz&#8230; yes<br \/>\nchecking for zlib.h&#8230; yes<br \/>\nchecking for kind of operating system&#8230; Unix<br \/>\ncreating Makefile<br \/>\next\/zlib$ make<br \/>\nmake: &#8216;all&#8217;\u306b\u5bfe\u3057\u3066\u884c\u3046\u3079\u304d\u4e8b\u306f\u3042\u308a\u307e\u305b\u3093\n<\/p><\/blockquote>\n<p>zlib1g-dev \u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u5165\u3063\u3066\u3044\u308b\u306e\u306b\u306a\u30fc\u3001\u3068\u601d\u3044\u3064\u3064\u30b0\u30b0\u308b\u3068 <a href=\"http:\/\/www.fdiary.net\/ml\/rails\/msg\/2025\">rails ML<\/a> \u3067\u56de\u907f\u7b56\u767a\u898b\u3002<\/p>\n<blockquote><p>\n> zlib\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u308b\u306e\u3067rails zlib\u3067\u30b0\u30b0\u3063\u3066\u898b\u307e\u3057\u305f\u3002<br \/>\n><br \/>\n> Vine3.2\u306e\u4f8b\u3067\u3059\u304c\u3053\u3093\u306a\u306e\u304c\u5f15\u3063\u304b\u304b\u308a\u307e\u3057\u305f\u3002<br \/>\n><br \/>\n> $ cd ruby-1.8.5\/ext\/zlib<br \/>\n> $ ruby extconf.rb &#8211;with-zlib-include=\/usr\/include -with-zlib-lib=\/usr\/lib<br \/>\n> $ make<br \/>\n> $ su<br \/>\n> # make install\n<\/p><\/blockquote>\n<p>\u3053\u306e\u30b9\u30ec\u4e3b\u3055\u3093\u306f\u307e\u3060\u30a8\u30e9\u30fc\u51fa\u3066\u3044\u308b\u3088\u3046\u3067\u3057\u305f\u304c\u79c1\u306f\u56de\u907f\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>\next\/zlib$ sudo ruby extconf.rb<br \/>\nchecking for deflateReset() in -lz&#8230; yes<br \/>\nchecking for zlib.h&#8230; yes<br \/>\nchecking for kind of operating system&#8230; Unix<br \/>\ncreating Makefile<br \/>\next\/zlib$ sudo ruby extconf.rb &#8211;with-zlib-include=\/usr\/include -with-zlib-lib=\/usr\/lib<br \/>\nchecking for deflateReset() in -lz&#8230; yes<br \/>\nchecking for zlib.h&#8230; yes<br \/>\nchecking for kind of operating system&#8230; Unix<br \/>\ncreating Makefile<br \/>\next\/zlib$ sudo make<br \/>\ngcc -I. -I. -I\/usr\/local\/lib\/ruby\/1.8\/i686-linux -I. -DHAVE_ZLIB_H  -DOS_CODE=OS_UNIX -I\/usr\/include  -D_FILE_OFFSET_BITS=64  -fPIC -g -O2   -c zlib.c<br \/>\ngcc -shared -o zlib.so zlib.o -L. -L\/usr\/local\/lib -Wl,-R\/usr\/local\/lib -L.  -rdynamic -Wl,-export-dynamic    -lz  -ldl -lcrypt -lm   -lc<br \/>\next\/zlib$ sudo make install<br \/>\n\/usr\/bin\/install -c -m 0755 zlib.so \/usr\/local\/lib\/ruby\/site_ruby\/1.8\/i686-linux\n<\/p><\/blockquote>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u306a\u3044\u3067 extconf.rb \u3067 Makefile \u4f5c\u308b\u3068 \/usr\/local\/lib \u3084 \/usr\/local\/include \u3092\u898b\u306b\u884c\u304f\u3068\u63a8\u6e2c\u3002Debian \u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u30d8\u30c3\u30c0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068 \/usr\/lib \u3084 \/usr\/include \u3092\u898b\u306b\u884c\u304f\u306e\u3067\u660e\u793a\u7684\u306b\u6307\u5b9a\u3057\u306a\u3044\u3068\u3044\u304b\u3093\u304b\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u305d\u3082\u305d\u3082 ruby \u306e\u62e1\u5f35\u30e9\u30a4\u30d6\u30e9\u30ea\u81ea\u4f53\u77e5\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u7d50\u69cb\u6642\u9593\u304b\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u3082\u6280\u8853\u30cd\u30bf\u3002\u6bce\u9031\u4f55\u304b\u306b\u30cf\u30de\u3063\u3066\u307e\u3059\u3002 Debian Lenny \u306b tarball \u304b\u3089 ruby 1.8.7 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001zlib \u306e\u62e1\u5f35\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f5c\u6210\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u3002 ext\/zlib$ sudo [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.ic-tact.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/749"}],"collection":[{"href":"http:\/\/www.ic-tact.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ic-tact.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ic-tact.co.jp\/index.php?rest_route=\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ic-tact.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=749"}],"version-history":[{"count":3,"href":"http:\/\/www.ic-tact.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/749\/revisions"}],"predecessor-version":[{"id":752,"href":"http:\/\/www.ic-tact.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/749\/revisions\/752"}],"wp:attachment":[{"href":"http:\/\/www.ic-tact.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ic-tact.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=749"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ic-tact.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}