Git Product home page Git Product logo

Comments (13)

DoomHammer avatar DoomHammer commented on May 12, 2024

There was a problem with either lacking file installation or file in a wrong location. What does which file say on your system?

from brew.

DoomHammer avatar DoomHammer commented on May 12, 2024

Come to think of it, I see it has been partly fixed by bd49ee2 . If you haven't been running brew update for a while this may be a good time.

from brew.

axk4545 avatar axk4545 commented on May 12, 2024

DoomHammer, I cannot get brew to install so I can run brew update. I am following this guide: https://github.com/Linuxbrew/linuxbrew/wiki/Chromebook-Install-Instructions
which file gives me no file in $PATH

from brew.

rwhogg avatar rwhogg commented on May 12, 2024

@abkahrs if you cannot run brew update, you can do git pull from inside your Homebrew directory to update it.

from brew.

sjackman avatar sjackman commented on May 12, 2024

@abkahrs Please install file.

sudo apt-get install file
sudo yum install file

from brew.

axk4545 avatar axk4545 commented on May 12, 2024

@sjackman I am running this on chromeOS on a chromebook. I have no package manager.

from brew.

sjackman avatar sjackman commented on May 12, 2024

Ah, yes. Sorry. Piotr (@DoomHammer) is the Chrome expert here.
See brewstrap: https://github.com/DoomHammer/brewstrap/

from brew.

DoomHammer avatar DoomHammer commented on May 12, 2024

Am I? :)

I suggest trying DoomHammer/brewstrap#7 for bootstrapping Linuxbrew on Chromebook. Some installer script might be in order, come to think of it.

from brew.

minektur avatar minektur commented on May 12, 2024

pouring hanging means you need the 'file' command which chromeos does not have by default. If you can get brew working enough to install stuff from source, then you can brew install homebrew-dupes/file-formula

When I've done this in the past, I had to avoid bottles (e.g. with brew install --build-from-source till I got the file-formula package built, which then makes bottles work.

from brew.

sjackman avatar sjackman commented on May 12, 2024

-s is a handy shortcut for --build-from-source

from brew.

axk4545 avatar axk4545 commented on May 12, 2024

@minektur could you expand on what you mean? I am not sure what steps I need or how far I need to get brew working since I haven't really worked with brew before.

from brew.

minektur avatar minektur commented on May 12, 2024

@abkahrs there is a current dependency for installing bottles - the 'file' command must exist. You'll find that the 'file' command doesn't exist on chromeos. They have really stripped things down and dont include it. The dependency is not obvious, and 'brew install <some package you'd get from bottle>" it will just hang forever.

Because linuxbrew is a fork of homebrew which is built to install stuff on Mac OSX, such dependencies are subtle some times. And also because of this there isn't a normal brew recipie for the file command in the normal brew repository because it would be installing a file that is a duplicate of an existing utility/command that already exists on macosx. So there is a seperate set of recipies that will install "dupes".

On linux, and in this case for you on chromeos, it isn't a dupe at all, and once you install it somehow, then that brokenness with bottle-installs will go away. So you have to build from source

You should just do this:

brew install -s homebrew/dupes/file-formula

and then you shouldn't have that bug any more. (though linuxbrew is still a work-in-progress on chromeos...)

from brew.

axk4545 avatar axk4545 commented on May 12, 2024

Thank you all. I believe I have resolved the issue with the file install from source though that sgould be added to the chrome os install instructions

from brew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.