xcode 如何为 Mac OS X 10.6 安装 cscope
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9386127/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install cscope for Mac OS X 10.6
提问by michael
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.
如何为 Mac OS X 10.6 安装 cscope?我已经安装了 XCode,但在 /opt/local/bin 中没有看到 cscope。
回答by Madam Kiwi
Download from http://sourceforge.net/(latest: cscope-15.8a) and in src/constants.h
, change this line:
从http://sourceforge.net/下载(最新版本:cscope-15.8a)并在 中src/constants.h
,更改这一行:
#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/
您可以在 /usr/local/bin/ 中找到 cscope
回答by petewil-G
I installed cscope on Mac OS X 10.8 using MacPorts: http://www.macports.org/install.php
我使用 MacPorts 在 Mac OS X 10.8 上安装了 cscope: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.
您可以使用说明安装一个 cscope 端口。之后,我将 /opt/local/bin 添加到路径中。