ユーザ用ツール

サイト用ツール


11_php:04_library:02_expect

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
11_php:04_library:02_expect [2015/03/13 08:50] matsui11_php:04_library:02_expect [2015/08/04 01:35] (現在) matsui
行 1: 行 1:
 +====== 02 expect ======
  
 +===== expectライブラリをインストール =====
 +
 +<code console>
 +# wget http://pecl.php.net/get/expect-0.3.1.tgz
 +# tar zxvf expect-0.3.1.tgz
 +# cd expect-0.3.1
 +# phpize
 +# ./configure
 +# make
 +# make install
 +</code>
 +
 +=== make でエラーになる場合 ===
 +<code console>
 +# yum install expect-devel tcl-devel
 +</code>
 +===== extension用意 =====
 +<code console>
 +echo 'extension=expect.so' > /etc/php.d/expect.ini
 +</code>
 +
 +===== Apacheリロード =====
 +<code console>
 +/etc/init.d/httpd configtest
 +/etc/init.d/httpd reload
 +</code>
 +
 +{{tag>php:library}}