Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / December 2006



Tip: Looking for answers? Try searching our database.

Module Aspell::Text does not install

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marek Stepanek - 10 Dec 2006 17:31 GMT
Hello all,

I have some questions to the Module Text::Aspell and the general concept of
installing Open Source Unix software on Macintosh ...

My point of departure was, that I was annoyed, that I could not use aspell
for some lines only, say a new paragraph. I have to start over at the very
beginning to check the spelling. Did I oversaw something in the manual of
Aspell? So I thought, probably the Perl-Module Text::Aspell will bring me
the possibility to do this ???

I get following errors installing Text::Aspell with cpan:

cpan> install Text::Aspell

...

#   Failed test 'Make sure word "test" is in dictionary'
#   at t/05-core.t line 37.
#        
********************************************************************
#         * Error: No word lists can be found for the language "en_US".
#         *
#         * Are you sure you have the Aspell en_US dictionary installed?
#         *
#        
*********************************************************************
t/05-core....NOK 6/17
#   Failed test 'suggest for word 'testt''
#   at t/05-core.t line 56.
# Error: No word lists can be found for the language "en_US".

...

making

% which aspell

I get

/sw/bin/aspell

so do I have perhaps to install my aspell into a different place like:

/usr/local

??? In any case my American English dictionary seems to be installed,
because I can do an aspell-check with the option --lang=en_us without error
message ...

I have a fundamental doubt about my fink installation and the other Unix
stuff I installed on my computer, like Perl 5.8.8, or mysql or mod_perl ...

Do I really need Fink and XDarwin to install Aspell? Sorry for this dump
question ... I am on MacOS 10.3.9

thank you in advance for your patience

marek

Send instant messages to your online friends http://uk.messenger.yahoo.com
Boysenberry Payne - 11 Dec 2006 14:31 GMT
Probably an issue of making sure /sw/bin/ is in your path.
Try adding it to your path or making sure its in your path before  
running cpan.
Or you can also use cpan to get then install manually by going to  
the .cpan/build/(aspell sub directory)
See if it will install and test without cpan, then check the test  
error logs if it doesn't.

Hope that helps.

I would try it myself, but I've moved on to the Universal Binary  
world...

Boysenberry Payne
boysenberry@habitatlife.com

> Hello all,
>
[quoted text clipped - 69 lines]
> Send instant messages to your online friends http://
> uk.messenger.yahoo.com
Marek Stepanek - 12 Dec 2006 21:46 GMT
thank you for your answer!

On 11.12.2006 15:31, "Boysenberry Payne" <boysenberry@humaniteque.com>
wrote:

> Probably an issue of making sure /sw/bin/ is in your path.
> Try adding it to your path or making sure its in your path before
> running cpan.

mareklap% echo $PATH
/usr/local/mysql/bin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/loc
al/teTeX/bin/powerpc-apple-darwin-current:/usr/local/bin:/usr/X11R6/bin

> Or you can also use cpan to get then install manually by going to
> the .cpan/build/(aspell sub directory)
> See if it will install and test without cpan, then check the test
> error logs if it doesn't.

that doesn't help :-( but the shell spits out a long error message - the
same like cpan does -, which I paste here at the end.

> Hope that helps.
>
[quoted text clipped - 3 lines]
> Boysenberry Payne
> boysenberry@habitatlife.com

And here comes my fundamental question: what is the difference between
"Universal Binary world", the fink installation under the tree of sw/ and my
/usr/local/ ... Please I don't want you to explain the basics of Macintosh
plate form, but perhaps a link I would appreciate very much ...

Is it possible to install all my stuff from sw/ into /usr/local/ to avoid
confusion of my Perl Mudules, or at least the Aspell? By the way my Perl is
(and I post it here, also if it is long, because you may see here the error
resulting of a possible confusion in the different Perl-Installations):

mareklap% perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
 Platform:
   osname=darwin, osvers=7.9.0, archname=darwin-2level
   uname='darwin markslap.local 7.9.0 darwin kernel version 7.9.0: wed mar
30 20:11:17 pst 2005; root:xnuxnu-517.12.7.obj~1release_ppc power macintosh
powerpc '
   config_args='-de -Dperladmin=email@addr.com -Dcf_email=email@addr.com'
   hint=recommended, useposix=true, d_sigaction=define
   usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
   useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
   use64bitint=undef use64bitall=undef uselongdouble=undef
   usemymalloc=n, bincompat5005=undef
 Compiler:
   cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include',
   optimize='-Os',
   cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include'
   ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build
1671)', gccosandvers=''
   intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
   d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
   ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
   alignbytes=8, prototype=define
 Linker and Libraries:
   ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -L/usr/local/lib'
   libpth=/usr/local/lib /usr/lib
   libs=-ldbm -ldl -lm -lc
   perllibs=-ldl -lm -lc
   libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
   gnulibc_version=''
 Dynamic Linking:
   dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
   cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
-L/usr/local/lib'

Characteristics of this binary (from libperl):
 Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
 Built under darwin
 Compiled at Apr 10 2006 21:08:15
 %ENV:
   PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"
 @INC:
   /sw/lib/perl5
   /sw/lib/perl5/darwin
   /usr/local/lib/perl5/5.8.8/darwin-2level
   /usr/local/lib/perl5/5.8.8
   /usr/local/lib/perl5/site_perl/5.8.8/darwin-2level
   /usr/local/lib/perl5/site_perl/5.8.8
   /usr/local/lib/perl5/site_perl

Here the errors of trying to install the module Text::Aspell by "hand":

[markslap:~/.cpan/build/Text-Aspell-0.06] mareklap% make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01-use.....ok    
t/02-pod.....skipped
       all skipped: set TEST_POD to enable this test
t/05-core....NOK 4/17
#   Failed test 'Make sure word "test" is in dictionary'
#   at t/05-core.t line 37.
#        
********************************************************************
#         * Error: No word lists can be found for the language "en_US".
#         *
#         * Are you sure you have the Aspell en_US dictionary installed?
#         *
#        
*********************************************************************
t/05-core....NOK 6/17
#   Failed test 'suggest for word 'testt''
#   at t/05-core.t line 56.
# Error: No word lists can be found for the language "en_US".
Use of uninitialized value in join or string at t/05-core.t line 61.
t/05-core....NOK 7/17
#   Failed test 'search for testt returned more than 2 []'
#   at t/05-core.t line 61.
t/05-core....NOK 8/17
#   Failed test 'add 'testt' to the aspell session'
#   at t/05-core.t line 65.
# Error: No word lists can be found for the language "en_US".
Use of uninitialized value in pattern match (m//) at t/05-core.t line 71.
t/05-core....NOK 9/17
#   Failed test ''testt' added to session now is returned in suggest'
#   at t/05-core.t line 71.
# See README for more info on store_replacemnt
Use of uninitialized value in pattern match (m//) at t/05-core.t line 79.
t/05-core....NOK 11/17
#   Failed test 'Searching for "foo" found replacement "bar"'
#   at t/05-core.t line 79.
# clear_session may fail like store_replacement.  See README
Use of uninitialized value in pattern match (m//) at t/05-core.t line 86.
t/05-core....NOK 14/17
#   Failed test '0 dictionaries listed'
#   at t/05-core.t line 91.
t/05-core....NOK 15/17
#   Failed test '0 dictionaries found with dictionary_info'
#   at t/05-core.t line 94.
# Looks like you failed 8 tests of 17.
t/05-core....dubious
       Test returned status 8 (wstat 2048, 0x800)
DIED. FAILED tests 4, 6-9, 11, 14-15
       Failed 8/17 tests, 52.94% okay
Failed Test Stat Wstat Total Fail  List of Failed
----------------------------------------------------------------------------
---
t/05-core.t    8  2048    17    8  4 6-9 11 14-15
1 test skipped.
Failed 1/3 test scripts. 8/18 subtests failed.
Files=3, Tests=18,  1 wallclock secs ( 0.36 cusr +  0.08 csys =  0.44 CPU)
Failed 1/3 test programs. 8/18 subtests failed.
make: *** [test_dynamic] Error 8

       
___________________________________________________________
Try the all-new Yahoo! Mail. "The New Version is radically easier to use" ? The Wall Street Journal
http://uk.docs.yahoo.com/nowyoucan.html
Daniel T. Staal - 12 Dec 2006 22:03 GMT
> And here comes my fundamental question: what is the difference between
> "Universal Binary world", the fink installation under the tree of sw/ and
>  my /usr/local/ ... Please I don't want you to explain the basics of
> Macintosh plate form, but perhaps a link I would appreciate very much ...

There is no fundimental difference between sw/ and /usr/local.  They are
both unix tool directories.  /usr/local is a common location in many
unix-style OS's to put programs of this sort.  sw/ is specifically choosen
as _not_ a common location, so that it doesn't interfere with anything you
might have put in the common locations.  (Or that Apple might put there.)

> Is it possible to install all my stuff from sw/ into /usr/local/ to avoid
>  confusion of my Perl Mudules, or at least the Aspell? By the way my Perl
>  is (and I post it here, also if it is long, because you may see here the
>  error resulting of a possible confusion in the different
> Perl-Installations):

Yes, it is.  Aspell, I believe, should compile cleanly on its own and will
install itself in a standard location.

See my point above for why Fink et. all have not done it already: They
don't want to interfere with 'official' software that might be put there.
(Especially if the official version is modified in some way, which it is
in some cases.)

Daniel T. Staal

---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------
Joel Rees - 13 Dec 2006 11:36 GMT
>   sw/ is specifically choosen
> as _not_ a common location, so that it doesn't interfere with  
> anything you
> might have put in the common locations.  (Or that Apple might put  
> there.)

Just for the record, I've never seen anything from Apple put under /
usr/local .

My observation is that most software is set up by default to install  
under /usr/local if you get it from the original source, but if you  
get it downstream, it will tend to get installed elsewhere. If your  
distro has "official distro package" versions (customized for the  
distro), those will tend to go under /usr . In the case of fink, they  
are neither official distro (Apple) nor the original source, and the  
packages are almost invariably customized, so it would make sense to  
put them under a third tree, thus, /sw .

Mind you, I don't use fink, I generally tend to go to the source. I'm  
kind of weird that way. (And then I have to bug Sherm to explain why  
things don't work for me. Heh.)
Boysenberry Payne - 13 Dec 2006 18:17 GMT
It looks like you updated perl, it might be why it's not seeing Aspell.
I would say try installing Aspell from source in its default locations,
if it doesn't break something you already installed.
Then try reinstalling the perl module.
If it doesn't work after the install from source, then I would try
a make install off of the perl modules regardless of the test errors.
I've noticed the tests aren't always reliable on OS X.

Hope that helps.

I would go through explaining the difference betweeen /usr/
and /sw/ but others have already done it well enough on this thread.

> thank you for your answer!
>
[quoted text clipped - 180 lines]
> to use" ˆ The Wall Street Journal
> http://uk.docs.yahoo.com/nowyoucan.html
Rick Frankel - 13 Dec 2006 22:59 GMT
> t/05-core....NOK 4/17
> #   Failed test 'Make sure word "test" is in dictionary'
[quoted text clipped - 4 lines]
> #         *
> #         * Are you sure you have the Aspell en_US dictionary installed?

This is your hint. You have aspell installed but no dictionaries.
since you are refering to /sw, i assume you have used fink to install
aspell. From the fink website:

    Package aspell
    ...
    Description: Spell checker better than ispell

    No dictionaries are installed - you'll need to install the
    aspell-en package or another aspell dictionary. Dictionaries that were
    used on previous versions of aspell must be updated to work with this
    version.

You need to install the package aspell-en.

rick
Marek Stepanek - 17 Dec 2006 07:23 GMT
thank you all for your answers.

>> t/05-core....NOK 4/17
>> #   Failed test 'Make sure word "test" is in dictionary'
[quoted text clipped - 21 lines]
>
> rick

[markslap:~/Documents] mareklap% fink install aspell-en
Information about 2445 packages read in 1 seconds.
No packages to install.

...

I think I will give up with the Module Text::Aspell

What I did is

mareklap% fink selfupdate

mareklap% fink update-all
Information about 2445 packages read in 1 seconds.
Can't resolve dependency "system-perl581" for package "intltool-0.34.1-3"
(no matching packages/versions found)
Exiting with failure.

???

Then I tried to install Text::Aspell manually, but as before:

[markslap:~/.cpan/build/Text-Aspell-0.06] mareklap% make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01-use.....ok    
t/02-pod.....skipped
       all skipped: set TEST_POD to enable this test
t/05-core....NOK 4/17
#   Failed test 'Make sure word "test" is in dictionary'
#   at t/05-core.t line 37.
#        
********************************************************************
#         * Error: No word lists can be found for the language "en_US".
#         *
#         * Are you sure you have the Aspell en_US dictionary installed?
#         *
#        
*********************************************************************
t/05-core....NOK 6/17
#   Failed test 'suggest for word 'testt''
#   at t/05-core.t line 56.
# Error: No word lists can be found for the language "en_US".
Use of uninitialized value in join or string at t/05-core.t line 61.
t/05-core....NOK 7/17
#   Failed test 'search for testt returned more than 2 []'
#   at t/05-core.t line 61.
t/05-core....NOK 8/17
#   Failed test 'add 'testt' to the aspell session'
#   at t/05-core.t line 65.
# Error: No word lists can be found for the language "en_US".
Use of uninitialized value in pattern match (m//) at t/05-core.t line 71.
t/05-core....NOK 9/17
#   Failed test ''testt' added to session now is returned in suggest'
#   at t/05-core.t line 71.
# See README for more info on store_replacemnt
Use of uninitialized value in pattern match (m//) at t/05-core.t line 79.
t/05-core....NOK 11/17
#   Failed test 'Searching for "foo" found replacement "bar"'
#   at t/05-core.t line 79.
# clear_session may fail like store_replacement.  See README
Use of uninitialized value in pattern match (m//) at t/05-core.t line 86.
t/05-core....NOK 14/17
#   Failed test '0 dictionaries listed'
#   at t/05-core.t line 91.
t/05-core....NOK 15/17
#   Failed test '0 dictionaries found with dictionary_info'
#   at t/05-core.t line 94.
# Looks like you failed 8 tests of 17.
t/05-core....dubious
       Test returned status 8 (wstat 2048, 0x800)
DIED. FAILED tests 4, 6-9, 11, 14-15
       Failed 8/17 tests, 52.94% okay
Failed Test Stat Wstat Total Fail  List of Failed
----------------------------------------------------------------------------
---
t/05-core.t    8  2048    17    8  4 6-9 11 14-15
1 test skipped.
Failed 1/3 test scripts. 8/18 subtests failed.
Files=3, Tests=18,  1 wallclock secs ( 0.38 cusr +  0.05 csys =  0.43 CPU)
Failed 1/3 test programs. 8/18 subtests failed.
make: *** [test_dynamic] Error 8

so thanks again to all who tried to help. I can live with my Aspell
installation as it is. Also if I am not satisfied, to spell every file from
the beginning. (My first question is still not answered: may I check with
the Module Text::Aspell certain, new lines?)

greetings to all

marek

Send instant messages to your online friends http://uk.messenger.yahoo.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.