Connecting Tech Pros Worldwide Help | Site Map

desparate - has anyone installed/used "aspell"?

Notgiven
Guest
 
Posts: n/a
#1: May 17 '06
I have tried for several days to install and use aspell. I easily installed
on my development computer which is Windows XP.

I am trying to get it to run on a linux box now and am getting to the point
to tell the client, it just can't be done.

It seems I am almost there but can't get it all the way.

For my latest test of the pre-compiled version I found contains three
cirectories:
/bin/
/lib/
/share/

I have those to:
/usr/local/bin/aspell/bin/
/usr/local/bin/aspell/lib/
/usr/local/bin/aspell/share/

In my php code, I reference:
$aspell_prog = '/usr/local/bin/aspell/bin/aspell';

The error I am getting is:
Quote:
Error executing '/usr/local/bin/aspell/bin/aspell -a --lang=en_US
(...)
/usr/local/bin/aspell/bin/aspell: error while loading shared
libraries: libaspell.so.15: cannot open shared object file: no such file or
directory

The file, libaspell.so.15, is in the /usr/local/bin/aspell/lib/ directory.

I am using a pre-compiled version because I do not have compile capabilities
on my host.

It might be permissions set incorrectly or something else I do not know
about. I am a relative linux newbie so if you can help, please provide some
instructions.

I can not thank you enough for any help - again I am desparate!


strawberry
Guest
 
Posts: n/a
#2: May 17 '06

re: desparate - has anyone installed/used "aspell"?


Yeah, give up. I did - and now I'm a much happier person.

Who needs spelling, anyway?

Toby Inkster
Guest
 
Posts: n/a
#3: May 17 '06

re: desparate - has anyone installed/used "aspell"?


Notgiven wrote:
[color=blue]
> The file, libaspell.so.15, is in the /usr/local/bin/aspell/lib/ directory.[/color]

This is a very unusual place to install aspell -- you'd probably have more
luck installing aspell through your distribution's packaging system which
would place it in a more normal location.

That said, your problem is that aspell doesn't know where to find its
library file. To fix this, add "/usr/local/bin/aspell/lib/" to
"/etc/ld.so.conf" (the syntax of that file is pretty self-explanatory) and
then run "ldconfig". You'll need to do this as root.

However, even after fixing this problem you may encounter other troubles
caused by installing aspell into such a wierd place. Better to just delete
it and re-install it via your package manager.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Notgiven
Guest
 
Posts: n/a
#4: May 17 '06

re: desparate - has anyone installed/used "aspell"?


"Toby Inkster" <usenet200605@tobyinkster.co.uk> wrote in message
news:59gsj3-fg7.ln1@ophelia.g5n.co.uk...[color=blue]
> Notgiven wrote:
>[color=green]
>> The file, libaspell.so.15, is in the /usr/local/bin/aspell/lib/
>> directory.[/color]
>
> This is a very unusual place to install aspell -- you'd probably have more
> luck installing aspell through your distribution's packaging system which
> would place it in a more normal location.
>
> That said, your problem is that aspell doesn't know where to find its
> library file. To fix this, add "/usr/local/bin/aspell/lib/" to
> "/etc/ld.so.conf" (the syntax of that file is pretty self-explanatory) and
> then run "ldconfig". You'll need to do this as root.
>
> However, even after fixing this problem you may encounter other troubles
> caused by installing aspell into such a wierd place. Better to just delete
> it and re-install it via your package manager.
>
> --
> Toby A Inkster BSc (Hons) ARCS
> Contact Me ~ http://tobyinkster.co.uk/contact[/color]

I agree but this host runs redhat enterprise and does NOT allow access to
run rpm. I was able to edit the conf and run ldconfig

$ ldconfig
ldconfig: File /lib/libaspell.so is too small, not checked.
ldconfig: File /lib/libaspell.so.15 is too small, not checked.
ldconfig: File /lib/libpspell.so is too small, not checked.
ldconfig: File /lib/libpspell.so.15 is too small, not checked.
ldconfig: /lib/libpspell.so.15 is not a symbolic link
ldconfig: /lib/libaspell.so.15 is not a symbolic link
ldconfig: File /usr/local/bin/aspell/lib/libaspell.so is too small, not
checked.
ldconfig: File /usr/local/bin/aspell/lib/libaspell.so.15 is too small, not
checked.
ldconfig: File /usr/local/bin/aspell/lib/libpspell.so is too small, not
checked.
ldconfig: File /usr/local/bin/aspell/lib/libpspell.so.15 is too small, not
checked.
ldconfig: /usr/local/bin/aspell/lib/libpspell.so.15 is not a symbolic link
ldconfig: /usr/local/bin/aspell/lib/libaspell.so.15 is not a symbolic link

Any ideas?


Toby Inkster
Guest
 
Posts: n/a
#5: May 18 '06

re: desparate - has anyone installed/used "aspell"?


Notgiven wrote:
[color=blue]
> I agree but this host runs redhat enterprise and does NOT allow access to
> run rpm.[/color]

Given that they seem to allow you root access, this seems quite an
arbitrary restriction. Have you tried asking *them* to install the aspell
RPM for you? After all, you are paying them, and it would only take a
couple of minutes to do what it's taking you days.
[color=blue]
> File /usr/local/bin/aspell/lib/libaspell.so is too small, not
> checked.[/color]

For what it's worth, my libaspell/libpspell libraries are these sizes:

[tai@ophelia (pts/1) ~]$ aspell --version
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.5)
[tai@ophelia (pts/1) ~]$ ls -al /usr/lib/lib?spell* /usr/lib/libpspell*
-rwxr-xr-x 1 root root 791 Dec 20 2004 /usr/lib/libaspell.la
lrwxrwxrwx 1 root root 19 Jan 31 2005 /usr/lib/libaspell.so -> libaspell.so.15.0.3
lrwxrwxrwx 1 root root 19 Jan 31 2005 /usr/lib/libaspell.so.15 -> libaspell.so.15.0.3
-rwxr-xr-x 1 root root 640032 Dec 20 2004 /usr/lib/libaspell.so.15.0.3
-rwxr-xr-x 1 root root 1259 May 9 2005 /usr/lib/libkspell.la
lrwxrwxrwx 1 root root 18 Jun 5 2005 /usr/lib/libkspell.so.4 -> libkspell.so.4.2.0
-rwxr-xr-x 1 root root 3612 May 9 2005 /usr/lib/libkspell.so.4.2.0
-rwxr-xr-x 1 root root 813 Dec 20 2004 /usr/lib/libpspell.la
lrwxrwxrwx 1 root root 19 Jan 31 2005 /usr/lib/libpspell.so -> libpspell.so.15.0.3
lrwxrwxrwx 1 root root 19 Jan 31 2005 /usr/lib/libpspell.so.15 -> libpspell.so.15.0.3
-rwxr-xr-x 1 root root 3044 Dec 20 2004 /usr/lib/libpspell.so.15.0.3

Obviously yours will probably be slightly different sizes, but
assuming you're using an x86 processor, yours should be in the same
general area.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Notgiven
Guest
 
Posts: n/a
#6: May 18 '06

re: desparate - has anyone installed/used "aspell"?


"Toby Inkster" <usenet200605@tobyinkster.co.uk> wrote in message
news:6ohtj3-7la.ln1@ophelia.g5n.co.uk...[color=blue]
> Notgiven wrote:
>[color=green]
>> I agree but this host runs redhat enterprise and does NOT allow access to
>> run rpm.[/color]
>
> Given that they seem to allow you root access, this seems quite an
> arbitrary restriction. Have you tried asking *them* to install the aspell
> RPM for you? After all, you are paying them, and it would only take a
> couple of minutes to do what it's taking you days.[/color]

I asked and they will not - they are a huge host and do not take on these
tasks unfortunately.
[color=blue][color=green]
>> File /usr/local/bin/aspell/lib/libaspell.so is too small, not
>> checked.[/color]
>
> For what it's worth, my libaspell/libpspell libraries are these sizes:
>
> [tai@ophelia (pts/1) ~]$ aspell --version
> @(#) International Ispell Version 3.1.20 (but really Aspell 0.50.5)
> [tai@ophelia (pts/1) ~]$ ls -al /usr/lib/lib?spell* /usr/lib/libpspell*
> -rwxr-xr-x 1 root root 791 Dec 20 2004 /usr/lib/libaspell.la
> lrwxrwxrwx 1 root root 19 Jan 31 2005 /usr/lib/libaspell.so ->
> libaspell.so.15.0.3
> lrwxrwxrwx 1 root root 19 Jan 31 2005 /usr/lib/libaspell.so.15 ->
> libaspell.so.15.0.3
> -rwxr-xr-x 1 root root 640032 Dec 20 2004 /usr/lib/libaspell.so.15.0.3
> -rwxr-xr-x 1 root root 1259 May 9 2005 /usr/lib/libkspell.la
> lrwxrwxrwx 1 root root 18 Jun 5 2005 /usr/lib/libkspell.so.4 ->
> libkspell.so.4.2.0
> -rwxr-xr-x 1 root root 3612 May 9 2005 /usr/lib/libkspell.so.4.2.0
> -rwxr-xr-x 1 root root 813 Dec 20 2004 /usr/lib/libpspell.la
> lrwxrwxrwx 1 root root 19 Jan 31 2005 /usr/lib/libpspell.so ->
> libpspell.so.15.0.3
> lrwxrwxrwx 1 root root 19 Jan 31 2005 /usr/lib/libpspell.so.15 ->
> libpspell.so.15.0.3
> -rwxr-xr-x 1 root root 3044 Dec 20 2004 /usr/lib/libpspell.so.15.0.3
>
> Obviously yours will probably be slightly different sizes, but
> assuming you're using an x86 processor, yours should be in the same
> general area.
>
> --
> Toby A Inkster BSc (Hons) ARCS
> Contact Me ~ http://tobyinkster.co.uk/contact[/color]

Thanks!! My directory and file sizes looks similar.

Wen I run:
$ aspell -a
aspell: error while loading shared libraries: /lib/libaspell.so.15: file too
short
$ aspell --version
aspell: error while loading shared libraries: /lib/libaspell.so.15: file too
short

/lib/libaspell.so.15 is similar in size to yours.


Closed Thread