gpt4 book ai didi

macos - 已安装 libtool 但未找到 libtoolize

转载 作者:行者123 更新时间:2023-12-03 08:20:31 27 4
gpt4 key购买 nike

我试图从我的 mac 上的源代码构建 libxml2。

所以我使用 mac 端口安装了 autoconf libtool 和 automake

autoconf 和 automake 似乎按预期工作正常。

我先尝试运行 autogen.sh。

libtoolize --version 不幸给出

-bash: libtoolize: command not found

我尝试运行(再次)
sudo port install libtool

---> Cleaning libtool
---> Scanning binaries for linking errors: 100.0%
---> No broken files found.

我试试
locate libtool

它似乎安装得很好
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man/man1/libtool.1
/Applications/Xcode.app/Contents/Developer/usr/bin/libtool
/Applications/Xcode.app/Contents/Developer/usr/share/man/man1/libtool.1
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/cross/mipsel-linux-binutils/files/110-uclibc-libtool-conf.patch
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/libtool
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/libtool/Portfile
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/libtool/files
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/libtool/files/ltmain.m4sh-allow-clang-stdlib.diff
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/libtool-devel
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/libtool-devel/Portfile
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/openslp/files/libtool-tags.patch
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/t1lib/files/patch-libtool-tag.diff
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/print/pdflib/files/patch-libtool.diff
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/security/steghide/files/libtool-tag.diff
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/www/apache2/files/libtool-tag.diff
/usr/bin/libtool
/usr/lib/php/build/libtool.m4
/usr/share/apr-1/build-1/libtool
/usr/share/man/man1/libtool.1

我如何让 libtoolize 工作?

最佳答案

您通常需要使用 glibtoolglibtoolize , 自 libtool已经作为创建 Mach-O 动态库的二进制工具存在于 OS X 上。所以,这就是 MacPorts 安装它的方式,使用程序名称转换,尽管端口本身仍然命名为“libtool”。

一些 autogen.sh脚本(或它们的等价物)将兑现 LIBTOOL/LIBTOOLIZE环境变量。我自己有一条线 autogen.sh脚本:

case `uname` in Darwin*) glibtoolize --copy ;;
*) libtoolize --copy ;; esac

您可能想要也可能不想要 --copy旗帜。

注意:如果您使用 MacPorts 安装了 autotools,则正确书写 configure.acMakefile.am文件应该只需要 autoreconf -fvi .它应该叫 glibtoolize等,正如预期的那样。否则,某些软件包将分发 autogen.sh或类似的脚本。

关于macos - 已安装 libtool 但未找到 libtoolize,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15448582/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com