Closed na6an closed 6 years ago
Check the files ~/.bash_profile
and ~/.bashrc
for any reference to Linuxbrew, and remove those lines. Does the directory ~/.linuxbrew
exist?
Please report the output of env | grep -i linuxbrew
Thanks for the help. There is no reference to Linuxbrew in either of ~/.bash_profile and ~/.bashrc, no directory ~/.linuxbrew exist. and nothing returns as output of env | grep -i linuxbrew. And yet, I'm still getting make: /home/nathan/.linuxbrew/Cellar/cmake/3.12.4/bin/cmake: Command not found
error... I've never seen anything like this before.
FYI, I'm having the same symptom for 2 different fresh new installations of Ubuntu 16.04.
What command are you running that produces this error message?
It's a simple catkin_make
for ROS.
If it's your own project stored in version control (like git), then the most likely explanation is that in one of your files in version control (possibly a Makefile), you have the string /home/nathan/.linuxbrew/Cellar/cmake/3.12.4/bin/cmake
somewhere in that file. If your files are stored in GitHub, you can use GitHub's web interface to search your project for that string.
Oh, nvm... my project build must be corrupted somehow as catkin_make
works without error in ~/catkin_ws$
Sorry for the false alarm.
Good luck!
Please note that we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew
command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Linuxbrew/homebrew-core: https://github.com/Linuxbrew/homebrew-core/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?Unable to check other checklists because brew is not installed but still causing the issue. See following descriptions for detail.
What you were trying to do (and why)
I installed brew on my ubuntu (64-bit, 16.04 LTS), following some answer on stackoverflow - simply tried to install a package with brew (qt if I remember correctly).
What happened (include command output)
Linuxbrew somehow overrode the paths of every build system - python, cmake, etc. I spent some time to solve this problem searching on the internet but eventually gave up (already tried path edit on bash profiles, exporting path, etc), decided to run fresh, so I installed a fresh new Ubuntu on one of my extra HDD after formatting the drive - booting directly on this new disk. (I didn't wipe out the original ubuntu because I couldn't back up and I don't really wipe out unless it's the last resort)
I never installed brew on this new system, but cmake tries to attempt to build using a brew path when I run builds like catkin_build for ROS. Following is the error message I'm getting when I catkin_build.
Command output
What you expected to happen
Usually, fresh OS installation solves every software related problem but not this time. I don't know how it's possible, but the legacy brew setting on the original, primary disk is overriding the build path on the new Ubuntu installation on a different disk. I want to find a solution to correct the path linuxbrew is overriding.
Step-by-step reproduction instructions (by running
brew
commands)I cannot really reproduce the issue since brew is not installed anymore, but the brew legacy setting is still causing the problem. I really need to fix this ASAP. Please help!