sh not finding a file, even though the full path is given

Axel Etzold AEtzold at gmx.de
Sun Jun 29 15:38:51 UTC 2008


Dear Karl,

> On Sun, 2008-06-29 at 16:11 +0200, Axel Etzold wrote:
> > I try to install a software (see link below)
> 
> No link was given...?

thank you for responding ... sorry, I sent that email a bit too soon :( --the link was:

http://www.ims.uni-stuttgart.de/projekte/corplex/TreeTagger/



> 
> > cmd/tagger-chunker-english: 17:
> /home/axel/sprache/cmd/filter-chunker-output.perl: not found
> 


> Is it really being executed via sh ("sh command")?

well, there's a shebang-line tagging script, which works/ and another which doesn't work: 
The first works:

# -------- tree-tagger-english
#!/bin/sh

# In order to activate external lexicon lookup
# you have to uncomment the respective line below
# i.e. remove the hash symbol in front of it.
# The external lexicon must be stored in a file named
# "german-lexicon.txt" in the subdirectory "lib".
# See the Perl script "lookup.perl" for more information
# on the format of this file.

# Set these paths appropriately

BIN=/home/axel/sprache/bin
CMD=/home/axel/sprache/cmd
LIB=/home/axel/sprache/lib

OPTIONS="-token -lemma -sgml -pt-with-lemma"

TOKENIZER=${CMD}/tokenize.pl
TAGGER=${BIN}/tree-tagger
ABBR_LIST=${LIB}/german-abbreviations
PARFILE=${LIB}/german.par
LEXFILE=${LIB}/german-lexicon.txt
FILTER=${CMD}/filter-german-tags

$TOKENIZER -a $ABBR_LIST $* |
# external lexicon lookup
perl $CMD/lookup.perl $LEXFILE |
# tagging
$TAGGER $OPTIONS $PARFILE  |
# error correction
$FILTER

# --------end of file  tree-tagger-english

and this is the  one which doesn't work:

# --------file  tagger-chunker-english

axel at alecrim:~/sprache/cmd$ cat tagger-chunker-english
#!/bin/sh

# Set these paths appropriately

BIN=/home/axel/sprache/bin
CMD=/home/axel/sprache/cmd
LIB=/home/axel/sprache/lib

POSTAGGER=${CMD}/tree-tagger-english
TAGGER=${BIN}/tree-tagger
PARFILE=${LIB}/english-chunker.par
FILTER=${CMD}/filter-chunker-output.perl

$POSTAGGER $* |
perl -nae 'if ($#F==0){print}else{print "$F[0]-$F[1]\n"}' |
$TAGGER $PARFILE -token -sgml -eps 0.00000001 -hyphen-heuristics -quiet |
$FILTER

# --------end of file  tagger-chunker-english

There are similiar files for French and German, each time the tagging file is found,
each time, in the chunker file, the output filter filter-chunker-output.perl/filter-chunker-output-german.perl/
filter-chunker-output-french.perl is not found, even though it is present.




> 
> If not, if it is being executed from within a script but without a new
> shell, then it may be present, but not executable by you...

I tried it as root, and set the rights  as chmod a+rwx * , but this didn't help either...
Now, I am pretty lost....

Thank you for any help.

Best regards,

Axel 
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger




More information about the ubuntu-users mailing list