"맥OS ctags"의 두 판 사이의 차이

40번째 줄: 40번째 줄:
drwxr-xr-x  14 root      wheel  476B  4 22 19:35 ../
drwxr-xr-x  14 root      wheel  476B  4 22 19:35 ../
drwxr-xr-x  3 johnjeong  admin  102B  4 22 19:56 ctags/
drwxr-xr-x  3 johnjeong  admin  102B  4 22 19:56 ctags/
</source>
* bin 디렉토리에 link가 잘 연결되어 있는지 확인
<source lang='console'>
johnjeong@MacBook:/bin$ll | grep ctags
lrwxr-xr-x  1 root  wheel    23B  4 22 20:27 ctags@ -> /usr/local/Cellar/ctags
</source>
</source>

2017년 4월 22일 (토) 20:29 판

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
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}