简体   繁体   English

使用Homebrew作为主要软件包管理系统时,可以使用pkgsrc从源代码构建某些软件吗?

[英]Can I build some software from source using pkgsrc while using Homebrew as the primary package management system?

I use Homebrew to install most packages. 我使用Homebrew安装大多数软件包。 But sometimes some packages are not available via Homebrew. 但是有时某些软件包无法通过Homebrew获得。 I wonder if I can use pkgsrc to build the software from source. 我想知道是否可以使用pkgsrc从源代码构建软件。 The instruction is as the following (in section titled "Building From Source"): http://www.perkin.org.uk/pages/pkgsrc-binary-packages-for-osx.html . 该说明如下(在“从源代码构建”部分中): http : //www.perkin.org.uk/pages/pkgsrc-binary-packages-for-osx.html

Is this approach OK? 这种方法行吗? What are the potential problems? 潜在的问题是什么?

Yes, that's fine. 是的,没关系。 You should probably compile and install your own packages to the Cellar, though; 不过,您可能应该编译并安装自己的软件包到Cellar; that way, brew link can create symlinks for it. 这样, brew link可以为其创建符号链接。 There's more information available in the Homebrew docs. Homebrew文档中提供了更多信息。

As was already answered, it's totally OK. 正如已经回答的那样,完全可以。 As for the pitfalls, if you add path to the binaries installed via pkgsrc, chances are that whenever you build something by hands gnu autotools will pick up the libraries from pkgsrc (for example, because pkg-config is exposed, but there are other ways), and not from the base system. 至于陷阱,如果您将路径添加到通过pkgsrc安装的二进制文件中,则可能是每当您手动构建某些东西时,gnu autotools就会从pkgsrc中获取库文件(例如,因为公开了pkg-config,但是还有其他方法) ),而不是来自基本系统。 Sometimes it's what you want, other times it's a problem. 有时这是您想要的,而其他时候则是一个问题。 It's nasty especially because you don't know something is wrong until you delete your pkgsrc. 这很讨厌,尤其是因为您直到删除pkgsrc才知道出了点问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM