Install homebrew mac os x for xampp - xampp

A month ago I installed hombrew and pystuff to use python on my mac. Since then I've been doing more database oriented programming ie mysql and php. Long story short; I was trying to run xampp command stuff from the terminal but it wasn't working so I deduced that my installation paths for xampp (mamp) wasn't valid. I have since uninstalled xampp and tried installing with home-brew via this link: http://www.threeeyedbird.com/blog/2013/06/11/setting-up-a-local-dev-environment-with-homebrew/
The first line of installation;
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
yielded a result that told me the link was invalid so I;
brew ls
to make sure home-brew was already installed, and it was...
I have since uninstalled home-brew in this link
https://apple.stackexchange.com/questions/82807/how-to-cleanly-remove-homebrew
Now when I type:
brew ls
It says command not found which is good because i wanted to uninstall everything completely...
I want to install home-brew in the proprietary paths that would make for a great local developing environment i.e.; all the command line short cuts work, all the paths are correct etc
The only problem now when I enter the first line of the home-brew install for a fresh start (which installs home-brew): ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
The terminal tells me the link is invalid. and i get a bad request 400 error
How can I download home-brew perfectly all things considered?

This was the link that didn't work
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
I just installed it using this link from the home-brew web page
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Related

how to uninstall homebrew using an arm based Mac?

I installed homebrew today. And I did something wrong so that my homebrew can't work now. Since I use an arm based mac, I am hard to find solution to uninstall my homebrew which installed in /opt/homebrew/.
To uninstall Homebrew, run the uninstall script from the Homebrew/install repository.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
Download the uninstall script and run /bin/bash uninstall.sh --help to view more uninstall options.
Make sure your homebrew path is correct and then run the script:
echo $HOMEBREW_PREFIX #=> /opt/homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
See: https://github.com/homebrew/install#uninstall-homebrew

Installing Homebrew on OS X Sierra

After failing to install by running /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" I did some research on potential causes but no one seems to have reported my particular problem. Namely, when I run this in command line, literally nothing happens, no errors...my terminal simply hangs.
I have verified that I have XCode (version 8.1.0). What am I missing?

After uninstall brew cannot install it back

I could not update brew update. There was fatal error all the time. I di dnot use brew for years so I thought I'll uninstall it and then install back. I run
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
that went smoothly.
But after that when I try
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It tells that
-bash: /usr/local/bin/ruby: No such file or directory
When I read how to install ruby it suggests brew install ruby but I have just uninstalled it.
I've searched over google and tried a lot of different commands but nothing works.
It's often the case that bash remembers where executables were in your path and if those are later removed it gets very confused. There's ways of rehashing this to update that, but creating a new shell usually fixes the issue just the same.
Specifying the full path to the system Ruby will also work.

Homebrew not installed to /usr/local

I'm trying to get a new computer set up and installed Homebrew with ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" following the instructions on their home page. The problem is, when I ran brew doctor it gave me this error: Your Homebrew is not installed to /usr/local You can install Homebrew anywhere you want, but some brews may only build correctly if you install in /usr/local. Sorry!
When I did the install from terminal I was in the Home directory.
From what I've read Homebrew is supposed to install to /usr/local by default so I'm not sure how I screwed this up...
Any ideas how to get Homebrew installed to the correct location?
It seems that when I installed RVM it also installs Homebrew. More info here: https://github.com/mxcl/homebrew/issues/19454#issuecomment-17086674

Error Installing Homebrew - Brew Command Not Found [duplicate]

This question already has answers here:
Installing Homebrew on macOS
(24 answers)
Closed 2 years ago.
I've spent the bulk of my Friday trying to get the latest version of Ruby installed on my new MacBook Air (w/ Mountain Lion installed).
I have all the latest versions of XCode and command line tools. But I can't seem to get Homebrew to work! Here's a screenshot of where I keep getting stuck (I'm a new user, so can't embed this image).
As you can see I used the following to instal Homebrew:
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)"
While there was a "warning" it seemed as though the installation worked:
Warning: /usr/local/bin is not in your PATH.
==> Installation successful!
Despite that, when I try to run "brew doctor" I received the following:
-bash: brew: command not found
Again, I'm trying to install homebrew, so i can instal the latest version of ruby -- I'm looking to learn to code in ruby, but kind of screwed if I can even get a development environment running! :)
The warning is telling you what is wrong. The problem is that brew is kept in /usr/local/bin
So, you can try /usr/local/bin/brew doctor
To fix it permanently alter your bash profile (.bashrc or .profile in your home directory) and add the following line:
export PATH=/usr/local/bin:$PATH
On Apple silicone it's
export PATH=/opt/homebrew/bin/:$PATH
Check XCode is installed or not.
gcc --version
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew update
http://techsharehub.blogspot.com/2013/08/brew-command-not-found.html "click here for exact instruction updates"
nano ~/.profile
add these lines:
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
save the file:
Ctrl + X then Y then Enter
then render the changes:
source ~/.profile
This was just happening to me, but none of the suggestions above worked. I changed directories ("cd ~/tmp") and suddenly the command
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
worked for me. Prior to changing directories I had been in a directory that is a Git repository. Perhaps that was interfering with the ruby and Git commands in the Brew install script.
You can run in terminal
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
then install https://github.com/robbyrussell/oh-my-zsh.
When those complate run i.e pico editor pico .zshrc and past those lines:
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
remember use brew doctor :)
try this
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/linuxbrew/go/install)"
You can use this:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
to install homebrew.

Resources