Downloading CGDB

Binary Packages

The following distributions offer native packages for CGDB. If you know of another distribution that packages CGDB, please let us know so we can update this page.

Debian

Debian's package system contains a CGDB package, maintained by Robert Lemmen. The stable version is fairly recent (0.6.3 as of this writing), testing will get you the latest (0.6.4).

To install, as root: apt-get install cgdb

Ubuntu

See Debian instructions, or if you prefer aptitude: sudo aptitude install cgdb

Gentoo

Portage generally has a relatively recent version of CGDB (dev-util/cgdb). As of this writing, 0.6.2 is unmasked, but 0.6.3 is masked with ~keyword. (They're both stable, Gentoo just doesn't keep up so well.)

To install, as root: emerge -av cgdb

We also provide a current Gentoo ebuild (0.6.4) that you can use instead. If you've never installed an ebuild before, check out the Gentoo Wiki on 3rd party ebuilds. Once you overlay the new ebuild, install cgdb with the command above.

Fedora

Fedora's extra repository has an up-to-date CGDB package. To install it, as root: yum install cgdb

Red Hat/CentOS (5.0)

Fedora EPEL repository has an up-to-date CGDB package. To install it, add EPEL support to your existing RedHat/CentOS installation, then install as you would in Fedora (above).

Windows

Windows users can use this win32 binary, which will work in a command window or a Cygwin terminal. For Cygwin users, you may need to delete the DLLs in the 'bin' directory.

MacOS X

You can get a CGDB Mac PPC binary by using Jens Frederich's prebuilt universal binary, also available as a disk image. If you would like to contact him, his address is jfrederich (at) gmail (dot) com. Thanks Jens!

Alternatively, CGDB may be installed via the MacPorts package system. Install MacPorts, then run: sudo port install cgdb

Install from Sources

Prerequisites
  1. readline 5.1 or greater. An important design problem was fixed in version 5.1, any older version will not support CGDB.
  2. ncurses (or curses, but it doesn't always look pretty), any recent version (i.e. 5+) will do.
Stable Release:

Subversion Access

The most recent changes to CGDB can be found by checking out a copy of the current Subversion tree. You may want to try this to see if a bug is resolved before reporting the error. It should be noted that the svn tree is not guaranteed to be stable and is not tested as well as the latest stable release.

To get a copy of the svn repository, use the following command: svn co https://cgdb.svn.sourceforge.net/svnroot/cgdb/cgdb/trunk cgdb After checking out the tree, you will need to generate the configure script before you can configure and build the code. Use the script "autoregen.sh" at the top level of the source tree to do this automatically.

Note: Building the code checked out from svn will require additional tools installed to generate the autoconf script. We use the following versions, although others may work for you:

  • aclocal (GNU automake) 1.9.6
  • autoconf (GNU Autoconf) 2.59
  • m4 (GNU m4) 1.4.4

Finally, if you decide to modify the tokenizer library or the config file module, you will need to have flex installed. We have used flex 2.5.4 to build cgdb.