Thursday, February 12, 2009

Expect, PHP and Ubuntu

here is the Expect installation for PHP on ubuntu
- apt-get install expect
- apt-get install expect-dev
- wget http://pecl.php.net/get/expect-0.2.5.tgz
- pecl install expect-0.2.5.tgz
- vi /etc/php5/conf.d/expect.ini and add the line : extension=expect.so
- restart apache

for other system (fedora in my case), 2 first step is changed to :
- wget http://expect.nist.gov/expect.tar.gz
- tar -zxvf expect.tar.gz
- cd expect-5.43/
- ./configure --with-tclconfig=/usr/lib/tcl8.4 --with-tclinclude=/usr/include/tcl8.4/tcl-private/generic
- make | make install

current

last archive