在 Mac Ports 中添加变体
我想知道如果您已经安装了端口,如何将变体附加到端口。例如,我安装了“vim”端口,并想返回并添加 python25 变体。我需要删除vim并重新安装吗?这只是一个例子,我真的很想知道为任何端口执行此操作的过程。
感谢您的帮助, 格雷格
I was wondering how you can append a variant to a port if you have already installed the port. For example I installed the 'vim' port and would like to go back and add the python25 variant. Do I need to delete vim and reinstall it? This is just an example, I would really like to know the process to do this for any port.
Thanks for any help,
Greg
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
任何时候只能激活
MacPorts
端口的一种变体。但是,在 MacPorts 术语中,可以同时安装端口的多个变体和/或版本。其中,至多有一个是活跃
,任何其他都是非活跃
。如果您偶尔需要在变体之间切换,您可以根据需要激活特定变体。这也将自动停用任何冲突的活动端口。例如,这是一个假设的vim
示例(未经过充分测试!):Only one variant of a
MacPorts
port can be active at any one time. However, inMacPorts
terminology, multiple variants and/or versions of a port can beinstalled
simultaneously. Of those, at most one isactive
, any others areinactive
. If you need to occasionally alternate between variants, you can activate a specific variant as needed. That will also automatically deactivate any conflicting active port. For example, here's a hypotheticalvim
example (not fully tested!):我相信 macports 现在通过
--enforce-variants
选项原生支持这一点。所以在上面的例子中,命令是I believe macports supports this natively now with the
--enforce-variants
option. So in the above case, the command would be您确实需要重新安装。之后没有办法添加变体——这样做甚至没有意义。变体会影响构建过程中的设置。
You do need to reinstall. There's no way to add a variant on afterwards – nor does it even make sense to do so. Variants affect settings during the build process.