How can I use homebrew
(linuxbrew
specifically) with Blink?
#1926
-
I've been combing through the docs and internet searches to see how y'all handle installing binaries on Blink Build workspaces. I'm trying to install things using While I can choose a different installation directory Side note: do you really have to create the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
In this case, I think you would be okay. Just don't try to install someplace you don't have rights to, and you should be okay.
Tony Shadwick
|
Beta Was this translation helpful? Give feedback.
-
Homebrew for Linux is designed to install all its subsystem inside /home/linuxbrew/[...]. I can imagine this is to stay out of the way of the standard Linux folders for any other distributions, as they are compiling a whole subsystem and only using glibc from your distro. Unfortunately this is incompatible with Build as a persistent package manager as Build will only save what you have in your $HOME folder. You could try to specify a different prefix, but "linuxbrew" is equivalent to recompiling another Linux distribution, and that will be heavy and inefficient. We designed Build to offer most of the dev tools as part of our base image, Hacker Tools. Binaries and other related sub tools are usually then installed in your home folder. Ie: $HOME/bin is the standard way to install self-compiled binaries for a local user. This has now also become quite common on self-distributed binaries on GitHub, etc... https://unix.stackexchange.com/a/36874 If you venture into compiling your own binaries for some tools, this would also be an easy way to go. The other way we designed into Build for more complex binaries or infrastructure is to use an already made container. I have used this myself to for example, run databases like Redis, or run a Firefox GUI in the remote machine and do some debugging there. As we are still in Beta, we are learning a lot about different use cases and how we want to approach them in the future. We developed a way to "save a container" by the user once you have installed packages in the machine so you can start from a blank container and save all along as you have a container you are happy with, etc... We are researching if we want to push it or what to do with it. So please, let us know what tools you are missing out and most importantly, what flows you want to enable with it. |
Beta Was this translation helpful? Give feedback.
Homebrew for Linux is designed to install all its subsystem inside /home/linuxbrew/[...]. I can imagine this is to stay out of the way of the standard Linux folders for any other distributions, as they are compiling a whole subsystem and only using glibc from your distro. Unfortunately this is incompatible with Build as a persistent package manager as Build will only save what you have in your $HOME folder. You could try to specify a different prefix, but "linuxbrew" is equivalent to recompiling another Linux distribution, and that will be heavy and inefficient.
We designed Build to offer most of the dev tools as part of our base image, Hacker Tools. Binaries and other related sub tools a…