0%

Mac OS X中安装universal-ctags

1. 首先需要安装autotools

1) 安装m4

curl -O http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz
tar -xzvf m4-1.4.13.tar.gz
cd m4-1.4.13
./configure —prefix=/usr/local
make
sudo make install

2) 安装autoconf

curl -O http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz
tar -xzvf autoconf-2.65.tar.gz
cd autoconf-2.65
./configure —prefix=/usr/local # ironic, isn’t it?
make
sudo make install

3) 安装automake

curl -O http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz
tar xzvf automake-1.11.tar.gz
cd automake-1.11
./configure —prefix=/usr/local
make
sudo make install

4)安装libtools

curl -O http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz
tar xzvf libtool-2.2.6b.tar.gz
cd libtool-2.2.6b
./configure —prefix=/usr/local
sudo make && make install

2. 安装pkg-config

curl -O https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz

tar xzvf pkg-config-0.29.2.tar.gz

cd pig-config-0.29.2

./configure —with-internal-glib —prefix=/usr/local

sudo make && make install

3. 安装universal-ctags

git clone https://github.com/universal-ctags/ctags.git

./autogen.sh

./configure —prefix=/usr/local

make && sudo make install