note 24994 added to ref.pspell
| From: | sudhakar at mindscapecomputing dot com | Date: | Sat, 07 Sep 2002 06:50:42 +0000 |
| Subject: | note 24994 added to ref.pspell | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36287@lists.php.net to get a copy of this message | ||
The Following Steps to install Aspell and Pspell to work with PHP
Download these files
http://telia.dl.sourceforge.net/sourceforge/pspell/pspell-.12.2.tar.gz
Pspell Package
ftp://ftp.gnu.org/gnu/aspell/aspell-0.50.1.tar.gz
Aspell Package
ftp://ftp.gnu.org/gnu/aspell/aspell-en-0.50-2.tar.bz2
English Dictionary
for Aspell
untar the files
tar zxvf pspell-.12.2.tar.gz
tar zxvf aspell-0.50.1.tar.gz
tar yxf aspell-en-0.50-2.tar.bz2
we have to install pspell first:
Get into the pspell-.12.2 directory
# ./configure
# make
# make install
# cd modules
# ./add-modules
# cd ..
# make
# make install
Second we have to install Aspell:
Get into the aspell-0.50.1 directory
# ./configure
# make
# make install
After Sucessfully compiled Apply the Dictionary
Get into the aspell-en-0.50-2 directory
# ./configure
Which should output something like:
Finding Dictionary file location ... /usr/local/lib/aspell
Finding Data file location ... /usr/local/share/aspell
# make
# make install
To Check aspell is working try this example
Create a file test.txt add the line "I am speled wron" and save the file
# aspell check test.txt
from the command line.
after the above example work.
use --with-pspell when compiling PHP
--
http://www.php.net/manual/en/ref.pspell.php
http://master.php.net/manage/user-notes.php?action=edit+24994
http://master.php.net/manage/user-notes.php?action=delete+24994
http://master.php.net/manage/user-notes.php?action=reject+24994