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

Axel Etzold AEtzold at gmx.de
Sun Jun 29 14:11:41 UTC 2008


Dear all,

I am having a weird problem on kubuntu 8.04. I try to install a software (see link below), which comprises
an sh install script. This script organizes some data files put into the same directory and calls one of two
sh scripts (at the user's choice), whose results are piped into a Perl script.
However, only one of the files is found, even though the whole path is given. How can that be ?
Both files are in the same directory ...


This is ok:

axel at alecrim:~/sprache$ echo 'This is a test.' | cmd/tree-tagger-english
        reading parameters ...
        tagging ...
This    DT      this
is      VBZ     be
a       DT      a
test    NN      test
.       SENT    .
         finished.

This is not --  the first operation (tagging) -- is needed for the second:

axel at alecrim:~/sprache$ echo 'This is a test.' | cmd/tagger-chunker-english
file not found: /home/axel/sprache/lib/english-abbreviations
cmd/tagger-chunker-english: 17: /home/axel/sprache/cmd/filter-chunker-output.perl: not found
        reading parameters ...
        tagging ...
         finished.

But these files are there:

axel at alecrim:~/sprache/lib$ ls
dutch-abbreviations    french-abbreviations  german.par
dutch.par              french-chunker.par    italian-abbreviations
english-abbreviations  french.par            italian.par
english-chunker.par    german-abbreviations  spanish-abbreviations
english-lexicon.txt    german-chunker.par    spanish-mwls
english.par            german-lexicon.txt    spanish.par


axel at alecrim:~/sprache/cmd$ ls
chunker-read-lemma.perl            mwl-lookup.perl         tree-tagger-french
chunker-write-lemma.perl           tagger-chunker-english  tree-tagger-german
filter-chunker-output-french.perl  tagger-chunker-french   tree-tagger-italian
filter-chunker-output-german.perl  tagger-chunker-german   tree-tagger-russian
filter-chunker-output.perl         tokenize.pl             tree-tagger-spanish
filter-coordinate-output.perl      tree-tagger-bulgarian   utf8-tokenize.perl
filter-german-tags                 tree-tagger-dutch
lookup.perl                        tree-tagger-english

I also set the $PATH variable to include these directories:

axel at alecrim:~/sprache/cmd$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/jruby-1.1.2/bin:/home/axel/sprache/cmd:/home/axel/sprache:/home/axel/sprache/lib


What's going on here ?

Thank you very much,

Best regards,

Axel

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx




More information about the ubuntu-users mailing list