Re: PSPELL hell
| From: | Vlad Krupin | Date: | Wed, 18 Jul 2001 16:58:14 +0000 |
| Subject: | Re: PSPELL hell | ||
| References: | 1 | Groups: | php.dev php.general php.install |
| Request: | Send a blank email to php-dev+get-60225@lists.php.net to get a copy of this message | ||
This is really a support question, not a development question, so please use php-general *only*, not php-dev list, do not cross-post. Now, that said, please reply privately to me so we take discussion off the list do not clutter the mailing list. By the way, these issues have been covered several times, so you could probably find an answer by looking through archives of php-dev.
what's your:
1. Configure line for php?
2. Configure lines for aspell and pspell?
3. Which order did you install aspell and pspell in?
4. /etc/ld.so.conf if you have one?
5. Can you go to pspell/examples directory, do 'make example-c', then 'su nobody' (or use the user that php scripts are executed as, if not nobody), then do './example-c en' and check a spelling of a word, by, say, doing 's hullow'.
pspell installation is unfortunately not always straight-forward, but it is not a rocket science either. Yet it is very easy to install them in a way that php will compile, but won't work with those libraries.
Vlad
Garth Dahlstrom wrote:
I compiled pspell into PHP 4.0.6, but when I go to execute the example I get unable to load aspell module... aspell 0.32 is on the box. Help! Output: ------- Warning: PSPELL couldn't open the dictionary. reason: Unable to load the "aspell" module. in /var/www/spell.php on line 2 Warning: 0 is not an PSPELL result index in /var/www/spell.php on line 4 Warning: 0 is not an PSPELL result index in /var/www/spell.php on line 5 Possible spelling: Input: ------ <?php $pspell_link = pspell_new ("en"); if (!pspell_check ($pspell_link, "testt")) { $suggestions = pspell_suggest ($pspell_link, "testt"); for ($i=0; $i < count ($suggestions); $i++) {echo "Possible spelling: " . $suggestions[$i] . "<br>"; }}?>-Garth --- http://www.northern.ca