How do I install homebrew on mac? [closed] - ruby

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I tried the command
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
==> The following directories will be made group writable:
/usr/local/include
/usr/local/lib
/usr/local/lib/pkgconfig
==> The following directories will have their group set to admin:
/usr/local/include
/usr/local/lib
/usr/local/lib/pkgconfig
but I have no idea what that means...

Do you have XCode and Command Line Tools installed? If so, the above script should have done it.
Go to the terminal and type
brew doctor
This will tell you the status of your install.

Related

Unable to fix homebrew install on mac [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I've been trying on and off for the last couple of months to install homebrew on my mac and it is not working. I've tried deleting directories, installing and reinstalling homebrew and then not being able to install certain libraries like mongoosedb, I even reset my computer and the problem is still there.
This is the error message i recieve now when trying to reinstall homebrew.
==> Tapping homebrew/core
remote: Enumerating objects: 973663, done.
remote: Counting objects: 100% (340/340), done.
remote: Compressing objects: 100% (189/189), done.
error: 4292 bytes of body are still expected.67 MiB | 6.00 MiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed
Failed during: git fetch --force origin refs/heads/master:refs/remotes/origin/master
Any suggestions as too how I could fix this?
Thanks.
As stupid as it sounds, the problem was I had Child Block enabled on my virgin wifi.
I'd suggest a few ways, since home brew depends on cellar
Try doing
rm -f /usr/local/Cellar
rm -f /usr/local/.git
This will reset your git, but the moment you input a clone command, you can proceed after providing git credentials.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
If your have ruby setup
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Metasploit crashed after upgrade [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have recently upgraded metasploit framework and after doing it, when I try to launch it I get the next error:
msfconsole
Unable to find a spec satisfying metasploit-framework (>= 0) in the set. Perhaps the lockfile is corrupted?
Run bundle install to install missing gems.
I have unistalled it and reinstall but the problem continues. Any suggestion?
I had the same problem, the following fixed it:
sudo gem install bundler -v 2.2.4
sudo msfdb reinit
sudo msfconsole
Just be aware that the bundler version may have updated since this was posted and therefore may need to be changed. Check what version you're currently running before making these changes.
https://github.com/rapid7/metasploit-framework/issues/11597
What finally worked for me was updating my bundler then running bundle install :
/usr/share/metasploit-framework$ sudo gem install bundler:2.2.5
/usr/share/metasploit-framework$ sudo bundle install
happend to me too. but my solution was easier. i didnt touch kali for a while, so i did all the upgrades and therfore i started entering "sudo su". so when i then start msfconsole i get exactly the same error message. enter "exit" to leave root and try again... worked for me.
I got the same issue after doing sudo apt upgrade.
To fix that, I had to do sudo apt update && sudo apt full-upgrade -y.
I got this solution from here https://www.reddit.com/r/Kalilinux/comments/l4zi6i/hey_everyone/

How to run CMake in Mac? [duplicate]

This question already has answers here:
Cannot install CMake for Mac OS X 10.8 [closed]
(1 answer)
Installing cmake with home-brew
(3 answers)
Closed 3 years ago.
I'm following this video: https://www.youtube.com/watch?v=7vJJMU2gMn4
but when I tried to run cmake using the command "cmake ." on Mac (which is around 2:02 in video), the results on my Mac show that the command cmake is not found. May I ask some help to run cmake on Mac, please?
If you have homebrew, just type:
brew install cmake
Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
And then cmake
brew install cmake

How to uninstall RVM [duplicate]

This question already has answers here:
How to remove RVM (Ruby Version Manager) from my system
(13 answers)
Closed 8 years ago.
I installed RVM using:
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
and now want to remove it from my system. How can I delete the installation or undo this action?
Just a guess from reading: https://github.com/wayneeseguin/rvm/
sudo rvm uninstall
For more info this might help:
rvm help uninstall

zsh: command not found: apt-get [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 11 months ago.
Improve this question
To solve the following error Cucumber Rails 3.1 uninitialized constant ActionController::Dispatcher (NameError), I am following this post -> http://www.ruby-on-rails-outsourcing.com/articles/2011/01/07/getting-started-with-rvm-and-rails/ .
On running this command on my terminal,
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev
I get this error: zsh: command not found: apt-get. Few posts suggested using Macports but I am not sure how to use that.
apt-get is a Linux package manager. On OS X you need to use something Mac specific like Macports or Homebrew. I recommend trying out Homebrew.
Install android-sdk using brew:
brew install --cask android-sdk

Resources