Find the answer to your Linux question:
Results 1 to 6 of 6
hi friends, I am using ubuntu 8.10..In that i tried one command. But it says the following error.. Code: bash: emulator: command not found This command is used in android ...
  1. #1
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308

    setting the command path

    hi friends,
    I am using ubuntu 8.10..In that i tried one command. But it says the following error..

    Code:
    bash: emulator: command not found
    This command is used in android development.
    i think i have to set the path. But i dont know how to set the path. This is the list of /bin
    Code:
    sharief@sharief-desktop:/bin$ ls
    bash                  dnsdomainname  mountpoint      sleep
    bunzip2               dumpkeys       mt              stty
    bzcat                 echo           mt-gnu          su
    bzcmp                 ed             mv              sync
    bzdiff                egrep          nano            tailf
    bzegrep               false          nc              tar
    bzexe                 fgconsole      nc.traditional  tempfile
    bzfgrep               fgrep          netcat          touch
    bzgrep                fuser          netstat         true
    bzip2                 fusermount     ntfs-3g         ulockmgr_server
    bzip2recover          grep           ntfs-3g.probe   umount
    bzless                gunzip         open            uname
    bzmore                gzexe          openvt          uncompress
    cat                   gzip           pidof           unicode_start
    chgrp                 hostname       ping            vdir
    chmod                 ip             ping6           which
    chown                 kbd_mode       ps              zcat
    chvt                  kill           pwd             zcmp
    cp                    ld_static      rbash           zdiff
    cpio                  ln             readlink        zegrep
    dash                  loadkeys       rm              zfgrep
    date                  login          rmdir           zforce
    dbus-cleanup-sockets  ls             rnano           zgrep
    dbus-daemon           lsmod          run-parts       zless
    dbus-uuidgen          mkdir          sed             zmore
    dd                    mknod          setfont         znew
    df                    mktemp         setupcon
    dir                   more           sh
    dmesg                 mount          sh.distrib
    sharief@sharief-desktop:/bin$
    can anyone help me how to set this command in this path?
    Thanks in advance...

  2. #2
    Just Joined!
    Join Date
    Sep 2009
    Posts
    24
    you can execute the command by typing the path with the command if you know where it is,

    to add a directory to the path do

    "PATH=$PATH:/directory/subdirectory/"

  3. #3
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    yes i tried this
    Code:
    export PATH=$PATH:/home/sharief/Desktop/SDK/android-sdk-linux_x86-1.5_r3/tools/emulator
    but still i am getting the same error message..
    Thanks in advance...

  4. #4
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,114
    Code:
    echo $PATH
    to verify that you set the path to what you intended, and check
    the directory to be sure the command you want to run is actually
    there.

    Code:
    ls -l
    to see if it is executable

  5. #5
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    Now its works fine. Thank you
    Thanks in advance...

  6. #6
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308
    oh...Again i am having thus problem for other command..

    Code:
    sharief@sharief-desktop:~/Desktop/SDK/android-sdk-linux_x86-1.5_r3/tools$ export PATH=$PATH:/home/sharief/Desktop/SDK/android-sdk-linux_x86-1.5_r3/tools/android
    i think this is correct to set the apth. But i dont know wht its not working

    oh...Again i am having thus problem for other command..
    Code:
    bash: android: command not found
    Thanks in advance...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...