Wednesday, 12 April 2017

LinuxBrew's solutions to their warnings received while installing LinuxBrew do not remove those warnings, why?

I'm installing LinuxBrew on ElementaryOs Loki, which is on Ubuntu 16.04.

I followed the directions on the LinuxBrew site. The last directions are to run brew doctor then install your first package with brew install hello.

When I run brew doctor I got the following warning:

reed:~/Projects/Tutorials/React$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: /usr/bin occurs before /home/reed/.linuxbrew/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
    brew

Consider setting your PATH so that /home/reed/.linuxbrew/bin
occurs before /usr/bin. Here is a one-liner:
    echo 'export PATH="/home/reed/.linuxbrew/bin:$PATH"' >> ~/.bash_profile

Warning: Homebrew's bin was not found in your PATH.
Consider setting the PATH for example like so
    echo 'export PATH="/home/reed/.linuxbrew/bin:$PATH"' >> ~/.bash_profile
reed:~/Projects/Tutorials/React$ 

Seems like I didn't add linuxbrew in my path in the correct order, no problem they gave me a way to fix the problem right in the warning, this should be a snap to fix, so I run the code given:

echo 'export PATH="/home/reed/.linuxbrew/bin:$PATH"' >> ~/.bash_profile

It adds it to my .bash_profile that now looks like this:

[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

export PATH="/home/reed/.linuxbrew/bin:$PATH"

I restart my terminal and run brew doctor again. I got the same message, their built-in solution seems to have no effect on removing the warning. Not a problem yet, the first message after running brew doctor basically tells me I can ignore these warnings anyway, they may not be for me, but for the "Homebrew maintainers," so I'll give brew install hello a try. Here is the error message I get from that:

reed:~/Projects/Tutorials/React$ brew install hello
Error: undefined method `rebuild' for #<BottleSpecification:0x000000011c7658>
Please report this bug:
    https://github.com/Linuxbrew/linuxbrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting
/home/reed/.linuxbrew/Library/Taps/homebrew/homebrew-core/Formula/camlistore.rb:11:in `block in <class:Camlistore>'
/home/reed/.linuxbrew/Library/Homebrew/software_spec.rb:91:in `instance_eval'
/home/reed/.linuxbrew/Library/Homebrew/software_spec.rb:91:in `bottle'
/home/reed/.linuxbrew/Library/Homebrew/formula.rb:1729:in `bottle'
/home/reed/.linuxbrew/Library/Taps/homebrew/homebrew-core/Formula/camlistore.rb:9:in `<class:Camlistore>'
/home/reed/.linuxbrew/Library/Taps/homebrew/homebrew-core/Formula/camlistore.rb:1:in `load_formula'
/home/reed/.linuxbrew/Library/Homebrew/formulary.rb:21:in `module_eval'
/home/reed/.linuxbrew/Library/Homebrew/formulary.rb:21:in `load_formula'
/home/reed/.linuxbrew/Library/Homebrew/formulary.rb:34:in `load_formula_from_path'
/home/reed/.linuxbrew/Library/Homebrew/formulary.rb:83:in `load_file'
/home/reed/.linuxbrew/Library/Homebrew/formulary.rb:74:in `klass'
/home/reed/.linuxbrew/Library/Homebrew/formulary.rb:70:in `get_formula'
/home/reed/.linuxbrew/Library/Homebrew/formulary.rb:207:in `factory'
/home/reed/.linuxbrew/Library/Homebrew/formula_installer.rb:246:in `block in check_conflicts'
/home/reed/.linuxbrew/Library/Homebrew/formula_installer.rb:244:in `select'
/home/reed/.linuxbrew/Library/Homebrew/formula_installer.rb:244:in `check_conflicts'
/home/reed/.linuxbrew/Library/Homebrew/formula_installer.rb:180:in `install'
/home/reed/.linuxbrew/Library/Homebrew/cmd/install.rb:232:in `install_formula'
/home/reed/.linuxbrew/Library/Homebrew/cmd/install.rb:93:in `block in install'
/home/reed/.linuxbrew/Library/Homebrew/cmd/install.rb:93:in `each'
/home/reed/.linuxbrew/Library/Homebrew/cmd/install.rb:93:in `install'
/home/reed/.linuxbrew/Library/brew.rb:84:in `<main>'

The "please report this bug" link takes you to a legacy github page for linuxbrew, and if you click on the link that is on that page it brings you to a 404 page.

I've tried a few things I've found through Google and Staveoverflow searches, here are two examples: Example 1:

export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"

Example 2: Link to Second Example

None of this has improved my situation. What did I do wrong? Does anyone know what I can do to properly get Linuxbrew installed?



via Lenocam

No comments:

Post a Comment