To get these functions to work, you have to compile the CGI or CLI version of PHP with --with-ncurses[=DIR].
Ubuntu 10.04 Instructions (and likely other distributions as well, save for the package names): sudo apt-get install php5-dev sudo apt-get install ncurses-dev sudo apt-get install libncursesw5-dev sudo pecl install ncurses sudo nano /etc/php5/cli/php.ini # paste "extension=ncurses.so" More Info: http://renownedmedia.com/blog/installing-pecl-ncurses-on-ubuntu-10-04
Коментарии
Ubuntu 10.04 Instructions (and likely other distributions as well, save for the package names):
sudo apt-get install php5-dev
sudo apt-get install ncurses-dev
sudo apt-get install libncursesw5-dev
sudo pecl install ncurses
sudo nano /etc/php5/cli/php.ini # paste "extension=ncurses.so"
More Info:
http://renownedmedia.com/blog/installing-pecl-ncurses-on-ubuntu-10-04