How to install ebe from source on OS X

Install XQuartz

You will probably want XQuartz for other purposes, but the Homebrew package lists it as a requirement. You can download the package from

Install Xcode command line tools (optional)

Technically you will probably only need the Xcode command line tools and the ebe universal install script will use the xcode-select command to install the command line tools.

If for some reason you need to install the command line tools outside the ebe install script or if you want to install the Xcode application check out

Install Homebrew (optional)

Homebrew seems to be a quicker way to install the programs and libraries needed by ebe. It is also possible to install it as part of the ebe install script, so even if you prefer Homebrew it is optional to install it separately. If you need to do so check out

Install MacPorts (optional)

MacPorts is a set of open source software which can be installed using the MacPorts "port" command after it is installed.

Follow the installation instructions at It discusses Xcode and MacPorts.

You will need to download the OS X 9.1 macports pkg file and double click on it to initiate the installation.

Using the Install Script

There is an install script at named This script will do the rest of the installation, but it would not be easy to install Xcode and MacPorts from a script. Download the script and do:


I believe that there have been problems with qt5 and perhaps you might wish try qt4 if the install script fails. The relevant line number is about 245.

Completing the installation with individual commands

It may be useful to know the steps involved in order to cope with problems, but hopefully your original installation will go well. In the future you could skip the xcode-select, port, codesign, and killall commands.

Install Xcode command line tools

xcode-select --install   # probably says it doesn't exist

Install tools used by ebe

brew install git gcc astyle nomebrew/dupes/gdb nasm qt5
brew link --overwrite gdb
brew link --force qt5
ln -s /usr/local/bin/gcc-4.9 /usr/local/bin/gcc
ln -s /usr/local/bin/g++-4.9 /usr/local/bin/g++


sudo port install astyle g95 git qt5-mac nasm gdb

Use codesign to tell OS X that you trust ggdb

sudo codesign -s gdb-cert /usr/local/bin/gdb


sudo codesign -s gdb-cert /opt/local/bin/ggdb

I think MacPorts places a certificate called gdb-cert on your system, but perhaps this was from an older installation on my Mac.

If there is a problem with using the codesign command, follow the instructions given at or

Restart taskgated

You need to find the process id of taskgated using:

killall -9 taskgated

Taskgated should restart. It took about 1 minute on my computer, though it should be immediate. Check with ps.

Test gdb by itself

It might be smart to compile a C program (or C++) and try running gdb before running ebe.:

gcc -g hello.c -o hello
gdb hello
break main

gdb will either complain about untrusted software or will start running your program and stop on the first line of the program.

Get ebe and build

git clone git:// ebe
cd ebe
bash rebuild
sudo cp ebe *.qm /opt/local/bin

After the clone, it is possible to update the source using:

git pull

Then you could rebuild ebe fairly quickly.