Code Comments
Programming Forum and web based access to our favorite programming groups.Noodles wrote: > I've spent the last 6 hours or so trying to get pspell going on my php > install, version 4.3.9. I've searched all over the net, but haven't > found a solution. > > I'm using debian so I'm using the packaged version of php4 and apache. I > installed aspell using apt-get and then downloaded and compiled pspell > 0.12.2. I downloaded php4 off the php.net site and used it to compile a > pspell.so file, which seemed to work until I tried to check a word. I get: To the best of my knowledge, you don't have to complie/install pspell anymore to have the functions work with php...only need aspell (as both aspell and pspell are combined in the aspell release) > > Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't > find any suitable word lists for the language-tag "en". Did you install a dictionary? If not, that's what you need to do. If you want English.... http://packages.debian.org/unstable/text/aspell-en -- By-Tor.com It's all about the Rush http://www.by-tor.com
Post Follow-up to this messageI tried it with just aspell (including the aspell-en dictionary package) and whenever I tried to configure php to use pspell it couldn't find pspell (./configure --with-pspell) John Nichel wrote: > Noodles wrote: > > > > To the best of my knowledge, you don't have to complie/install pspell > anymore to have the functions work with php...only need aspell (as both > aspell and pspell are combined in the aspell release) > > > > Did you install a dictionary? If not, that's what you need to do. If > you want English.... > > http://packages.debian.org/unstable/text/aspell-en >
Post Follow-up to this messageNoodles wrote: > I tried it with just aspell (including the aspell-en dictionary package) > and whenever I tried to configure php to use pspell it couldn't find > pspell (./configure --with-pspell) If Debian is like Red Hat, you will also need to install some type of development package for aspell (aspell-devel in Red Hat), or install from source so that the headers are present on your system. You may also need to point the php configure script to the location of your aspell installation... --with-pspell=/path/to/aspell http://us4.php.net/pspell -- By-Tor.com It's all about the Rush http://www.by-tor.com
Post Follow-up to this messageJohn Nichel wrote: > Noodles wrote: > > > > If Debian is like Red Hat, you will also need to install some type of > development package for aspell (aspell-devel in Red Hat), or install > from source so that the headers are present on your system. You may > also need to point the php configure script to the location of your > aspell installation... > > --with-pspell=/path/to/aspell > > http://us4.php.net/pspell > I tried it with libaspell-dev but it didn't pick it up automatically, will try giving it a path to work with Is it possible to give it a path and tell it to compile an .so file? Thanks for your help
Post Follow-up to this messageJohn Nichel wrote: > If Debian is like Red Hat, you will also need to install some type of > development package for aspell (aspell-devel in Red Hat), or install > from source so that the headers are present on your system. You may > also need to point the php configure script to the location of your > aspell installation... > > --with-pspell=/path/to/aspell I just removed pspell and reinstalled aspell instant:~/php-4.3.9# whereis aspell aspell: /usr/bin/aspell /usr/lib/aspell /usr/include/aspell.h /usr/share/aspell /usr/share/man/man1/aspell.1.gz I tried: ./configure --with-pspell=/usr/bin/aspell ./configure --with-pspell=/usr/lib/aspell ./configure --with-pspell=/usr/share/aspell But it still comes up with: checking for PSPELL support... yes configure: error: Cannot find pspell And I have the libaspell-dev package installed Nick
Post Follow-up to this messageNoodles wrote: > John Nichel wrote: > > > > I just removed pspell and reinstalled aspell > > instant:~/php-4.3.9# whereis aspell > aspell: /usr/bin/aspell /usr/lib/aspell /usr/include/aspell.h > /usr/share/aspell /usr/share/man/man1/aspell.1.gz > > I tried: > ./configure --with-pspell=/usr/bin/aspell > ./configure --with-pspell=/usr/lib/aspell > ./configure --with-pspell=/usr/share/aspell > > But it still comes up with: > > checking for PSPELL support... yes > configure: error: Cannot find pspell > > And I have the libaspell-dev package installed Well, the header file is in /usr/include, so try.... ./configure --with-pspell=/usr -- By-Tor.com It's all about the Rush http://www.by-tor.com
Post Follow-up to this messageJohn Nichel wrote: > > > Well, the header file is in /usr/include, so try.... > > ./configure --with-pspell=/usr > Still the same message =/ I tried it with --with-pspell=/usr and then --with-pspell=/usr/include but no luck Nick
Post Follow-up to this messageOn Monday 08 November 2004 01:19, Noodles wrote: > John Nichel wrote: > > I just removed pspell and reinstalled aspell > > instant:~/php-4.3.9# whereis aspell > aspell: /usr/bin/aspell /usr/lib/aspell /usr/include/aspell.h > /usr/share/aspell /usr/share/man/man1/aspell.1.gz > > I tried: > ./configure --with-pspell=/usr/bin/aspell > ./configure --with-pspell=/usr/lib/aspell > ./configure --with-pspell=/usr/share/aspell --with-pspell=/usr is what you want. > But it still comes up with: > > checking for PSPELL support... yes > configure: error: Cannot find pspell > > And I have the libaspell-dev package installed Execute: find / -name '*[a|p]spell*' | sort | less and see if 'aspell.h'/'pspell.h' and 'libaspell.so'/'libpspell.so' are in there somewhere. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* When faced with necessary actions, there are always choices. So long as the job gets done. -- COUNT HASIMIR FENRING, Dispatches from Arrakis */
Post Follow-up to this messageJason Wong wrote: > > > --with-pspell=/usr is what you want. > I tried this and it still didn't help things > > > Execute: > > find / -name '*[a|p]spell*' | sort | less > > and see if 'aspell.h'/'pspell.h' and 'libaspell.so'/'libpspell.so' are in > there somewhere. > I have: /usr/include/aspell.h /usr/lib/libaspell.so /usr/lib/libaspell.so.15 /usr/lib/libaspell.so.15.0.3 /usr/lib/libpspell.so.15 /usr/lib/libpspell.so.15.0.3 (your find script didn't seem to do anything on my box, so i just used locate) Nick
Post Follow-up to this messageOn Monday 08 November 2004 07:03, Noodles wrote: > Jason Wong wrote: > > I tried this and it still didn't help things That *is* what you want -- your problem lies elsewhere. > I have: > /usr/include/aspell.h > /usr/lib/libaspell.so > /usr/lib/libaspell.so.15 > /usr/lib/libaspell.so.15.0.3 > /usr/lib/libpspell.so.15 > /usr/lib/libpspell.so.15.0.3 That looks good. > (your find script didn't seem to do anything on my box, so i just used > locate) I would have asked you to use locate if I could have been sure you have updated the db after removing and installing the various packages. Anyway, do you have these as well: /usr/include/pspell/ /usr/include/pspell/pspell.h The directory is required for the ./configure command to succeed, and you actually need the header file for the make command to succeed. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* <Ze0> so, how's everything in the world of Quack? <LordHavoc> just ducky <Ze0> excellent, fried duck is mighty fine tasty. */
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.