问题描述
我已经搜索了这个(确切的)错误,但在网络上找不到任何提及.
I've searched for this (exact) error, but I can't find any mention of it on the web.
基本上,我正在尝试在OSX Snow Leopard上安装ctags(我以前从未使用过).这是我所做的:
Basically, I'm trying to install ctags (I've never used it before) on OSX Snow Leopard. Here's what I've done:
- 我从此处下载了最新的源程序包(版本5.8): http://ctags.sourceforge.net/
- 按照安装说明,我已经运行了configure/make/make install.这会将ctags二进制文件安装到/usr/local/bin/.
- 如果我进入/usr/local/bin/并运行./ctags(没有args),则会得到以下信息:ctags:未知选项:-p
有人见过吗?我显然没有提供任何论据.如果这样做,我仍然会遇到相同的错误(无论参数是什么).
Has any one seen this before? I'm obviously not supplying any arguments; if I do, I still get the same error (no matter what the arguments are).
干杯
-Lars
推荐答案
我认为您应该检查〜/.ctags(或ctags -V
中列出的任何其他ctags配置文件).
I think you should check your ~/.ctags (or any other ctags configuration file listed in ctags -V
).
您可能有类似-python-kinds=-i
的名称; ctags将其解释为单个字符(-p
)选项.
You probably have something like -python-kinds=-i
; ctags interprets that as a single character (-p
) option.
无论如何,请尝试使用ctags --options=NONE
运行ctags;如果此问题得以解决,则意味着该问题来自您的conf文件之一.
In any case, try to run ctags with ctags --options=NONE
; if it fixes the issue, it means that the problem comes from one of your conf files.
这篇关于ctags错误:"ctags:未知选项:-p";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!