3

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.

michael
  • 106,540
  • 116
  • 246
  • 346
  • 1
    Worked for me code.google.com/p/rudix/downloads/detail?name=cscope-15.7a-3.pkg&can=2&q=label%3AOSX-SnowLeopard –  Mar 18 '12 at 03:15

3 Answers3

6

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/

Madam Kiwi
  • 106
  • 1
  • 4
0

I installed cscope on Mac OS X 10.8 using MacPorts: http://www.macports.org/install.php

There is a cscope port that you can install using the instructions. After that, I added /opt/local/bin to the path.

petewil-G
  • 99
  • 4
0

FWIW, I just got the source, no mods to source, did the regular

  • ./configure
  • make
  • sudo make install
netskink
  • 4,033
  • 2
  • 34
  • 46