How to install PSPELL for PHP

jechilt

Verified User
Joined
Jun 21, 2004
Messages
225
This is how to make PSPELL and ASPELL play together nicely on
RedHat 9 with Apache 1.3 and DA.

Reference Link: http://aspell.net/old.html (current as of 23Aug2004)
NOTE: Aspell must be installed in the same PREFIX location as PSPELL before it will compile. Aspell
requires version .12.2 of pspell or better

1. Determine the directory for the spelling checker. I created a new dedicated directory...
Code:
	>mkdir /usr/local/spelling
2. Change to your favorite download location and get files
Code:
	>cd /usr/local/src
3. Download PSPELL, ASPELL and Patch
Code:
	>wget [url]http://prdownloads.sourceforge.net/pspell/pspell-.12.2.tar.gz[/url] [size=1][COLOR=crimson](current as of 23Aug2004)[/color][/size]
	>wget [url]http://prdownloads.sourceforge.net/aspell/aspell-.33.7.1.tar.gz[/url] [size=1][COLOR=crimson](current as of 23Aug2004)[/color][/size][b][COLOR=crimson]
	WARNING! The link provided on the [url]http://aspell.net/old.html[/url] link for the patch is NOT GOOD![/b][/color]
	>wget [url]http://belnet.dl.sourceforge.net/sourceforge/aspell/aspell-.33-fix2.diff[/url] [size=1][COLOR=crimson](current as of 23Aug2004)[/color][/size]
4. Untar and install
Code:
	>tar zxvf pspell-.12.2.tar.gz
	>tar zxvf aspell-.33.7.1.tar.gz
5. The PSPELL must be installed first.
KEYPOINT: PSPELL and ASPELL must have the same PREFIX!
Code:
	>cd pspell-.12.2.tar.gz
	>./configure --prefix=/usr/local/spelling
	>make
	>make install
6. Change Directory, Patch and Install ASPELL
KEYPOINT: First install the patch!
Code:
                >cd ../aspell-.33.7.1
               >patch -p0 < aspell-.33-fix2.diff
	>./configure --prefix=/usr/local/spelling
	>make
	>make install
7. Modify configure.php
Code:
	>cd /usr/local/directadmin/customapache
	>vi configure.php
	[COLOR=crimson]NOTE: Before adding the last line, you need to add a "\" to the end of the current last line. 
The "\" allows the program to read the next line...a carriage return, of sorts[/color]
		./configure
			--with-XXXXX \
			--with-XXXXX \
			--with-XXXXX [b]\[/b] [COLOR=crimson] <--Here you add the '\'
	-->new line[/color][COLOR=blue]     --with-pspell=/usr/local/spelling[/color][COLOR=crimson]  <--NOTICE, no '\' on the last line 
         === complete vi ===[/color]
        >./build clean
        >./build update
        >./build php

I chose to rebuild everything...not sure it is required. Anyway, when it finishes, continue with:
Code:
        >/etc/init.d/httpd restart
 
Last edited:
This is not necessary to download and install the Pspell package, only Aspell 0.50 (or better) is required. Aspell now provided a backwards compatibility interface for programs expecting the old Pspell interface and after that you should search compalor .
 
Back
Top