맥OS ctags

John Jeong (토론 | 기여)님의 2017년 4월 22일 (토) 21:48 판 (→‎같이 보기)

1 개념

맥OS ctags
macOS ctags
  • 맥OS에서의 ctags

2 기본 설치된 ctags

  • "ctags -R" 명령 실행
johnjeong@MacBook:~/test$ctags -R
/Library/Developer/CommandLineTools/usr/bin/ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
→ 맥OS가 기본적으로 가지고 있는 ctags는 버전이 낮아 가장 많이 사용하는 명령인 "ctags -R"조차 동작하지 않음

3 ctags 업그레이드

  • "brew install ctags" 명령 실행
johnjeong@MacBook:~/test$brew install ctags
==> Downloading https://homebrew.bintray.com/bottles/ctags-5.8_1.sierra.bottle.t
######################################################################## 100.0%
==> Pouring ctags-5.8_1.sierra.bottle.tar.gz
==> Caveats
Under some circumstances, emacs and ctags can conflict. By default,
emacs provides an executable `ctags` that would conflict with the
executable of the same name that ctags provides. To prevent this,
Homebrew removes the emacs `ctags` and its manpage before linking.

However, if you install emacs with the `--keep-ctags` option, then
the `ctags` emacs provides will not be removed. In that case, you
won't be able to install ctags successfully. It will build but not
link.
==> Summary
🍺  /usr/local/Cellar/ctags/5.8_1: 8 files, 341.6KB
  • "Homebrew" 전용 디렉토리에 패키지가 잘 살치되어 있는지 확인
johnjeong@MacBook:/usr/local/Cellar$ll
total 0
drwxrwxr-x   3 johnjeong  admin   102B  4 22 19:56 ./
drwxr-xr-x  14 root       wheel   476B  4 22 19:35 ../
drwxr-xr-x   3 johnjeong  admin   102B  4 22 19:56 ctags/
  • bin 디렉토리에 link가 잘 연결되어 있는지 확인
johnjeong@MacBook:/bin$ll | grep ctags
lrwxr-xr-x   1 root  wheel    23B  4 22 20:27 ctags@ -> /usr/local/Cellar/ctags
  • 업그레이드 버전 확인
johnjeong@MacBook:~/test$ctags --version
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Sep 13 2016, 04:58:37
  Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
  Optional compiled features: +wildcards, +regex

4 ctags -R 확인

johnjeong@MacBook:~/test$ctags -R
→ 특별한 에러 정보 없이 잘 동작 함

5 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}