In this article I quickly show you how to sort out a Formula error that could occur when trying to install Cloud Foundry CLI via HomeBrew for IBM BlueMix.
My Machine Specs
- Apple MacBook Pro: Max OS X 10.8.5
- HomeBrew 0.9.4
The Problem
I tried to run the HomeBrew command line to install Cloud Foundry CLI…
brew install cloudfoundry-cli
…but received the following error:
Error: No available formula for cloudfoundry-cli
Why did this happen?
It’s simple. My version of HomeBrew was 0.9.4 and Cloud Foundry requires 0.9.5 (I typed in brew -v to check the version).
To fix this, do the following:
- Open Terminal
- Clean and remove current version of HomeBrew by running the following command:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
- Install latest version of HomeBrew by running the following command:
ruby -e “$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)”
- Install Cloud Foundry CLI:
brew install cloudfoundry-cli
Simple as that. You can check the version of Cloud Foundry CLI by typing cf -v in Terminal.
Quick Note
To avoid the above-mentioned fuss, you can also download Cloud Foundry CLI directly by clicking here.
Happy Coding
The post BlueMix Tip: Fix error when installing Cloud Foundry CLI via HomeBrew appeared first on Johnno's Workbench.