gpt4 book ai didi

macports - 阻止 MacPorts 安装预建包?

转载 作者:行者123 更新时间:2023-12-04 01:32:40 27 4
gpt4 key购买 nike

我正在尝试使用 MacPorts 安装 libiconv。当我的 Mac 运行 10.6 时,我需要构建它以在 OS X 10.5 中运行。所以我把这个添加到 macports.conf :

macosx_deployment_target 10.5

据说这会强制 MacPorts 使用 10.5 SDK 构建端口。但是,安装的库仍然包含 LC_DYLD_INFO仅在 10.6 中可用的 load 命令。

我用 -v 选项重新安装了端口,发现它下载并安装了一个预构建的包而没有编译。该软件包显然是在 10.6 机器上构建的。

问题是:如何强制 MacPorts 使用我的设置在我的机器上构建端口?谢谢。

编辑:我正在使用以下命令构建 x86/x64 通用二进制文件:
sudo port -v install libiconv +universal

最佳答案

从 MacPorts 2.1.0 开始,有一个名为 buildfromsource 的新设置。在配置文件 /opt/local/etc/macports/macports.conf控制使用预建文件:

# When to build ports from source. Default is 'ifneeded', which downloads an
# archive if available or builds from source otherwise. 'always' has the same
# effect as -s on the command line, and 'never' is likewise the same as -b.
#buildfromsource ifneeded

关于macports - 阻止 MacPorts 安装预建包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10319314/

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