Prevent MacPorts from installing pre-built package?

烂漫一生 提交于 2019-12-04 01:39:14

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

Duh! I've looked up and down for the better part of the day. And right after I posted the question, I find it out myself.

Add -s to port command and it will pull and compile the source locally:

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