Gecko build failed error : Could not find autoconf 2.13., but autoconf already installed - mozilla

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:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install autoconf213 via:
brew install autoconf#2.13
Alternately, the Mozilla source has a Python script that'll help install this dependency (and others):
./mach bootstrap

Came across this same problem today when trying to do a full build of Firefox.
brew install autoconf213
no longer does it, instead:
brew install autoconf#2.13
was successful.

on linux this works
sudo apt-get install autoconf # previously called autoconf2.13

Related

How to fix (MAKEPKG) installation problem?

I want to install yay for downloading package from AUR ArchLinux,
I don't know what to do?!
Thanks for your helping.
When I use git clone and then use the makepkg -si command , it gives me this error:
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
Error text:
==> ERROR: Cannot find the fakeroot binary.
==> ERROR: Cannot find the strip binary required for object file stripping.
You're missing the libraries to compile the package. To install them:
sudo pacman -S binutils make gcc pkg-config fakeroot
or, to install basic tools for compiling code:
sudo pacman -S base-devel
Also instead of installing and compiling yay (which also requires you to install all the GO libraries) why not installing the precompiled yay-bin? It's the same package.
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si
try with that:
sudo pacman -S binutils make gcc pkg-config fakeroot
then again try to makepkg.

WARNING: 'aclocal-1.13' is missing on your system "Code::Blocks"

During my installation of Code::Blocks on my kali-linux machine
after executing ./configure command on my program directory , everything is okay until i try to make my program .
here is my error message :
WARNING: 'aclocal-1.13' is missing on your system.
You should only need it if you modified 'acinclude.m4' or 'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package: http://www.gnu.org/software/automake
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
http://www.gnu.org/software/autoconf
http://www.gnu.org/software/m4/
http://www.perl.org/
make: *** [aclocal.m4] Error 127
i tried every single solution on the Internet
nothing worked , including autoreconf commands
installing the automake tool , libtool which is already installed on my up-dated machine . also tried to install what the error message says which is m4 and perl but i found that they also are installed
if possible to provide me another way to install Code:blocks IDE , i'd be very happy , thanks .
Install automake.
sudo ln -s /usr/bin/aclocal /usr/bin/aclocal-1.13
sudo ln -s /usr/bin/automake /usr/bin/automake-1.13
Try to install automake
sudo apt-get install automake
It includes the library you're looking for.
I had same problem compiling PCRE and it did the trick.
Did you change anything such as the m4 files? That might be the problem, you changed something so that the compiler can't read it.

How to install Petite Chez Scheme on Ubuntu?

How to install Petite Chez Scheme on Ubuntu?
I run Ubuntu 15.10 and try to install pcsv8.4-a6le.tar.gz (non-threaded, 64 bit) for Linux.
After having unpacked this tar in /usr/locale, I enter the commands
sudo ./configure
sudo make install
from within the custom directory.
However, instead of a clean install, I get the following errors (which I hope someone can help me out with):
nlykkei#nlykkei-Studio-XPS-1640:/usr/local/csv8.4/custom$ sudo make install
if [ yes = no ]; then if [ ! -f ./scheme ]; then /bin/rm -f ./scheme; ln -s ../bin/a6le/scheme ./scheme; fi; fi
if [ ! -f ./petite ]; then /bin/rm -f ./petite; ln -s ./scheme ./petite; fi
/bin/rm -f ./scheme
echo "const char *S_date_stamp = \"`date +%m%d%Y%H%M%S`\";" > datestamp.c
gcc -m64 -rdynamic -o ./scheme datestamp.c ../boot/a6le/kernel.o ../boot/a6le/custom.o -lm -ldl -lncurses -lrt
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
Mf-a6le:22: recipe for target 'scheme' failed
make[2]: *** [scheme] Error 1
Makefile:47: recipe for target 'buildpetite' failed
make[1]: *** [buildpetite] Error 2
Mf-install:64: recipe for target 'install' failed
make: *** [install] Error 2
On recent versions of Ubuntu (and future versions of Debian e.g. "Buster", and other Debian based distros), you can install Chez Scheme directly from the repo(s) by:
sudo apt install chezscheme
Previously you had to install it by compiling from source. Chez Scheme has been open source, for a few years now, and can be compiled from source, if it is not directly installable from the distribution's repo(s). Just download the source code compile and install. This will install not just the "petite" runtime version but also the full compiler. You can compile and install the software with:
./configure
sudo make install
Full build and install instructions are available here.
Pre-requisites for building are:
GNU Make
GCC
Header files and libraries for ncurses
Header files and libraries for X windows
On Ubuntu, install the libncurses5-dev package to get libncurses.so. (You can discover this by visiting http://packages.debian.org/file:libncurses.so (sadly, this doesn't seem to work for http://packages.ubuntu.com/file:libncurses.so).)
You may find other linkage errors if Chez requires other libraries to have development packages installed too. Use the same technique as above.
Go directly building from their Github.
ChezScheme
And then just do
./configure
sudo make install
Prerequisites according to Building are:
GNU Make
gcc
Header files and libraries for ncurses
Header files and libraries for X windows
And yes in case On Ubuntu, install the libncurses5-dev as Chris stated. Did just that and have no errors shown in clean install.
Chez Scheme has been open sourced since this question was asked. Since Bionic (18.04LTS) the full chezscheme is available as a repository.
First do
sudo apt update
then install the package:
sudo apt install chezscheme
This provides both the petite interpreter and the full scheme compiler.
There is also a PPA for trusty and xenial here:
https://launchpad.net/~jonathonf/+archive/ubuntu/lisp?field.series_filter=
Download the RPM package instead and use alien from terminal to produce a deb file:
fakeroot alien PetiteChezScheme-8.4-1.x86_64.rpm
You may need to install fakeroot, alien for this to work:
apt-get install fakeroot alien
Then you'll have a deb file. If you are on a desktop you can just double click the file and it will open Software Center and you can click install and it will fix your dependency problems.

installing systemc on ubuntu

I am a beginner.
I'm installing systemc231 on Ubuntu and I have done this:
tar -xzvf systemc-2.3.1.tgz
cd systemc-2.3.1
sudo mkdir /usr/local/systemc231
mkdir objdir
cd objdir
export cxx="<compiler>"
export cxx=g++
export cxx=clang++
setevn cxx g++
It answered :command not found
Then I continued:
../configure
It took a moment and checked something but finally it answered :
Configure:error: in /home/Ubuntu/systemc-2.3.1/objdir':
Configure:error:c++compiler cannot create executables see 'config.log' for more details
And then I continued :
make
And it answered :
make:*** no targets specified no makefile found. Stop.
Now what can l do?
This is the link of systemc231 file and I have used its readme and install files for writing the commands :
http://accellera.org/images/downloads/standards/systemc/systemc-2.3.1.tgz
In Ubuntu, you use export to set environmental variables. In other Linux distributions, you use setenv. You only need one of those commands. do a command to figure out if g++ is installed
which g++
If it doesnt return something like
/usr/bin/g++
Then its not installed, just install it with
sudo apt-get install build-essential
then check again with which
You created an installation directory /usr/local/systemc231 you need to specify that you want to install systemc therein in the configure command. Find a tutorial about setting up systemc and eclipse configuration in ubuntu on my blog

"pkg-config script could not be found" on OSX

I am trying to install some software on my mac; however I keep receiving the same error:
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables XMEDCON_GLIB_CFLAGS
and XMEDCON_GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details
I am not quite sure how to go about adding the pkg-config to the PATH. I have seen online (see link) that I should add the following:
Link showing how to direct PATH variable
export PATH=$PATH:/opt/local/bin # Fixed typo as mentioned in comment
which is where I have placed pkg-config. I still keep getting the error though every time I try to configure the files using ./configure. Any help would be super appreciated!
For Ubuntu/Debian OS,
apt-get install -y pkg-config
For Redhat/Yum OS,
yum install -y pkgconfig
For Archlinux OS,
pacman -S pkgconf
for me, (OSX) the problem was solved doing this:
brew install pkg-config
Answer to my question (after several Google searches) revealed the following:
$ curl https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.tar.gz -o pkgconfig.tgz
$ tar -zxf pkgconfig.tgz && cd pkg-config-0.29
$ ./configure && make install
from the following link: Link showing above
Thanks to everyone for their comments, and sorry for my linux/OSX ignorance!
Doing this fixed my issues as mentioned above.
if you have this error :
configure: error: Either a previously installed pkg-config or "glib-2.0 >= 2.16" could not be found. Please set GLIB_CFLAGS and GLIB_LIBS to the correct values or pass --with-internal-glib to configure to use the bundled copy.
Instead of do this command :
$ ./configure && make install
Do that :
./configure --with-internal-glib && make install
Try
which pkg-config
if it is empty then fire
brew install pkg-config
OR : ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
MacOS users
Unfortunately, pkg-config does not come with OS X by default. Here are some notes on how to compile from source. It assumes that you have Xcode installed.
Download and extract
curl -O http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
tar xfz pkg-config-0.28.tar.gz
Configure and Install
cd pkg-config-0.28
setenv CC /usr/bin/cc (for tcsh)
export CC=/usr/bin/cc (for bash)
2a) If you have super-user powers
./configure --prefix=/usr/local CC=$CC --with-internal-glib
make
sudo make install
2b) if not
./configure --prefix=$HOME/someplace/in/my/path CC=$CC --with-internal-glib
make
make install
Source: https://opensource.ncsa.illinois.edu/confluence/display/DESDM/Installing+pkg-config+from+source+for+OSX

Resources