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

荒凉一梦 提交于 2019-12-06 05:18:33

问题


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 ?


回答1:


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.




回答2:


Maybe you should refer to this Linphone for android is not working/missing libraries. Autotools installation for mac as suggested a part of the step.

 # Assume we want to install them below $HOME/local.
 myprefix=$HOME/local

 # Ensure the tools are accessible from PATH.
 # It is advisable to set this also in ~/.profile, for development.
 PATH=$myprefix/bin:$PATH
 export PATH

 # Do the following in a scratch directory.
 wget http://ftp.gnu.org/gnu/m4/m4-1.4.14.tar.gz
 wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.64.tar.gz
 wget http://ftp.gnu.org/gnu/automake/automake-1.11.1.tar.gz
 wget http://ftp.gnu.org/gnu/libtool/libtool-2.4.tar.gz
 gzip -dc m4-1.4.14.tar.gz | tar xvf -
 gzip -dc autoconf-2.64.tar.gz | tar xvf -
 gzip -dc automake-1.11.1.tar.gz | tar xvf -
 gzip -dc libtool-2.4.tar.gz | tar xvf -
 cd m4-1.4.14
 ./configure -C --prefix=$myprefix && make && make install
 cd ../autoconf-2.64
 ./configure -C --prefix=$myprefix && make && make install
 cd ../automake-1.11.1
 ./configure -C --prefix=$myprefix && make && make install
 cd ../libtool-2.4
 ./configure -C --prefix=$myprefix && make && make install 


来源:https://stackoverflow.com/questions/31535735/couldnt-find-libtoolize-even-though-i-have-installed-libtool-in-osx-yosimite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!