MacOS - Can't install brew - homebrew

When I try to install brew using their terminal command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Brew starts downloading but then stops saying: Can't install software because it is not currently in the Software Update Server. What should I do?
This is what the terminal says about the error
Thank you!

I had this issue too.
Solved it by downloading Command-Line-Tools from Apple Developer Portal. Accessible even with a free apple developer account.
https://download.developer.apple.com/Developer_Tools/Command_Line_Tools_macOS_10.14_for_Xcode_10.1/Command_Line_Tools_macOS_10.14_for_Xcode_10.1.dmg
You might also have to agree to terms and conditions. Terminal will prompt you if necessary, and all you have todo is type agree

Related

Homebrew corrupted; MacOS Big Sur M1 Postgres; can't brew start services postgres, fails with Bootstrap failed: 5: Input/output error

My postgres was fine until yesterday, when all of a sudden it seems to have zapped itself away.
when I start postgres with
% brew services start postgres
Bootstrap failed: 5: Input/output error
Error: Failure while executing; /bin/launchctl bootstrap gui/501 /Users/jason/Library/LaunchAgents/homebrew.mxcl.postgresql.plist exited with 5.
brew uninstall postgress and brew reinstall postgres does not fix the problem.
~~
interestingly brew doctor just started giving me this:
% 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 or file an issue; just ignore this. Thanks!
Warning: Your Xcode (12.5) is outdated.
Please update to Xcode 13.0 (or delete it).
Xcode can be updated from the App Store.
The only way I was able to fix this was to implode my Homebrew completely and re install it.
Following these steps:
upgraded to Xcode 13
removed homebrew completely
https://github.com/homebrew/install#uninstall-homebrew
run on command line
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
it told me that there were a bunch of /opt/homebrew/* directories it wouldn't/couln't remove for me, so I removed them manually with sudo rm -r /opt/homebrew
4.
Then I restarted my machine and confirmed homebrew was gone.
5.
then I began again with the home brew installation on this page https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Once I re-installed posgres, the original symptom seemed to go away.

Install MacVim in Sierra

I have a new laptop with Sierra. I brought my applications from my old mac with Time Machine and most of them are working fine. However, Macvim disappeared. I tried to install it.
I tried to re-install it by installing Homebrew and brew installing macvim. The install looks successful, but I still cannot find nor use macvim. I guess this is a matter again of application files no longer being in /usr/ but in Library/, but honestly I am a bit lost as to how to figure out whether this is the problem and how to fix it.
Can you please help me out with this?
How I installed Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
How I installed Macvim:
brew install macvim
MacVim is keg-only.
If you run this command after installation:
brew linkapps
you will find MacVim in your Applications folder in finder.
Since linkapps is now deprecated, I've had to manually link .app via
ln -Fs `find /usr/local -name "MacVim.app"` /Applications/MacVim.app
Unfortunately, Spotlight cannot find MacVim this way. Therefore, I've (after opening the app by double-clicking on the icon in Finder's Applications folder) right-clicked on the app's icon on the dock and selected Option -> Keep in Dock.
The symbolic soft link solution described by #laylaylom works; but I am having trouble setting MacVim as my default app for some filetype. Then I found this from here:
% mkdir ~/Applications/Emacs.app
% ln -s /usr/local/Cellar/emacs/23.2/Emacs.app/Contents ~/Applications/Emacs.app
That solution was for Emacs.app but it can work with MacVim as well:
% mkdir ~/Applications/MacVim.app
% ln -Fs /usr/local/Cellar/macvim/8.1-151/MacVim.app/Contents ~/Applications/MacVim.app
There is now a cask for MacVim, but it's not the default. The correct command is:
brew install homebrew/cask/macvim
This will install MacVim in the Applications folder, and make it available to Spotlight.

Homebrew error installing tomcat

After installing tomcat on Os x El Capitan using Homebrew I have received the following Warning:
your HOMEBREW_PREFIX is set to /usr/local but HOMEBREW_CELLAR is set
to /usr/local/Cellar. Your current HOMEBREW_CELLAR location will stop
you being able to use all the binary packages (bottles) Homebrew
provides. We recommend you move your HOMEBREW_CELLAR to
/usr/local/Cellar which will get you access to all bottles."
The command brew services list shows no services installed.
Printenv doesn't show any homebrew variable
It's not clear to me what should I do.
enter link description here
I also encountered this problem, in the end of the page to get accurate help,
brew bundle dump
rm -rf /usr/local/Homebrew/Cellar
brew bundle
I have received a similar warning when I tried to do a brew update.
It did not allow me to update. All I have done to resolve it was do a brew update in going to the /usr/local/Cellar directory.
From what I understand HOMEBREW_REPOSITORY path was modified or went missing when the OS was updated. After the brew update, the message said
Migrated HOMEBREW_REPOSITORY to /usr/local/Homebrew!
Homebrew no longer needs to have ownership of /usr/local. If you wish you can
return /usr/local to its default ownership with:
sudo chown root:wheel /usr/local
This got me back to my normal brew usage with out a problem.

RVM hangs on 'Installing required packages' on Debian

I installed rvm on debian 7 using the command:
\curl -L https://get.rvm.io | bash -s stable --rails
from this article:
https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-an-debian-7-0-wheezy-vps-using-rvm
I get this output:
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/debian/7/x86_64/ruby-2.1.0.tar.bz2
Checking requirements for debian.
Installing requirements for debian.
Updating system...
Installing required packages: gawk, g++, libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev, sqlite3, autoconf, libgdbm-dev, libncurses5-dev, automake, libtool, bison, pkg-config, libffi-dev
It hangs here forever. I tried waiting about 30 min. I also tried hitting ctrl-c and running some rvm commands. rvm list known works fine, but rvm install gets me back to the same "installing requirements" and it hangs as well.
Any ideas? Googleing only seemed to bring up issues involving OSX (I'm using debian in a vbox in windows 8).
Would installing each required package indiviually via apt-get be the best move?
I faced the same issue. To resolve, just mount the installation CD that you used to install Debian and it will work.
I encountered the same issue with Debian 8. As it turns out, the installation was looking for the required packages on the Debian install CD-ROM, which wasn't inserted. To fix this, run the following command:
nano /etc/apt/sources.list
Then, comment out the line beginning with "cdrom" so that it looks like the following:
# cdrom:[Debian GNU/Linux...
You should be able to run sudo apt-get update then try installing rvm again. However, I restarted my laptop before doing so. Therefore, I can't give 100% confirmation that it works without restarting.
As i've written in comment, try installing requirements by hand, sometimes something wilk silently fail and cause such issues. As OP found, the gawk package was causing the issue.
Just remove the cdrom entry from the sources.list file. This can be done easily:
sudo sed -i '/cdrom/d' /etc/apt/sources.list
This should take care of the problem. The message is because somehow you still have the cdrom entry in your sources.list file, you can check the content of the file using:

Install ImageMagick for paperclip gem in a Mac OS 10.5.8

I have been trying to install ImageMagick for one week. The documentation I found over the net it is contradictory and I didn't find the proper way to install it and configure it. As well as I am not an UNIX expert so I don´t know how to use Enviroments paths correctly.
My software versions are:
S.O.: Mac OS 10.5.8,
ImageMagick v6.7.7,
Paperclip v3.1.2,
Rails v3.0
Some hints:
The ~/.profile file:
export PATH=$HOME/Users/mac_name/.gem/ruby/1.8/bin:$PATH
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
export MAGICK_HOME="/Users/mac_name/ImageMagick-6.7.7"
export DYLD_LIBRARY_PATH=$MAGICK_HOME/lib/
export DISPLAY=:0
I install ImageMagick with an installation script. Its located in: Users/mac_name/ImageMagick-6.7.7
Now I think it´s installed but paperclip it does not run. I still have the error: "Photo Could not run the identify command. Please install ImageMagick".
$ echo $MAGICK_HOME
it returns: "/Users/mac_name/Users/mac_name/ImageMagick-6.7.7" (I don´t know why "Users/mac_name" it is repeated)
I need help. Any other gem that does not need ImageMagick? I am totally upset of this...
I will suggest you to install homebrew and then install imagemagick using that.
To install Homebrew check this. Basically just copy paste this on your terminal:
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
Now to install imagemagick run this command:
brew install imagemagick
Lemme know if you face any issues.
Mohit has a great answer but the link seems broken now so checkout either
Homebrew Homepage at http://brew.sh or the Github page at https://github.com/mxcl/homebrew
Both have good instructions on proper installation

Resources