• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root not installing repo?

so I'm trying to install a repo (manteras) but this comes up

fatal: 'git' is not available
fatal: [Errno 2] No such file or directory

Please make sure git is installed and in your path.

is there a way to fix this?

That's an odd one, my friend. :p


I would make sure that your bin folder is set up properly, and defined in your path, (use google)
 
Upvote 0
That's an odd one, my friend. :p


I would make sure that your bin folder is set up properly, and defined in your path, (use google)

I'm sure i did everything right. i followed wat to do from here
http://wiki.cyanogenmod.com/wiki/HTC_Evo_4G:_Compile_CyanogenMod_(OS_X)
and this comes up...


Last login: Wed Jun 13 14:46:35 on ttys000
new-host-3:~ android$ PATH=${PATH}:/Volumes/CyanogenModWorkspace/bin:
new-host-3:~ android$ cd /Volumes/CyanogenModWorkspacenew-host-3:CyanogenModWorkspace android$ mkdir -p bin
new-host-3:CyanogenModWorkspace android$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > bin/repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 20774 100 20774 0 0 31516 0 --:--:-- --:--:-- --:--:-- 88025
new-host-3:CyanogenModWorkspace android$ chmod a+x bin/repo
new-host-3:CyanogenModWorkspace android$ mkdir -p android/system/
new-host-3:CyanogenModWorkspace android$ PATH=${PATH}:/Volumes/CyanogenModWorkspace/bin:
new-host-3:CyanogenModWorkspace android$ cd /Developer/SDKs
new-host-3:SDKs android$ sudo ln -s /Developer/SDKs/MacOSX10.6.sdk /Developer/SDKs/MacOSX10.5.sdk
Password:
ln: /Developer/SDKs/MacOSX10.5.sdk/MacOSX10.6.sdk: File exists
new-host-3:SDKs android$ cd /Volumes/CyanogenModWorkspace/android/system/
new-host-3:system android$ repo init -u https://github.com/mantera/android.git -b ics

fatal: 'git' is not available
fatal: [Errno 2] No such file or directory

Please make sure git is installed and in your path.
new-host-3:system android$
 
Upvote 0
I'm building on os x. when i do
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils xsltproc

i get

sudo: apt-get: command not found

When I first dove into this project (back in January 2012) I tried building on OSX and realized it's to much of a pain. It can be done though. The questions I asked myself is would I rather spend my timing troubleshooting the environment, or just format and reload my Apple laptop with Ubuntu?

Like I said it can be done, however after spending 2-3 hours messing with it and not getting it to work I finally installed Ubuntu and was rocking and rolling in less than 20 minutes. Soon after I sold the laptop and just bought a used powerful workstation which is what I am using these days. OSX is great and can be used, however I recommend sticking with Ubuntu as that is what Google also recommends.

However Google also offers OSX instructions. You may want to try those and see if that gets you to the point of downloading instead of using the CM7. Once your environment is setup you can download what every repo you want accept Froyo based ones, as they require and older version of the JDK

Initializing a Build Environment | Android Open Source
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones