无法在linux中创建ctags

问题描述:

执行“ctags -R”后出现以下错误。无法在linux中创建ctags

命令 -

[email protected][/opt/soe/projects/sr_4k_10_1_x/pihu/sr1] >ctags -R 

输出 -

/opt/tools/unsupported/bin/ctags: no input files specified. 
     Try `/opt/tools/unsupported/bin/ctags --help' for a complete list of options. 

命令 -

[email protected][/opt/soe/projects/sr_4k_10_1_x/pihu/sr1] >which ctags 

输出 -

/opt/tools/bin/ctags 

附加信息 - 我在/ home/pihu路径中使用了两个文件.bashrc和.cshrc。

的.bashrc: -

export PS1="\[email protected]\h\w>" 
alias 2k4k='cd /opt/soe/projects/sr_4k_10_1_x/pihu' 
alias avm='cd /opt/soe/projects/sr_4k_10_1_x/pihu' 
export PATH=$PATH:/opt/tools/unsupported/bin:/opt/tools/bin:/tiara/local/bin:/opt/unsupported/bin:/opt/soe/lb/sr_lbtools/bin:/opt/soe/lb/sr_lbtools:/opt/soe/lb/sr_lbtools/tiara/local/bin:/usr/bin/ 

对于-R(递归)选项,您仍然需要提供一个路径:

ctags -R . 

我总是喜欢生成文件列表,我想先使用。事情是这样的:

find . -name *.c -type f > cscope.files 
find . -name *.h -type f >> cscope.files 

然后我运行的ctags与-l选项,如:

ctags -L cscope.files 

追加点到ctags命令:

ctags -R .