How to install cscope for Mac OS X 10.6

michael picture michael · Feb 21, 2012 · Viewed 8.8k times · Source

How can I install cscope for Mac OS X 10.6? I have installed XCode but I don't see cscope in /opt/local/bin.

Answer

Madam Kiwi picture Madam Kiwi · Dec 6, 2013

Download from http://sourceforge.net/ (latest: cscope-15.8a) and in src/constants.h, change this line:

#if (BSD || V9 ) && !__NetBSD__ && !__FreeBSD__

To:

#if (BSD || V9 ) && !__NetBSD__ && !__FreeBSD__ && !__APPLE__

Then run:

configure
make
make install

You can find cscope in /usr/local/bin/