{"id":253,"date":"2016-10-26T16:35:26","date_gmt":"2016-10-26T07:35:26","guid":{"rendered":"http:\/\/jook.pe.kr\/?p=253"},"modified":"2016-10-26T16:35:26","modified_gmt":"2016-10-26T07:35:26","slug":"php-%ed%99%95%ec%9e%a5%eb%aa%a8%eb%93%88-%ec%84%a4%ec%b9%98-pecl","status":"publish","type":"post","link":"http:\/\/jook.pe.kr\/?p=253","title":{"rendered":"php \ud655\uc7a5\ubaa8\ub4c8 \uc124\uce58 (pecl)"},"content":{"rendered":"<p>pecl(PHP Extension Community Library)\uc740 C\ub85c \ub9cc\ub4e4\uc5b4\uc9c4, php\uc5d0 \uae30\ub2a5\uc744 \ucd94\uac00\ud558\uae30 \uc704\ud55c \ud655\uc7a5 \ubaa8\ub4c8 library<br \/>\n\uc0dd\uc131\ub41c \ubaa8\ub4c8\uc744 php.ini \ud30c\uc77c\uc5d0 \ucd94\uac00\ud574\uc11c load \ud55c\ub2e4.<\/p>\n<p>&nbsp;<br \/>\n1. \uc124\uce58\ub418\uc5b4 \uc788\ub294 php \ud655\uc7a5 \ubaa8\ub4c8 \ud655\uc778<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost bin]# cd \/usr\/local\/php\/bin<\/p>\n<p>[root@localhost bin]# .\/pecl list<br \/>\nInstalled packages, channel pecl.php.net:<br \/>\n=========================================<br \/>\nPackage Version State<br \/>\nimagick 3.0.1 stable<br \/>\n[root@localhost bin]#<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>2. pecl \ud655\uc7a5 \ubaa8\ub4c8 \uc124\uce58<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost bin]# .\/pecl install hash<br \/>\ndownloading hash-1.5.tgz &#8230;<br \/>\nStarting to download hash-1.5.tgz (98,809 bytes)<br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.done: 98,809 bytes<br \/>\n30 source files, building<br \/>\nWARNING: php_bin \/usr\/local\/php\/bin\/php appears to have a suffix \/bin\/php, but config variable php_suffix does not match<br \/>\nrunning: phpize<br \/>\nConfiguring for:<br \/>\nPHP Api Version: 20041225<br \/>\nZend Module Api No: 20060613<br \/>\nZend Extension Api No: 220060519<br \/>\nbuilding in \/var\/tmp\/pear-build-root\/hash-1.5<br \/>\nrunning: \/tmp\/pear\/temp\/hash\/configure<br \/>\nchecking for egrep&#8230; grep -E<br \/>\nchecking for a sed that does not truncate output&#8230; \/bin\/sed<br \/>\nchecking for cc&#8230; cc<br \/>\nchecking for C compiler default output file name&#8230; a.out<\/p>\n<p>~<\/p>\n<p>Build process completed successfully<br \/>\nInstalling &#8216;\/usr\/local\/php\/lib\/php\/extensions\/no-debug-non-zts-20060613\/hash.so&#8217;<br \/>\nInstalling &#8216;\/usr\/local\/php\/include\/php\/ext\/hash\/php_hash_snefru.h&#8217;<br \/>\nInstalling &#8216;\/usr\/local\/php\/include\/php\/ext\/hash\/php_hash_sha.h&#8217;<br \/>\nInstalling &#8216;\/usr\/local\/php\/include\/php\/ext\/hash\/php_hash.h&#8217;<br \/>\nInstalling &#8216;\/usr\/local\/php\/include\/php\/ext\/hash\/php_hash_haval.h&#8217;<br \/>\nInstalling &#8216;\/usr\/local\/php\/include\/php\/ext\/hash\/php_hash_tiger.h&#8217;<br \/>\nInstalling &#8216;\/usr\/local\/php\/include\/php\/ext\/hash\/php_hash_crc32.h&#8217;<br \/>\nInstalling &#8216;\/usr\/local\/php\/include\/php\/ext\/hash\/php_hash_ripemd.h&#8217;<br \/>\nInstalling &#8216;\/usr\/local\/php\/include\/php\/ext\/hash\/php_hash_adler32.h&#8217;<br \/>\nInstalling &#8216;\/usr\/local\/php\/include\/php\/ext\/hash\/php_hash_md.h&#8217;<br \/>\nInstalling &#8216;\/usr\/local\/php\/include\/php\/ext\/hash\/php_hash_types.h&#8217;<br \/>\nInstalling &#8216;\/usr\/local\/php\/include\/php\/ext\/hash\/php_hash_gost.h&#8217;<br \/>\nInstalling &#8216;\/usr\/local\/php\/include\/php\/ext\/hash\/php_hash_whirlpool.h&#8217;<br \/>\ninstall ok: channel:\/\/pecl.php.net\/hash-1.5<br \/>\nconfiguration option &#8220;php_ini&#8221; is not set to php.ini location<br \/>\nYou should add &#8220;extension=hash.so&#8221; to php.ini<br \/>\n[root@localhost bin]#<br \/>\n[root@localhost bin]# cd \/usr\/local\/php\/lib\/php\/extensions\/no-debug-non-zts-20060613\/<br \/>\n[root@localhost no-debug-non-zts-20060613]# ls<br \/>\nhash.so imagick.so<br \/>\n[root@localhost no-debug-non-zts-20060613]#<\/p>\n<p>&#8211; php.ini \ud30c\uc77c\uc5d0 extension_dir \ubd80\ubd84\uc5d0 .so \ud30c\uc77c\uc774 \uc704\uce58\ud55c \uacbd\ub85c\ub97c \uc785\ub825\ud558\uace0 extension=hash.so \ubd80\ubd84\uc744 \ucd94\uac00 \ud6c4 apache\ub97c \ub9ac\uc2a4\ud0c0\ud2b8 \ud55c\ub2e4.<\/p>\n<p>extension_dir = &#8220;\/usr\/local\/php\/lib\/php\/extensions\/no-debug-non-zts-20060613&#8221;<br \/>\nextension=imagick.so<br \/>\nextension=hash.so<\/p>\n<p>&nbsp;<br \/>\n3. \uc124\uce58 \uac00\ub2a5\ud55c \ud655\uc7a5 \ubaa8\ub4c8 \ub9ac\uc2a4\ud2b8 \ucd9c\ub825<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost bin]# .\/pecl list-all<br \/>\nAll packages [Channel pecl.php.net]:<br \/>\n====================================<br \/>\nPackage Latest Local<br \/>\npecl\/KTaglib 0.2.0 Library to edit audio properties and tags on MPEG and OGG files<br \/>\npecl\/FliteTTS Text to speech voice synthesis for PHP<br \/>\npecl\/radius 1.2.5 Radius client library<br \/>\npecl\/sasl 0.1.0 Cyrus SASL Extension<br \/>\npecl\/PAM 1.0.3 PAM integration<br \/>\npecl\/courierauth 0.1.0 courierauth binding<br \/>\npecl\/krb5 Kerberos authentication and management<br \/>\npecl\/DTrace 1.0.3 A Solaris Dtrace provider<br \/>\npecl\/inclued 0.1.3 Clued-in about your inclueds<br \/>\npecl\/zookeeper 0.2.1 PHP extension for interfacing with Apache ZooKeeper<br \/>\npecl\/augeas 0.6.1 PHP bindings to the Augeas API<br \/>\npecl\/xmms 0.2 Provides functions to interact with xmms<br \/>\npecl\/newt 1.2.6 Extension for RedHat Newt window library<br \/>\npecl\/tvision 0.1 Turbo Vision wrapper<\/p>\n<p>~<\/p>\n<p>[root@localhost bin]#<\/p>\n","protected":false},"excerpt":{"rendered":"<p>pecl(PHP Extension Community Library)\uc740 C\ub85c \ub9cc\ub4e4\uc5b4\uc9c4, php\uc5d0 \uae30\ub2a5\uc744 \ucd94\uac00\ud558\uae30 \uc704\ud55c \ud655\uc7a5 \ubaa8\ub4c8 library \uc0dd\uc131\ub41c \ubaa8\ub4c8\uc744 php.ini \ud30c\uc77c\uc5d0 \ucd94\uac00\ud574\uc11c load \ud55c\ub2e4.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,5],"tags":[],"_links":{"self":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts\/253"}],"collection":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=253"}],"version-history":[{"count":0,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts\/253\/revisions"}],"wp:attachment":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=253"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}