Guest peelie Posted September 11, 2010 Report Posted September 11, 2010 hi trying to setup build environment on ubuntu machine following instructions from android open source project but can't seem to run repo - says command not found so i guess i need to enable or set path to bash but command i found says bashrc permission denied? anyhelp?
Guest AdamBaker Posted September 11, 2010 Report Posted September 11, 2010 .bashrc is run automatically at shell startup so doesn't normally need execute permission. If you gave it execute permission then ran it it would run in a subshell so none of the settings it confures what affect the normal environment, therefore if you want to re-run it you need to do ". .bashrc" without the quotes and doing that it doesn't need execute permission.
Guest peelie Posted September 11, 2010 Report Posted September 11, 2010 .bashrc is run automatically at shell startup so doesn't normally need execute permission. If you gave it execute permission then ran it it would run in a subshell so none of the settings it confures what affect the normal environment, therefore if you want to re-run it you need to do ". .bashrc" without the quotes and doing that it doesn't need execute permission. hi am trying to run this command - sudo echo "export PATH=$PATH:/bin" >> /etc/bash.bashrc which i think i need to be able to run repo?
Guest AdamBaker Posted September 11, 2010 Report Posted September 11, 2010 User changes usually go in ~/.bashrc, not /etc/bash.bashrc but /bin will be part of your $PATH anyway. Google's instructions suggest putting repo in ~/bin which if your account users the Ubuntu default version of ~/.profile will also be in your $PATH
Guest peelie Posted September 11, 2010 Report Posted September 11, 2010 User changes usually go in ~/.bashrc, not /etc/bash.bashrc but /bin will be part of your $PATH anyway. Google's instructions suggest putting repo in ~/bin which if your account users the Ubuntu default version of ~/.profile will also be in your $PATH okay so why is bash not finding the repo command? (sorry for any stupid questions all new to this!)
Guest peelie Posted September 11, 2010 Report Posted September 11, 2010 okay so why is bash not finding the repo command? (sorry for any stupid questions all new to this!) hmm nevermind a reboot of my system seems to have sorted it :P will have more questions for next stages of build for sure!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now