Path?


#1

ok, maybe someone can help me wiht this one…

I need to set my PATH so that I can install the english dictionary for aspell.

according to the generic install instructions, “The aspell program must be in your path in order for the dictionaries to install correctly.”

therefor, I tried using "export PATH=$HOME/usr/bin:$PATH"
and then runing ./configure. However it doesn’t run correctly.

Next I tried manualy edting my .bash_profile and setting the path there, as follows:

"# ~/.bash_profile: executed by bash(1) for login shells.

umask 002
PS1=’[\h]$ '
PATH=$PATH:$HOME:$HOME/usr:$HOME/usr/bin/aspell:$HOME/usr/bin/prezip-bin:$PATH
"

When I first opened up the file only the first two lines were there, I added the PATH line entirley on my own.

Alas the configure is still not running properly.

according the the readme configure should output something to the effect of

Finding Dictionary file location … /usr/local/lib/aspell
Finding Data file location … /usr/local/share/aspell

but it spews out just over a full screen worth of text. if I try and run make it dies with:
“Makefile:81: *** missing separator. Stop.”

Any idea what I should do?

EDIT: if anyone is wondering this is what I get back from ./confiugure

[galaga]$ ./configure
Finding Dictionary file location … # conf descrip: main configuration file # conf default: aspell.conf # conf current: aspell.conf # conf-dir descrip: location of main configuration file # conf-dir default: /etc # conf-dir current: /etc # data-dir descrip: location of language data files # data-dir default: prefix:share/aspell # data-dir current: /usr/share/aspell # dict-dir descrip: location of the main word list # dict-dir default: prefix:lib/aspell # dict-dir current: /usr/lib/aspell # add|rem-extra-dicts descrip: extra dictionaries to use # extra-dicts default: # add|rem-filter descrip: add or removes a filter # filter default: url # home-dir descrip: location for personal files # home-dir default: <$HOME|./> # home-dir current: /home/harts # ignore descrip: ignore words <= n chars # ignore default: 1 # ignore current: 1 # ignore-accents descrip: ignore accents when checking words # ignore-accents default: false # ignore-accents current: false # ignore-case descrip: ignore case when checking words # ignore-case default: false # ignore-case current: false # ignore-repl descrip: ignore commands to store replacement pairs # ignore-repl default: false # ignore-repl current: false # keyboard descrip: keyboard definition to use for typo analysis # keyboard default: standard # keyboard current: standard # lang descrip: default language to use when all else fails # lang default: english # lang current: english # language-tag descrip: language code to use when selecting a dictionary # language-tag default: <$LANG|en> # language-tag current: C # local-data-dir descrip: location of local language data files # local-data-dir default: prefix:share/aspell # local-data-dir current: /usr/share/aspell # master descrip: base name of the main dictionary to use # master default: # master current: english master english # mode descrip: filter mode = none,url,email,sgml,tex # mode default: url # mode current: url # per-conf descrip: personal configuration file # per-conf default: .aspell.conf # per-conf current: .aspell.conf # personal descrip: personal word list file name # personal default: .aspell..pws # personal current: .aspell.english.pws # prefix descrip: prefix directory # prefix default: /usr # prefix current: /usr # set-prefix descrip: set the prefix based on executable location # set-prefix default: true # set-prefix current: true # repl descrip: replacements list file name # repl default: .aspell..prepl # repl current: .aspell.english.prepl # run-together descrip: consider run-together words legal # run-together default: false # run-together current: false # run-together-limit descrip: maxium numbers that can be strung together # run-together-limit default: 8 # run-together-limit current: 8 # run-together-min descrip: minimal length of interior words # run-together-min default: 3 # run-together-min current: 3 # save-repl descrip: save replacement pairs on save all # save-repl default: true # save-repl current: true # strip-accents descrip: strip accents from word lists # strip-accents default: false # strip-accents current: false # sug-mode descrip: suggestion mode = ultra|fast|normal|bad-spellers # sug-mode default: normal # sug-mode current: normal # add|rem-email-quote descrip: email quote characters # email-quote default: >,| # email-margin descrip: num chars that can appear before the quote char # email-margin default: 10 # email-margin current: 10 # add|rem-sgml-check descrip: sgml tags to always check. # sgml-check default: alt # add|rem-sgml-extension descrip: sgml file extensions # sgml-extension default: html,htm,php,sgml # add|rem-tex-command descrip: TeX commands # tex-command default: addtocounter pp,addtolength pp,alpha p,arabic p,fnsymbol p,roman p,stepcounter p,setcounter pp,usecounter p,value p,newcounter po,refstepcounter p,label p,pageref p,ref p,newcommand poOP,renewcommand poOP,newenvironment poOPP,renewenvironment poOPP,newtheorem poPo,newfont pp,documentclass op,usepackage op,begin po,end p,setlength pp,addtolength pp,settowidth pp,settodepth pp,settoheight pp,enlargethispage p,hyphenation p,pagenumbering p,pagestyle p,addvspace p,framebox ooP,hspace p,vspace p,makebox ooP,parbox ooopP,raisebox pooP,rule opp,sbox pO,savebox pooP,usebox p,include p,includeonly p,input p,addcontentsline ppP,addtocontents pP,fontencoding p,fontfamily p,fontseries p,fontshape p,fontsize pp,usefont pppp,documentstyle op,cite p,nocite p,psfig p,selectlanguage p,includegraphics op,bibitem op,geometry p, # tex-check-comments descrip: check TeX comments # tex-check-comments default: false # tex-check-comments current: false
Finding Data file location … # conf descrip: main configuration file # conf default: aspell.conf # conf current: aspell.conf # conf-dir descrip: location of main configuration file # conf-dir default: /etc # conf-dir current: /etc # data-dir descrip: location of language data files # data-dir default: prefix:share/aspell # data-dir current: /usr/share/aspell # dict-dir descrip: location of the main word list # dict-dir default: prefix:lib/aspell # dict-dir current: /usr/lib/aspell # add|rem-extra-dicts descrip: extra dictionaries to use # extra-dicts default: # add|rem-filter descrip: add or removes a filter # filter default: url # home-dir descrip: location for personal files # home-dir default: <$HOME|./> # home-dir current: /home/harts # ignore descrip: ignore words <= n chars # ignore default: 1 # ignore current: 1 # ignore-accents descrip: ignore accents when checking words # ignore-accents default: false # ignore-accents current: false # ignore-case descrip: ignore case when checking words # ignore-case default: false # ignore-case current: false # ignore-repl descrip: ignore commands to store replacement pairs # ignore-repl default: false # ignore-repl current: false # keyboard descrip: keyboard definition to use for typo analysis # keyboard default: standard # keyboard current: standard # lang descrip: default language to use when all else fails # lang default: english # lang current: english # language-tag descrip: language code to use when selecting a dictionary # language-tag default: <$LANG|en> # language-tag current: C # local-data-dir descrip: location of local language data files # local-data-dir default: prefix:share/aspell # local-data-dir current: /usr/share/aspell # master descrip: base name of the main dictionary to use # master default: # master current: english master english # mode descrip: filter mode = none,url,email,sgml,tex # mode default: url # mode current: url # per-conf descrip: personal configuration file # per-conf default: .aspell.conf # per-conf current: .aspell.conf # personal descrip: personal word list file name # personal default: .aspell..pws # personal current: .aspell.english.pws # prefix descrip: prefix directory # prefix default: /usr # prefix current: /usr # set-prefix descrip: set the prefix based on executable location # set-prefix default: true # set-prefix current: true # repl descrip: replacements list file name # repl default: .aspell..prepl # repl current: .aspell.english.prepl # run-together descrip: consider run-together words legal # run-together default: false # run-together current: false # run-together-limit descrip: maxium numbers that can be strung together # run-together-limit default: 8 # run-together-limit current: 8 # run-together-min descrip: minimal length of interior words # run-together-min default: 3 # run-together-min current: 3 # save-repl descrip: save replacement pairs on save all # save-repl default: true # save-repl current: true # strip-accents descrip: strip accents from word lists # strip-accents default: false # strip-accents current: false # sug-mode descrip: suggestion mode = ultra|fast|normal|bad-spellers # sug-mode default: normal # sug-mode current: normal # add|rem-email-quote descrip: email quote characters # email-quote default: >,| # email-margin descrip: num chars that can appear before the quote char # email-margin default: 10 # email-margin current: 10 # add|rem-sgml-check descrip: sgml tags to always check. # sgml-check default: alt # add|rem-sgml-extension descrip: sgml file extensions # sgml-extension default: html,htm,php,sgml # add|rem-tex-command descrip: TeX commands # tex-command default: addtocounter pp,addtolength pp,alpha p,arabic p,fnsymbol p,roman p,stepcounter p,setcounter pp,usecounter p,value p,newcounter po,refstepcounter p,label p,pageref p,ref p,newcommand poOP,renewcommand poOP,newenvironment poOPP,renewenvironment poOPP,newtheorem poPo,newfont pp,documentclass op,usepackage op,begin po,end p,setlength pp,addtolength pp,settowidth pp,settodepth pp,settoheight pp,enlargethispage p,hyphenation p,pagenumbering p,pagestyle p,addvspace p,framebox ooP,hspace p,vspace p,makebox ooP,parbox ooopP,raisebox pooP,rule opp,sbox pO,savebox pooP,usebox p,include p,includeonly p,input p,addcontentsline ppP,addtocontents pP,fontencoding p,fontfamily p,fontseries p,fontshape p,fontsize pp,usefont pppp,documentstyle op,cite p,nocite p,psfig p,selectlanguage p,includegraphics op,bibitem op,geometry p, # tex-check-comments descrip: check TeX comments # tex-check-comments default: false # tex-check-comments current: false

-Matttail


#2

allright, so if I type export and hit enter I get this now:

declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/harts/usr/bin/aspell:/home/harts/usr/bin/prezip-bin:/home/harts/usr:"

and if I try and excuite aspell it returns with the version installed on the server. Doesn’t that mean that either becuase /usr/bin is being declared before $HOME/usr/bin it looking in the wrong place, or that I have not specified the correct place that installed aspell to?

If that’s right, how would I go about changing it?

-Matttail


#3

Thanks! got it working. most of the problem was that /$HOME/usr/bin/aspell was not a directory - I had to change it to just …/usr/bin/ and that covered the bases for aspell and prezip-bin.

Out of curosity, what is the purpose of “export PATH” being place in the .bash_profile file?

thanks again :slight_smile:

-Matttail


#4

allright, I’ve got Aspell and the English dictionary intalled and working properly. Now I’m trying to install the module Text::Aspell. However I get an error.

Here’s the basics:
wget http://search.cpan.org/CPAN/authors/id/H/HA/HANK/Text-Aspell-0.04.tar.gz
tar -xzf Text-Aspell-0.04.tar.gz
cd Text-Aspell-0.04
perl Makefile.PL PREFIX=$HOME/usr/perl_lib
CCFLAGS=-I$HOME/usr/include
LIBS="-L$HOME/usr/lib -laspell"
LD_RUN_PATH=$HOME/usr/lib make
make test

PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1 -e ‘use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;’ t/*.t
t/test…FAILED test 20
Failed 1/21 tests, 95.24% okay
Failed Test Status Wstat Total Fail Failed List of Failed

t/test.t 21 1 4.76% 20
Failed 1/1 test scripts, 0.00% okay. 1/21 subtests failed, 95.24% okay.
make: *** [test_dynamic] Error 29

What is wrong? I can’t find any search results for this eror any sigguestions apprechated.

-Matttail


#5

Matttail,

Did you ever get Text::Aspell working? I saw your other post on how you got Aspell installed. Since then it appears that DH has updated the version of Aspell on the server (“aspell -v” returns 0.60.3) and that the english library is already installed as well (“aspell --help” look toward the bottom at installed libraries).

I’ve tried installing Text::Aspell locally for use with the SpellChecker plugin of HTMLArea. Creating the Makefile seems to work, but when I run ‘make’ I get the error:

Aspell.xs:7:20: aspell.h: No such file or directory

as the first in a long string of errors which eventually results in a make failure.

Any thoughts?
Thanks!
Morgan


#6

No, I wasn’t able to get test::aspell working. I went with a program called speller pages. It interfaces with aspell and I’m pretty sure it’s easy to intregate with HTMLarea. It’s also easy to integrate with movable type for comment spell checking.

There’s instruction in the wiki for installing Aspell and Speller pages.

-Matttail


#7

Thanks Matttail,

I was able to get Text::Aspell working. I posted the steps I took after your posting describing how to install Aspell here.