I am trying to build Gecko Code, Which I have clone from Github : git clone https://github.com/mozilla/gecko-dev.git
and I am getting autoconf 2.13 not found error, Which already installed in my Mac Machine:
Tom-Swayer:gecko-dev vmishra$ autoconf --version
Autoconf version 2.13
Tom-Swayer:gecko-dev vmishra$ sudo make build
Password:
./mach build
0:00.33 /usr/bin/make -f client.mk -s MOZ_PARALLEL_BUILD=9 -s
0:01.86 Adding client.mk options from /Users/vmishra/Desktop/gecko-dev/.mozconfig:
0:01.86 AUTOCLOBBER=1
0:01.86 export MOZ_AUTOMATION_BUILD_SYMBOLS=1
0:01.86 export MOZ_AUTOMATION_L10N_CHECK=1
0:01.86 export MOZ_AUTOMATION_PACKAGE=1
0:01.86 export MOZ_AUTOMATION_PACKAGE_TESTS=1
0:01.86 export MOZ_AUTOMATION_INSTALLER=0
0:01.86 export MOZ_AUTOMATION_UPDATE_PACKAGING=0
0:01.86 export MOZ_AUTOMATION_UPLOAD=1
0:01.86 export MOZ_AUTOMATION_UPLOAD_SYMBOLS=0
0:01.86 export MOZ_AUTOMATION_SDK=0
0:01.86 MOZ_MAKE_FLAGS=-j9 -s
0:01.86 MOZ_OBJDIR=/Users/vmishra/Desktop/gecko-dev/VM-Gecko-build
0:01.86 OBJDIR=/Users/vmishra/Desktop/gecko-dev/VM-Gecko-build
0:01.86 FOUND_MOZCONFIG=/Users/vmishra/Desktop/gecko-dev/.mozconfig
0:01.88 /Users/vmishra/Desktop/gecko-dev/client.mk:299: *** Could not find autoconf 2.13. Stop.
0:01.88 make[1]: *** [build] Error 2
0:01.93 0 compiler warnings present.
make: *** [build] Error 2
Tom-Swayer:gecko-dev vmishra$
Please help me, and tell me the solution.
Mozilla's build system looks for the autoconf 2.13 executable at "autoconf213", which is why it can't find your installation of autoconf 2.13 at "autoconf".
You could fix the problem by symlinking one to the other, but I recommend following Mozilla's recommendations in https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Mac_OS_X_Prerequisites to install autoconf and other dependencies, since that'll minimize your chances of running into other problems like this one.
Specifically, to install autoconf 2.13, that document recommends first installing Homebrew (if you don't already have it) per https://brew.sh/, which is currently:
Then install autoconf213 via:
Alternately, the Mozilla source has a Python script that'll help install this dependency (and others):