How do I install ASP.NET 5 vNext on Mac OS X? 404 on mono--monolite - osx-yosemite

I tried to install the latest ASP.NET on Mac OS X Yosemite according to the instructions on github.
I already have Homebrew, so this step worked fine:
brew tap aspnet/k
However, on the next step, brew install kvm, I get errors:
$ brew install kvm
==> Installing kvm dependency: mono
==> Downloading http://download.mono-project.com/sources/mono/mono-3.8.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/mono-3.8.0.tar.bz2
==> Downloading http://storage.bos.xamarin.com/mono-dist-master/latest/monolite-
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "mono--monolite"
Download failed: http://storage.bos.xamarin.com/mono-dist-master/latest/monolite-111-latest.tar.gz
Note: the first time I ran this, I got a slightly different message when mono-3.8.0 installed successfully.
David Fowler was quick to answer my question on Twitter and suggested a brew update (Thanks David!) but I got this:
$ brew update
error: Your local changes to the following files would be overwritten by merge:
Library/Formula/google-perftools.rb
Please, commit your changes or stash them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
At this point, it seems like it's a Homebrew problem. What am I doing wrong?
Update: sorry, I was an idiot. As suggested by agua from mars and David Folwer, I fixed the issue as follows:
cd /usr/local/Library/Formula/
git reset HEAD google-perftools.rb
git checkout google-perftools.rb
brew update
brew install kvm
And this time kvm installed OK. Then I just added the line source /usr/local/Cellar/kvm/1.0.0-beta1/libexec/kvm.sh to my .bash_profile

As we discuss in comments.
You have a git conflict on this file Library/Formula/google-perftools.rb.
you should undo your change:
git checkout -- Library/Formula/google-perftools.rb
or doing a git reset.
And update brew again

Related

brew install httpd return error MacOS 10.14 version

Im running this command
brew install php#8.0
Unfortunately i got this error
==> Installing php#8.0 dependency: httpd
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 11.3.1.
==> ./configure --enable-layout=Slackware-FHS --prefix=/usr/local/Cellar/httpd/2
==> make
==> make install
Do not report this issue to Homebrew/brew or Homebrew/core!
Error: You are using macOS 10.14.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.
Is there any possible solution to handle it without upgrading MacOS version?

Unable to install grub-customizer on Manjaro 21.0.4

I'm having trouble installing other packages too, I assume it's because I didn't configure something. Thoughts?
sudo pacman -S grub-customizer
error: target not found: grub-customizer
Download the offline installer of the application in this link: https://archlinux.org/packages/community/x86_64/grub-customizer/download/
Then double click on it in Dolphin and that's it.

Laravel valet linked php error

I got an error.
$ valet install
[DomainException]
Unable to determine linked PHP.
install
'which' command returns:
$ which php
/usr/local/Cellar/php70/7.0.6/bin/php
I used Homebrew to instal php7.1 , So I ran this command in terminal
ln -s /usr/local/opt/php71/bin/php /usr/local/bin/php
and everything is done.
if your PHP version 7.x and valet > 2.0.8 update valet
valet stop
valet uninstall
brew install php
composer global require laravel/valet
then valet install
Homebrew creates (or attempts to create) symlinks in /usr/local/bin.
Start by running the following to attempt to create a link.
brew link php70
It'll give you information as to whether or not it was successful. Occasionally permissions are problematic and you can resolve this with
sudo chown -R `whoami`:admin /usr/local/bin
Then try running the brew link command again.
Alternately brew link may give you instructions, or you can use brew doctor to get a report on any problems which exist with your Homebrew installation.
When it's set up properly after running ls -la /usr/local/bin | grep bin/php$ you should see something similar to
lrwxr-xr-x 1 YOURUSER admin 29 10 May 21:40 php -> /usr/local/Cellar/php70/7.0.6/bin/php
I was going to update Laravel Valet from version 1.* to 2 and ran same error like this
Unable to determine linked PHP
The solution was to run
composer global update
before I ran
valet install
This happens when your brew php gets Updated.
If you do brew install php this will work but will install php 7.2 by default.
If you want php#7.1 you have to do brew install php#7.1 this will install php7.1 and now when you restart valet valet restart you might get an error. Unable to determine linked PHP.
To make this work with php7.1 you have make brew link
brew link php71
you may have this error
Warning: php#7.1 is keg-only and must be linked with
to fix this
brew link --force php71
now valet should work on php7.1
I tried all of the suggestions here—and several from elsewhere—before I hit on the solution. This applies to PHP 7.2 (no guarantee for other versions). If you are using the original Larvel Valet, open the file:
~/.composer/vendor/laravel/valet/cli/Valet/Brew.php
...or, if you're using Valet+
~/.composer/vendor/weprovide/valet-plus/cli/Valet/Brew.php
Locate the supportedPhpVersions method. In some versions, it will return an array right in the method:
return ['php72', 'php71', 'php70', 'php56'];
Change this to:
return ['7.2', 'php72', 'php71', 'php70', 'php56'];
In other cases, it'll reference const SUPPORTED_PHP_VERSIONS, and the change will be similar.
Save the file, restart valet, and Bob's your uncle!

Homebrew Install error

I'm trying to install redis with Homebrew. I'm getting the error below:
brew install redis
==> Downloading http://redis.googlecode.com/files/redis-2.6.14.tar.gz
Already downloaded: /Library/Caches/Homebrew/redis-2.6.14.tar.gz
==> make -C /private/tmp/redis-1Tw6/redis-2.6.14/src CC=cc
Failed to execute: make
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
I've run brew doctor and brew update without any issue. XCode CLT is also up to date. Any ideas?

getting a could not resolve host error when trying to install RVM on osx lion

I have all the prereq's installed.. I am on osx lion 10.7.2
xcode:
$ xcodebuild -version
Xcode 4.2.1
git:
$ git --version
git version 1.7.5.4
when i run
$ bash < <( curl -s https://rvm.beginrescueend.com/install/rvm )
i get the following error:
curl: (6) Could not resolve host: HD; nodename nor servname provided,
or not known Could not download
'https://github.com/wayneeseguin/rvm/tarball/master'.
any ideas why? If i run as sudo it goes through but then i get more errors... Need this to install as single user. path to my home dir is:
'/volumes/Macintosh HD/users/mikedevita'
It seems like the file brew is referring to has moved, hence you are looking for a dead link.
I got past this issue by running 'brew update' in the terminal.
After letting this run, and after brew updates to the latest version it should have the latest directories and files, and as a result should avoid dead links. You should be free to continue as normal now.