repo: command not found。


建立一個工程目錄,隨便MKDIR一個目錄就可以了,然后再進入到你要下載源碼的目錄,完事之后就再將andoid源碼下載到你剛才建立的目錄下面。
     repo -init -u git://android.git.kernel.org/platform/manifest -b master
做到這一步的時候出現repo: command not found。
重復多次仍然是repo: command not found,我檢查了一下我的命令,看起來也沒錯呀,這倒底是怎么回事呢。
我的解決辦法是要在~目錄下建立bin與android,而不是其它地方,否則會出現問題,~目錄實際上就是用戶登錄進入的目錄
the reason is : folder bin is not in your evironment path, export it. will be ok.
后來經過多方面查找才發現還須要設置。方法如下。
 jianhui.jin@echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
 jianhui.jin@export PATH=$PATH:$HOME/bin
然后再來
   -init -u git://android.git.kernel.org/platform/manifest -b master


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM