Under the Mac system either vim or sublime text2 ctags plug-ins will encounter the "illegal option-R" error, because the MAC is using its own ctags, And we usually use the exuberant version of Ctags on Linux or Windows, under Mac if you want to use it, you must reinstall it.
- Go to exuberant official website, download the latest ctags (i downloaded the source only distribution (gzipped) ctags-5.8.tar.gz)
- Enter directory via terminal after decompression
- Command trilogy:./configue && sudo make && sudo make install
- Enter command:/usr/local/bin/ctags See if the result is "Ctags:no files specified. Try "Ctags--help". "If yes, congratulations, you have been installed successfully, but don't be happy too early, if we enter the Ctags command directly, using the original Mac with the Ctags, continue.
- Input command: Which ctags, result:/usr/bin/ctags, this is the directory of Mac Ctags, generally this, if not in the later steps to replace themselves.
- Input command: CD ~
- Use Vim to edit or create a. profile file, add export path= "/usr/local/bin:/usr/local/sbin: $PATH" Save exit
- Enter command: Ctags, the result is "Ctags:no files specified. Try "Ctags--help". "? Get
- Use Ctags-r in your project directory to create Ctags.
Mac recursive create Ctags error: "Illegal option-R"