2013년 4월 23일 화요일

How to install cscope for Mac OS X

cscope introduce

Cscope is a developer's tool for browsing source code. It has an impeccable Unix pedigree, having been originally developed at Bell Labs back in the days of the PDP-11. Cscope was part of the official AT&T Unix distribution for many years, and has been used to manage projects involving 20 million lines of code!
In April, 2000, thanks to the Santa Cruz Operation, Inc. (SCO) (since merged with Caldera), the code for Cscope was open sourced under the BSD license.

install

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/

Xcode Command Line Install (OSX Mavericks)


Installing command line tools in OSX 10.9 Mavericks changes slightly than previous versions of MAC OSX , Now You Dont Have to install XCODE , you can install Command Line Tools stand alone ,

 1 : Open terminal

open terminal
2 : Type “xcode-select --install. ” in terminal ( without quotes  ) 

3: A pop-up windows will apear asking you about install tools 
Screen Shot 2013-06-27 at 11.38.59 am
4 : choose install tools
Installing Command Line Tools
Installing Command Line Tools

OSX에서 개발 도구를 사용하려면 Xcode를 설치해야 합니다.

- Mac OS X Lion는 Xcode의 그래픽 개발환경(GUI)과 문자 개발 환경(CUI)을 선택해서 설치할수 있도록 Preference / Downloads에서 Command Line Developer Tools를 설치할 수 있었습니다.
- Mac OS X Mavericks에서 문자 개발 환경으로 설치하려면 터미널을 열고 다음의 명령어를 실행하면 됩니다.

1 : Open terminal

open terminal
2 : Type “xcode-select --install. ” in terminal ( without quotes  ) 

3: A pop-up windows will apear asking you about install tools 
Screen Shot 2013-06-27 at 11.38.59 am
4 : choose install tools
Installing Command Line Tools
Installing Command Line Tools
5 : wait install to finish it will take 30 minutes
Done
Done

6 : Verify install tools

confirm xcode