阻止MacPorts安装预建软件包? [英] Prevent MacPorts from installing pre-built package?

查看:68
本文介绍了阻止MacPorts安装预建软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用MacPorts安装libiconv.我需要将其构建为在Mac运行10.6时在OS X 10.5中运行.所以我把这个加到了macports.conf:

I am trying to instal libiconv with MacPorts. I need to build it to run in OS X 10.5 while my Mac is running 10.6. So I added this like to macports.conf:

macosx_deployment_target 10.5

据说这迫使MacPorts使用10.5 SDK构建端口.但是,已安装的库仍包含LC_DYLD_INFO load命令,该命令仅在10.6中可用.

That supposedly force MacPorts to build the port with 10.5 SDK. However, the installed libraries still contain LC_DYLD_INFO load command which is available only in 10.6.

我用-v选项重新安装了端口,发现它无需编译即可下载并安装预构建的软件包.该软件包显然是在10.6机器上构建的.

I reinstalled the port with -v option and find that it downloads and installs a pre-built package without compiling. The package obviously was built on a 10.6 machines.

问题是:如何强制MacPorts使用设置在计算机上构建端口?谢谢.

The question is: how can I force MacPorts to built the port on my machine with my settings? Thanks.

我正在使用此命令构建x86/x64通用二进制文件:

I am building x86/x64 universal binaries with this command:

sudo port -v install libiconv +universal

推荐答案

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

As of MacPorts 2.1.0, there is a new setting called buildfromsource in the configuration file /opt/local/etc/macports/macports.conf that controls the use a pre-built archives:

# 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安装预建软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆