Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed cscope-15.8a successfully and then I copied the cscope folder into .emacs.d/. I also add the following lines into the .emacs file:

(add-to-list 'load-path "~/.emacs.d/cscope/contrib/xcscope/")
(require 'xcscope)
(setq cscope-do-not-update-database t)

When I open a C++ file, find a function and then press C-c s d, a line prompt at the bottom:

Searching for program: No such file or directory, cscope

What's the reason for this?

share|improve this question
up vote 2 down vote accepted

Probably binary package cscope not installed or not in the emacs PATH.

This can be checked in emacs by M-:

(getenv "PATH")

To change path you can use setenv, e.g.:

(setenv "PATH" (concat (getenv "PATH") ":/opt/cscope/bin"))
share|improve this answer
You are correct, thanks so much, @iNode . And btw, when I exec the command you gave, I found that the Emacs PATH doesn't include the cscope path. So, how to add additional bin/ folders to the Emacs PATH? – injoy Sep 23 '13 at 14:48

For emacs (Emacs 24.3.1) in my Mac setting PATH didn't solve the problem of not finding cscope. Instead, I had to add the following in .emacs:

(setq exec-path (append '("/usr/local/bin") exec-path))

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.