ID: 16288
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Feedback
+Status: Open
Bug Type: Pspell related
Operating System: RedHat 7.2
PHP Version: 4.1.2
Assigned To: vlad
New Comment:
Okay well unfortunately, I just tried this and it didn't work so I
tried again from scratch...
pspell:
./configure
make ; make clean install
aspell
./configure
make ; make clean install
pspell again:
./add-modules
cd .. ; make ; make install
php:
./configure --with-apxs=/usr/sbin/apxs
--with-sybase=/usr/local/freetds/ --with-pdflib --enable-debug
--enable-trans-sid --with-pspell
make
make install
/etc/rc.d/init.d/httpd restart
still the same timeout...
Previous Comments:
------------------------------------------------------------------------
[2002-04-02 21:21:53] [EMAIL PROTECTED]
Sorry, took me a while to reply
After you do:
./add-modules
did you remember to do rebuild pspell?
that is,
./add-modules
cd ..
make
make install
???
That should fix the problem.
------------------------------------------------------------------------
[2002-03-27 08:55:17] [EMAIL PROTECTED]
I don't know if I'm supposed to open the bug report again or not...
------------------------------------------------------------------------
[2002-03-26 20:44:08] [EMAIL PROTECTED]
went in /usr/local/downloads (where I build packages before installing
them) and built example-c, it works perfectly fine.
my steps for installing pspell, aspell and php were:
Pspell:
cd /usr/local/download/pspell
./configure
make
make install
cd ../aspell
./configure
make
make install
cd ../pspell/modules
./add-modules
cd ../../php
./configure --with-apxs=/usr/sbin/apxs
--with-sybase=/usr/local/freetds/
--with-pdflib --enable-debug --enable-trans-sid --with-pspell ; make ;
make install ; /etc/init.d/httpd restart ; echo all done
------------------------------------------------------------------------
[2002-03-26 18:12:20] [EMAIL PROTECTED]
I use the *exact* same configuration on my test box and it works
(redhat7.2, php4.1.2, same exact versions of pspell and aspell).
Two questions:
- can you build and run a sample app in pspell/examples directory?
(e.g. 'make example-c' followed by './example-c en')?
- what are your build steps when building aspell and pspell, and in
which exact order?
I suspect misconfiguration :(
------------------------------------------------------------------------
[2002-03-26 09:56:28] [EMAIL PROTECTED]
Hi,
After having a few problems with the RedHat's pre-installed RPM's for
Aspell and Pspell, I decided to remove them and grab the latest
versions on the official website, versions:
aspell-.33.7.1
pspell-.12.2
php 4.1.2
I first compiled pspell (./configure ; make ; make install)
then aspell the same way
then in the modules dir for pspell I did ./add-modules and it seemed to
work, then I simply compiled PHP with:
./configure --with-apxs=/usr/sbin/apxs
--with-sybase=/usr/local/freetds/ --with-pdflib --enable-debug
--enable-trans-sid --with-pspell ; make ; make install ;
/etc/init.d/httpd restart ; echo all done
And everything seemed to work so far but then while calling a simple
script, I get the following error:
Fatal error: Maximum execution time of 30 seconds exceeded in
/var/www/html/spellcheck.php on line 9...
here is the script:
<?php
$string = "checking the pspell iinterface";
echo $string . "<br>\n";
$string = str_replace(",", "", $string);
$keys = explode(" ", $string);
$mylink = pspell_new("en");
foreach($keys as $value)
{
if (!(pspell_check($mylink, $value)))
{
echo "$value - invalid spelling";
$suggest = pspell_suggest($mylink, $value);
echo "<br>Suggesting $suggest";
}
}
Did they break backward source compatibility again or is it a problem
with my config or install ?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16288&edit=1