我如何在centos 6.4中安装ctags?

时间:2013-06-15 06:22:35

标签: vim centos ctags

我的centos版本是6.4

和..我不知道如何安装ctags。

这是写'ctags -R'的正确位置吗?

[root@localhost 2.6.32-358.el6.i686]# pwd
/usr/src/kernels/2.6.32-358.el6.i686
[root@localhost 2.6.32-358.el6.i686]# ll
합계 2640
-rw-r--r--.  1 root root   56936 2013-02-21 14:14 Makefile
-rw-r--r--.  1 root root    1087 2013-02-21 14:14 Makefile.common
-rw-r--r--.  1 root root  656366 2013-02-21 14:14 Module.symvers
-rw-r--r--.  1 root root 1898529 2013-02-21 14:14 System.map
drwxr-xr-x. 25 root root    4096 2013-03-30 07:06 arch
drwxr-xr-x.  2 root root    4096 2013-03-30 07:06 block
drwxr-xr-x.  5 root root    4096 2013-03-30 07:06 crypto
drwxr-xr-x. 92 root root    4096 2013-03-30 07:06 drivers
drwxr-xr-x.  2 root root    4096 2013-03-30 07:06 firmware
drwxr-xr-x. 71 root root    4096 2013-03-30 07:06 fs
drwxr-xr-x. 21 root root    4096 2013-03-30 07:06 include
drwxr-xr-x.  2 root root    4096 2013-03-30 07:06 init
drwxr-xr-x.  2 root root    4096 2013-03-30 07:06 ipc
drwxr-xr-x.  8 root root    4096 2013-03-30 07:06 kernel
drwxr-xr-x.  7 root root    4096 2013-03-30 07:06 lib
drwxr-xr-x.  2 root root    4096 2013-03-30 07:06 mm
drwxr-xr-x. 49 root root    4096 2013-03-30 07:06 net
drwxr-xr-x.  6 root root    4096 2013-03-30 07:06 samples
drwxr-xr-x. 12 root root    4096 2013-03-30 07:06 scripts
drwxr-xr-x.  7 root root    4096 2013-03-30 07:06 security
drwxr-xr-x. 21 root root    4096 2013-03-30 07:06 sound
drwxr-xr-x.  6 root root    4096 2013-03-30 07:06 tools
drwxr-xr-x.  2 root root    4096 2013-03-30 07:06 usr
drwxr-xr-x.  3 root root    4096 2013-03-30 07:06 virt
[root@localhost 2.6.32-358.el6.i686]# ctags -R

但它不起作用......

我无法安装

我想安装ctags。

Kernel-Header是什么地方???

[root@localhost src]# pwd
/usr/src
[root@localhost src]# ll
합계 8
drwxr-xr-x. 2 root root 4096 2011-09-23 04:47 debug
drwxr-xr-x. 3 root root 4096 2013-06-10 01:09 kernels
[root@localhost src]# cd kernels/
[root@localhost kernels]# ll
합계 4
drwxr-xr-x. 22 root root 4096 2013-06-14 23:06 2.6.32-358.el6.i686
[root@localhost kernels]# pwd
/usr/src/kernels
[root@localhost kernels]# 

1 个答案:

答案 0 :(得分:5)

在centos中安装ctags:

1)找到您要安装的软件包

$ yum list *ctags*

2)安装包

$ yum install <packagename>