Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PHP] pspell problems
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

Report this thread to moderator Post Follow-up to this message
Old Post
John Nichel
11-07-04 08:56 PM


Re: [PHP] pspell problems
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)

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
>

Report this thread to moderator Post Follow-up to this message
Old Post
Noodles
11-07-04 08:56 PM


Re: [PHP] pspell problems
Noodles 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

Report this thread to moderator Post Follow-up to this message
Old Post
John Nichel
11-08-04 01:55 AM


Re: [PHP] pspell problems
John 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

Report this thread to moderator Post Follow-up to this message
Old Post
Noodles
11-08-04 01:55 AM


Re: [PHP] pspell problems
John 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

Report this thread to moderator Post Follow-up to this message
Old Post
Noodles
11-08-04 01:55 AM


Re: [PHP] pspell problems
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
>
> 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

Report this thread to moderator Post Follow-up to this message
Old Post
John Nichel
11-08-04 08:58 AM


Re: [PHP] pspell problems
John 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

Report this thread to moderator Post Follow-up to this message
Old Post
Noodles
11-08-04 08:58 AM


Re: [PHP] pspell problems
On 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
*/

Report this thread to moderator Post Follow-up to this message
Old Post
Jason Wong
11-08-04 08:58 AM


Re: [PHP] pspell problems
Jason 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

Report this thread to moderator Post Follow-up to this message
Old Post
Noodles
11-08-04 08:58 AM


Re: [PHP] pspell problems
On 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.
*/

Report this thread to moderator Post Follow-up to this message
Old Post
Jason Wong
11-08-04 08:58 AM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

PHP General archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:26 AM.

 

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.