Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

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.