bash: lunch: command not found

8,768 views
Skip to first unread message

Sebastiaan Helsen

unread,
Aug 10, 2010, 4:23:47 AM8/10/10
to android-platform
Hi,

I noticed that this question has been asked before but hasn't been
answered to my needs.
You see I get this error "bash: lunch: command not found" whenever I
try to run lunch. The
solution on every forum is to run ./build/envsetup.sh WITH the leading
dot but in my case
I already did that and that works fine (I get a message including
vendor/aosp/vendorsetup.sh)
but lunch still doesn't work.

Best regards

Arun Kumar

unread,
Aug 10, 2010, 10:51:15 AM8/10/10
to android-...@googlegroups.com
you need to put a . followed by a space with path to envsetup.sh. dont forget the space between . and /

. /build/envsetup.sh



--
Best Regards,
Arun Kumar Singh
www.crazydaks.com
 
Also catch me on



--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.




Sebastiaan Helsen

unread,
Aug 11, 2010, 5:14:55 AM8/11/10
to android-...@googlegroups.com
putting source in front of . /build/envsetup.sh worked although I don't know why

2010/8/10 Arun Kumar <aru...@gmail.com>

Tim Detwiler

unread,
Aug 11, 2010, 8:37:56 AM8/11/10
to android-...@googlegroups.com
envsetup.sh needs to be executed in the current shell, and calling ./build/envsetup.sh causes it to be run in a sub-shell.

Your options are then to run either ". ./build/envsetup.sh" or "source ./build/envsetup.sh".

See this article for more information: http://www.thegeekstuff.com/2010/07/execute-shell-script/

-Tim

Arun Kumar

unread,
Aug 13, 2010, 2:29:59 AM8/13/10
to android-...@googlegroups.com
That's the most precise answer we can ever have on this. Thanks Tim for sharing the same.


--
Best Regards,
Arun Kumar Singh
www.crazydaks.com
 
Also catch me on


Reply all
Reply to author
Forward
0 new messages