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



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@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@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@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@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@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

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: how to check if a library is being loaded
    ... > Kelvin Cheng wrote: ... >> I want to write an install script to distribute the shared library. ... > will be locked and you won't be able to overwrite it via ...
    (comp.unix.aix)
  • Re: how to check if a library is being loaded
    ... Kelvin Cheng wrote: ... KC> I want to write an install script to distribute the shared library. ... Off the top of my head, genkex comes to mind. ...
    (comp.unix.aix)
  • Re: Web data blade installation on RHEL4
    ... Linux Enterprise 4. ... Running the ./install script we get an error that appears to be related to a -d paramater in the AWk command. ... If your version is not an rpm, then check the first line in the install script. ... If you already have registered the datablade with blademgr, you should run $INFORMIXDIR/extend/web.version/install/websetup to configure the web datablade - not ./install. ...
    (comp.databases.informix)
  • [SLE] ftp install script ?
    ... someone posted an install script that cut their ... download time to 144 minutes, ... Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com ...
    (SuSE)
  • Re: "if: Expression Syntax." Error
    ... I have an install script ... that works fine on a Sun machine (running Solaris 8 or 9) and a Linux ... Now when I try to run the same script on a machine running Fedora ... should quote variables unless there is a reason not to. ...
    (comp.unix.shell)