Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

How to Install

rocky edited this page · 10 revisions
Table of Contents

From MELPA

Install MELPA.

M-x package-refresh
M-x package-install realgud

From el-get

Install el-get. You may need autom4te which may need GNU m4, version 1.4 or greater. It has been reported that on OSX, an older version of m4 sometimes is installed.

M-x el-get-install realgud

From Source Code

Prerequisites

  • Emacs, of course. Version 23 or newer. (I prefer Emacs 24). If you are using Emacs 23 or an early Emacs 24, make sure to have
  • cl-lib installed.
  • git
  • autoconf and autoreconf to build the configure script. Usually autoreconf comes with an autoconf package
  • GNU Make -- or, even better, remake.

The easy way via github...

If you are feeling lucky, you can try running the install script from the github repository:

    $ bash < <( curl https://raw.github.com/rocky/emacs-dbgr/master/install-from-git.sh )

This installs the sources into the default shared emacs libraries as determined by autoconf's configure script. As such you may need root or sudo permission to put files there. See Install-shell-script for more information about the install-from-git.sh script

If you want to change add options to configure such as changing where to install the emacs code, see the full instructions below.

The full instructions...

This package uses some other emacs packages which must be installed first. In particular:

Installing each is the same process. The following script will clone (or update if already existing locally) each repository and attempt to build and install the package to the default target location:

    #!/bin/bash
    target=/usr/local
    packages=(emacs-{test-simple,load-relative,loc-changes,dbgr})
    for pkg in "${packages[@]}"; do
      if [ ! -d $pkg ]; then
        echo "installing '${pkg}'.."
        git clone http://github.com/rocky/${pkg}.git && cd $pkg
      else
        echo "updating '${pkg}'.."
        cd $pkg && git pull
      fi
      [ $? != 0 ] && echo "error: git issues!" && exit 1
      sh ./autogen.sh
      [ $? != 0 ] && echo "error: configure issues!" && exit 1
      ./configure --prefix=$target
      make && make check && make install
      [ $? != 0 ] && echo "error: make issues" && exit 1
      cd - >/dev/null
    done

As with the one-step approach above ./configure will install into the shared emacs libary, and that may require special permission such as being root or having sudo permission. To change this, you can supply the --prefix option to configure. See configure --help for help on how to influence the configure script.

Something went wrong with that request. Please try again.