webbench 标签文章 - 李海鑫个人博客

(2008-12-6)在vps主机安裝webbench

编辑文章 没有评论 :

本文HTML永久地址doc

在编译webbench的时候,出现/bin/sh: ctags: command not found,如下所示

[root@www webbench-1.5]# make
cc -Wall -ggdb -W -O   -c -o webbench.o webbench.c
webbench.c: In function 'alarm_handler':
webbench.c:77: warning: unused parameter 'signal'
cc -Wall -ggdb -W -O  -o webbench webbench.o
ctags *.c
/bin/sh: ctags: command not found
make: [tags] Error 127 (ignored)

搜索一下ctags,centos有相应的组件

ctags.i386                               5.6-1.1                base
Matched from:
ctags
Ctags generates an index (or tag) file of C language objects found in
C source and header files.  The index makes it easy for text editors or
other utilities to locate the indexed items.  Ctags can also generate a
cross reference file which lists information about the various objects
found in a set of C language files in human readable form.  Exuberant
Ctags improves on ctags because it can find all types of C language tags,
including macro definitions, enumerated values (values inside enum{...}),
function and method definitions, enum/struct/union tags, external
function prototypes, typedef names and variable declarations.  Exuberant
Ctags is far less likely to be fooled by code containing #if preprocessor
conditional constructs than ctags.  Exuberant ctags supports output of
Emacs style TAGS files and can be used to print out a list of selected
objects found in source files.

Install ctags if you are going to use your system for C programming.
http://ctags.sourceforge.net/

看来是没安装ctags组件,使用

yum -y install ctags

解决问题