如何在CentOS 6.4中安装ctags?

3

我的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
你想要“安装”ctags还是“运行”ctags?有什么问题?你期望得到什么结果?你得到了什么结果? - romainl
感谢,安装。我不知道kernel-header在哪里。 - JaeHa Lee
1
你不需要知道你的内核头文件在哪里才能“安装”ctags:它们完全不相关。只需使用您的软件包管理器即可。但是,“运行”ctags针对内核源代码是完全不同的问题。 - romainl
1个回答

7

在CentOS中安装ctags:

1)找到要安装的软件包

$ yum list *ctags*

2) 安装软件包

$ yum install <packagename>

3
我只是运行了 yum install ctags,它找到了相应的软件包并顺利安装了。 - Arda

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接