简体   繁体   中英

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. But sometimes some packages are not available via Homebrew. I wonder if I can use pkgsrc to build the software from source. The instruction is as the following (in section titled "Building From Source"): 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; that way, brew link can create symlinks for it. There's more information available in the Homebrew docs.

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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