{"id":218,"date":"2012-10-25T05:08:14","date_gmt":"2012-10-25T05:08:14","guid":{"rendered":"http:\/\/mini.jellypo.pe.kr\/wp\/?p=218"},"modified":"2012-10-25T05:08:14","modified_gmt":"2012-10-25T05:08:14","slug":"dbdmysql-%eb%a3%a8%ed%8a%b8%ea%b6%8c%ed%95%9c-%ec%97%86%ec%9d%b4-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/mini.jellypo.pe.kr\/wp\/?p=218","title":{"rendered":"DBD::mysql \ub8e8\ud2b8\uad8c\ud55c \uc5c6\uc774 \uc124\uce58\ud558\uae30"},"content":{"rendered":"<p><font face=\"\ub098\ub214\uace0\ub515\ucf54\ub529\" size=\"5\">\uc0ac\uc6a9\ud658\uacbd<\/font><\/p>\n<p><font face=\"\ub098\ub214\uace0\ub515\ucf54\ub529\" size=\"3\">DBI \ubaa8\ub4c8 \uc124\uce58\ud558\uace0, perl\uc5d0\uc11c mysql \uc0ac\uc6a9\ud558\ub824\uace0 \ubcf4\ub2c8 DBD::mysql \ubaa8\ub4c8\ub3c4 \uc124\uce58\ud574\uc57c \ud588\ub2e4. root \uad8c\ud55c\uc774 \uc788\ub2e4\uba74 \ubcc4 \ubb38\uc81c \uc5c6\uc9c0\ub9cc \ub8e8\ud2b8 \uad8c\ud55c\uc774 \uc5c6\ub2e4\uba74? \u2013\uc0bd\uc9c8\ud574\uc57c \ud55c\ub2e4. \ub2e4\ub978 \ub354 \ub098\uc740 \ubc29\ubc95\uc774 \uc788\uc73c\uba74 \uc81c\ubcf4 \uc8fc\uc2dc\uae30\ub97c.<\/font><\/p>\n<p>&nbsp;<\/p>\n<p><font face=\"\ub098\ub214\uace0\ub515\ucf54\ub529\" size=\"3\">\ub9ac\ub205\uc2a4 CentOS 6.3 64bit     <br \/>Perl \ud658\uacbd : perlbrew\ub85c \uc124\uce58\ud55c perl 5.16.1      <br \/>mysql-server \ud328\ud0a4\uc9c0\ub294 \uc124\uce58 \ub418\uc5b4\uc788\uc74c.      <br \/>mysql-devel (mysql \uc18c\uc2a4\ub358\uac00?) \ud328\ud0a4\uc9c0\ub294 \uc5c6\uc74c -&gt; \ubcf8\uc778 \uacc4\uc815\uc5d0 \uc555\ucd95 \ud480\uc5c8\uc74c(\/home\/jellypo\/mysql-devel\/)<\/font><\/p>\n<blockquote><p><font face=\"\ub098\ub214\uace0\ub515\ucf54\ub529\" size=\"3\">rpm \ud30c\uc77c \uc555\ucd95\ud478\ub294\uac74 rpm2cpio RPM\ud30c\uc77c | cpio -id<\/font><\/p><\/blockquote>\n<p><font face=\"\ub098\ub214\uace0\ub515\ucf54\ub529\" size=\"3\">cpanm DBD::mysql \ud574\uc11c \uc124\uce58 \ub418\uba74 \uc5bc\ub9c8\ub098 \ud589\ubcf5\ud558\uaca0\uc2b5\ub2c8\uae4c\ub9cc\uc740 \uc624\ub958\uac00 \ubc1c\uc0dd\ud569\ub2c8\ub2e4.     <br \/><\/font><\/p>\n<\/p>\n<p><font face=\"\ub098\ub214\uace0\ub515\ucf54\ub529\" size=\"3\">\uacb0\uacfc\uc801\uc73c\ub85c \uc81c\uac00 \ud55c \uac83\ub4e4.     <br \/>1. mysql-devel \ud328\ud0a4\uc9c0\ub97c \uc555\ucd95 \ud480\uace0      <br \/>2. Makefile \ud30c\uc77c \ub0b4\uc6a9 \uc218\uc815(mysql-devel \uacbd\ub85c \uc9c0\uc815)      <br \/>3. \/usr\/lib64\/mysql \uc548\uc758 \ud30c\uc77c\uc744 mysql-devel\/usr\/lib64\/mysql\/ \ubc11\uc73c\ub85c \ubcf5\uc0ac      <br \/><\/font><\/p>\n<\/p>\n<p><font face=\"\ub098\ub214\uace0\ub515\ucf54\ub529\" size=\"3\"># cd .cpanm\/latest-build\/DBD-mysql-4.022     <br \/># perl Makefile.PL      <br \/># vim Makefile<\/font><\/p>\n<blockquote><p><font face=\"\ub098\ub214\uace0\ub515\ucf54\ub529\" size=\"3\">Makefile \ud30c\uc77c \uc218\uc815, LDDLFLAGS, LDFLAGS, INC, LD_RUN_PATH \ub4f1\uc758 \ubcc0\uc218\ub97c&lt;br \/&gt;\/usr\/local\/lib, \/usr\/local\/include \ub4f1\uc744 mysql-devel \uc18c\uc2a4 \uc555\ucd95\ud47c \uacf3\uc73c\ub85c \ubcc0\uacbd&lt;br \/&gt;<\/font><\/p><\/blockquote>\n<p> <font face=\"\ub098\ub214\uace0\ub515\ucf54\ub529\" size=\"3\">https:\/\/metacpan.org\/module\/DBD::mysql   <br \/># make    <br \/>\uc911\ub7b5 (make \uc2e4\ud589 \uacb0\uacfc)    <br \/>\/usr\/bin\/ld: cannot find -lmysqlclient    <br \/>collect2: ld returned 1 exit status    <br \/>make: *** [blib\/arch\/auto\/DBD\/mysql\/mysql.so] \uc624\ub958 1    <br \/>mysql-devel \uc555\ucd95 \ud47c \uacf3\uc5d0 .so \ud30c\uc77c\uc774 \uba87 \uac1c \ube60\uc838\uc11c \uc774\ub7ec\ub294 \ubaa8\uc591. \/usr\/lib64\/mysql\/ \uc548\uc758 \ud30c\uc77c\uc744 ~\/mysql-devel\/usr\/lib64\/mysql \ub85c \ubcf5\uc0ac\ud588\uc74c.    <br \/># make    <br \/># make install<\/font><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc0ac\uc6a9\ud658\uacbd DBI \ubaa8\ub4c8 \uc124\uce58\ud558\uace0, perl\uc5d0\uc11c mysql \uc0ac\uc6a9\ud558\ub824\uace0 \ubcf4\ub2c8 DBD::mysql \ubaa8\ub4c8\ub3c4 \uc124\uce58\ud574\uc57c \ud588\ub2e4. root \uad8c\ud55c\uc774 \uc788\ub2e4\uba74 \ubcc4 \ubb38\uc81c \uc5c6\uc9c0\ub9cc \ub8e8\ud2b8 \uad8c\ud55c\uc774 \uc5c6\ub2e4\uba74? \u2013\uc0bd\uc9c8\ud574\uc57c \ud55c\ub2e4. \ub2e4\ub978 \ub354 \ub098\uc740 \ubc29\ubc95\uc774 \uc788\uc73c\uba74 \uc81c\ubcf4 \uc8fc\uc2dc\uae30\ub97c. &nbsp; \ub9ac\ub205\uc2a4 CentOS 6.3 64bit Perl \ud658\uacbd : perlbrew\ub85c \uc124\uce58\ud55c perl 5.16.1 mysql-server \ud328\ud0a4\uc9c0\ub294 \uc124\uce58 \ub418\uc5b4\uc788\uc74c. mysql-devel (mysql \uc18c\uc2a4\ub358\uac00?) \ud328\ud0a4\uc9c0\ub294 \uc5c6\uc74c -&gt; \ubcf8\uc778 \uacc4\uc815\uc5d0 \uc555\ucd95 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[89],"class_list":["post-218","post","type-post","status-publish","format-standard","hentry","category-13","tag-89"],"_links":{"self":[{"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts\/218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=218"}],"version-history":[{"count":0,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts\/218\/revisions"}],"wp:attachment":[{"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}