Couldn't find libtoolize, even though I have installed libtool in OSX Yosimite

Redturbo picture Redturbo · Jul 21, 2015 · Viewed 8.1k times · Source

I want to use Make install command and I have installed all requirements like yasm, nasm, curl, ant, rsync and the autotools: autoconf, automake, aclocal, pkgconfig, libtool. (Exactly, I want to compile Linphone Android NDK from Here : https://github.com/BelledonneCommunications/linphone-android. I have follow all steps from there)

I have try to install libtoolize using this command:

brew install libtoolize

But terminal always show :

Error: No available formula for libtoolize

If i try to make install, terminal will show :

Could not find libtoolize. Please install libtool.

Anybody can help ?

Answer

Niels Lohmann picture Niels Lohmann · Jul 21, 2015

You should install the package libtool via

brew install libtool

This package contains the tool libtoolize as you can check via

brew list libtool

Note the warning

In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.

You may try again installing the tools you want to. If the come with a ./configure script, re-execute it to let it find glibtoolize. If this does not work, you may need to set the environment variable LIBTOOL to the version Homebrew installed:

export LIBTOOL=`which glibtool`
export LIBTOOLIZE=`which glibtoolize`

As a last resort, you may need to set a symbolic link from glibtoolize to libtoolize. You can do so via

ln -s `which glibtoolize` libtoolize

Then, add the directory with the link to the path by

export PATH=$(pwd):$PATH

Then, libtoolize should be found.