即使我在OSX Yosimite中安装了libtool,也无法找到libtoolize

时间:2015-07-21 09:51:37

标签: android macos ant linphone libtool-xcode

我想使用Make install命令,我已经安装了所有要求,如yasm,nasm,curl,ant,rsync和autotools:autoconf,automake,aclocal,pkgconfig,libtool。 (确切地说,我想从这里编译Linphone Android NDK:https://github.com/BelledonneCommunications/linphone-android。我已经按照那里的所有步骤进行了编辑)

我尝试使用此命令安装libtoolize:

brew install libtoolize

但终端总是显示:

  

错误:没有可用的libtoolize公式

如果我尝试进行安装,终端将显示:

  

无法找到libtoolize。请安装libtool。

有人可以帮忙吗?

2 个答案:

答案 0 :(得分:9)

您应该通过

安装包<?xml version="1.0"?> <data> <task id="1"> <parent>0</parent> </task> <task id="2"> <parent>1</parent> </task> <task id="3"> <parent>1</parent> </task> <task id="4"> <parent>0</parent> </task> <task id="5"> <parent>4</parent> </task> <task id="6"> <parent>4</parent> </task> </data>
libtool

此软件包包含工具brew install libtool ,您可以通过

进行检查
libtoolize

注意警告

brew list libtool

您可以再次尝试安装所需的工具。如果附带In order to prevent conflicts with Apple's own libtool we have prepended a "g" so, you have instead: glibtool and glibtoolize. 脚本,请重新执行该脚本以使其找到./configure。如果这不起作用,您可能需要将环境变量glibtoolize设置为已安装的Homebrew版本:

LIBTOOL

作为最后的手段,您可能需要设置从export LIBTOOL=`which glibtool` export LIBTOOLIZE=`which glibtoolize` glibtoolize的符号链接。你可以通过

这样做
libtoolize

然后,通过

添加包含路径链接的目录
ln -s `which glibtoolize` libtoolize

然后,应找到export PATH=$(pwd):$PATH

答案 1 :(得分:0)

也许你应该参考这个Linphone for android is not working/missing libraries。 Mac的Autotools安装是建议的一部分步骤。

 # 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 
相关问题