Mac recursive create Ctags error: "Illegal option-R"

Source: Internet
Author: User

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.