On 23/10/15 16:41, Livier Guidat wrote:
(mm well I am "new" mac user)

IF
export PATH="$PATH:$JENAROOT/bin"
echo $PATH

THEN I get
/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Desktop/Mana
/apache-jena-3.0.0/bin

no guarantee that any of those directories exist.


FINE, BUT after:

cd $JENAROOT

-bash: cd: /Desktop/Mana/apache-jena-3.0.0:* No such file or directory*

Any clue?

Find out which bit of the path does not exist or isn't a directory.

ls -d /Desktop
ls -d /Desktop/Mana
ls -d /Desktop/Mana/apache-jena-3.0.0

Your desktop isn't at /Desktop ?

Is it /Users/????/Desktop? (== ~/Desktop == $HOME/Desktop)

        Andy


Thanks

2015-10-23 18:08 GMT+03:00 Andy Seaborne <[email protected]>:

(I'm not a mac user)

On 23/10/15 10:08, Livier Guidat wrote:

Hi,
Well, I've checked the PATH, and this is exactly what I did:

iMac-Devi:~ devi$ export JENAROOT=/Desktop/Mana/apache-jena-3.0.0


ls -l -d $JENAROOT

iMac-Devi:~ devi$ export PATH=$PATH:$JENAROOT/bin


export PATH="$PATH:$JENAROOT/bin"
echo $PATH

iMac-Devi:~ devi$ sparql --version
-bash: sparql: command not found

AND

iMac-Devi:~ devi$ cd DESKTOP/Mana
iMac-Devi:Mana devi$ ls
apache-jena-3.0.0
iMac-Devi:Mana devi$ cd JENAROOT


cd $JENAROOT
pwd -P
ls -l bin


-bash: cd: JENAROOT: No such file or directory

What I am missing?

Thanks,
L.G

2015-10-23 12:00 GMT+03:00 Andy Seaborne <[email protected]>:

On 23/10/15 07:12, Livier Guidat wrote:

What i did (simply) I was following this:

      - export JENAROOT=*the directory I downloaded Jena to*
      - export PATH=$PATH:$JENAROOT/bin

But it seems that JENAROOT isn't there as I get command not found:

      - sparql --version
      -bash: sparql: *command not found*

Any clue what to do?

Thanks,
Liv. G.

Check PATH:

Is JENAROOT correct and an absolute path?
    .. with no spaces

Does the file exist?

Is it marked executable?

          Andy








Reply via email to