Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Linux path question - Never Mind

stoolpigeon (454276) writes | about 2 years ago

User Journal 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 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?

cancel ×

4 comments

Sorry! There are no comments related to the filter you selected.

Weird (1)

Qzukk (229616) | about 2 years ago | (#41969965)

Your

which

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

Re:Weird (1)

stoolpigeon (454276) | about 2 years ago | (#41978663)

I use bash.

Re:Weird (1)

Qzukk (229616) | about 2 years ago | (#41983883)

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.

Re:Weird (1)

stoolpigeon (454276) | about 2 years ago | (#41990001)

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.

Check for New Comments
Slashdot Login

Need an Account?

Forgot your password?

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>