MAC OSX installs the Cscope

Source: Internet
Author: User

continuation of the article, after the ctags, need to be done is cscope, is still on the internet to drag a, the specific process is as follows 

#1 Download Cscope Latest version

http://cscope.sourceforge.net/#downloads

#2 Decompression

Tar xvf Cscope-15.8b.tar

#3 revise the source file for Cscope

Vim Src/constants.h

Add after 111 rows

#undef TERMINFO

#define TERMINFO 1

#4 Installation

./configure && make all && sudo make install

If the installation encounters the following error, there is no step 3

/usr/include/ncurses.h:539:40:error:macro "Cbreak" passed 1 arguments, but takes just 0

/usr/include/ncurses.h:564:44:error:macro "Erasechar" passed 1 arguments, but takes just 0

/usr/include/ncurses.h:600:43:error:macro "Killchar" passed 1 arguments, but takes just 0

#5 Modify Path

Vim ~/.BASHRC

Added: Path= "/usr/local/bin: $PATH"

If you want to take effect immediately, enter "Export path=" under Terminal/usr/local/bin: $PATH ""

MAC OSX installs Cscope

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.