a

Setting up your Ethereum Eth Development Environment on a Mac OS X

Firstly, to install Ethereum Eth download the latest stable binary of cpp-ethereum, and install on your chosen operating system.
I’m running on Mac so I’ll install via Homebrew

brew update
brew upgrade
brew tap ethereum/ethereum
brew install cpp-ethereum

In the installation of cpp-ethereum, I ran into a compilation error

Built target llvm

make: *** Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):

http://github.com/ethereum/homebrew-ethereum/issues

These open issues may also help:

Error during install of  cpp-ethereum ( Built target llvm make: *** Error 2) http://github.com/ethereum/homebrew-ethereum/issues/116

In order to get cpp-ethereum to run correctly on my Mac, I had to build from the head. The last line of the install snags the latest branch of cpp-ethereum


brew update
brew upgrade
brew tap ethereum/ethereum
brew reinstall llvm
At this point, close the terminal, and relaunch it.
brew install leveldb libmicrohttpd cryptopp
brew install cpp-ethereum --devel --successful --verbose

Now I’m able to launch with

eth -j --rpccorsdomain '*'

In some of our other tutorials, you will learn how to run eth with rpc and ipc. You’ll also learn how to create a custom Genesis Block to enable you to mine for ether quickly on your own testnet.