Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
User Journal

Journal stoolpigeon's Journal: Linux path question - Never Mind 4

I swear I looked at this forever and I just finally figured out it was simply a matter of a typo when I added the directory to my path in .bash_profile. I put in linux_86 and it should be linux_x86. Stupid. I'll leave this here as a monument to my need to pay attention to details. Original JE below
*******************

I installed the Android SDK on one of my fedora machines. There are binaries I want to use that are in the location
/opt/android-sdk-linux_86/tools

So I added that to my path. When I check with echo $PATH I see it. When I try running one of the binaries there - android - I get "bash: android: comand not found..."

When I try "which android" it tells me,

$ which android /usr/bin/which: no android in (/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/sbin:/usr/sbin:/sbin:/home/jr.peck/bin:/home/jr.peck/bin:/opt/android-sdk-linux_86/tools:/opt/android-sdk-linux_86/platform-tools:/opt/cordova-2.2.0/android/bin)

but if I type in from the prompt
/opt/android-sdk-linux_86/tools/android

Then it runs just fine. So what have I left out?

This discussion has been archived. No new comments can be posted.

Linux path question - Never Mind

Comments Filter:
  • by Qzukk ( 229616 )

    Your

    which

    command behaves like tcsh or csh but the error message says bash. Which shell is it?

    • I use bash.

      • by Qzukk ( 229616 )

        It must just be the which binary used in android then. Mine returns nothing if the program is not found. tcsh has a builtin which command, and *csh uses "(/foo /bar /baz)" designation for paths, which is what led to my confusion.

        • It's whichever which is default with Fedora.

          $ which --version
          GNU which v2.20, Copyright (C) 1999 - 2008 Carlo Wood.
          GNU which comes with ABSOLUTELY NO WARRANTY;
          This program is free software; your freedom to use, change
          and distribute this program is protected by the GPL.

To the systems programmer, users and applications serve only to provide a test load.

Working...