谁能告诉我哪里可以获得支持 cscope 的 Vim 7.2?

发布于 2024-08-14 16:57:30 字数 165 浏览 7 评论 0原文

我想使用启用 cscope 的 vim - 不幸的是,工作中的二进制文件没有使用 cscope 支持进行编译,当我尝试从 src 构建时,由于未安装正确的开发包,我收到了很多错误。

那么,有人有一个链接,我可以在其中获得带有 cscope 支持的预编译二进制文件吗?顺便说一句,我正在使用Linux。

I wanted to use cscope enabled vim - unfortuantely , the binaries at work are not compiled with cscope support , and when I tried building from src , I'm getting a lot of errors due to proper dev packages not being installed.

So , does anyone have a link where I can a precompiled binary with cscope support ? Btw , I'm using linux.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

凡间太子 2024-08-21 16:57:30

只需从源代码构建您自己的 vim 二进制文件也许是一个很好的解决方案 ^_^

wget ftp://ftp.vim.org/pub/vim/unix/vim-7.2.tar.bz2
tar xjf vim-7.2.tar.bz2
cd vim72
./configure --enable-cscope
make && make install

您将获得支持 cscope 的 vim 7.2

Just build your own vim binary from source code maybe a good solution ^_^

wget ftp://ftp.vim.org/pub/vim/unix/vim-7.2.tar.bz2
tar xjf vim-7.2.tar.bz2
cd vim72
./configure --enable-cscope
make && make install

You will get a cscope supported vim 7.2

染年凉城似染瑾 2024-08-21 16:57:30

不完全回答您对预编译 vim 7.2 的请求,但您说编译问题的一部分是您“没有安装 reqd 包的权限”(在您对 @chenkaie 的答案的评论中)。如果其他 reqd 包使用 configure,您可以将它们编译并安装到您可以控制的目录中,如下所示:

./configure --prefix=/dir/with/permissions
make && make install

基于 configure 的安装程序支持 -- prefix 开关,这会导致安装的软件包位于 \bin/lib 等位置。通过这个技巧,您可以也许能够构建所有 reqd 包以构建 vim 7.2 本身。

如果 reqd 包不是基于 configure 的,您可能需要查看 reqd 包的安装程序(makefile?),看看它是否有类似于 configure --prefix= 的选项<目录>

Not quite an answer to your request for a pre-compiled vim 7.2, but you said part of your compiling problems is that you "don't have the privileges for installing reqd packages" (in you comment to @chenkaie's answer). If the other reqd packages use configure, you can compile them to install into a directory you have control over, like this:

./configure --prefix=/dir/with/permissions
make && make install

configure-based installers support the --prefix switch, which results in the installed packages in locations like <prefix>\bin, <prefix>/lib, etc. With this trick you may be able to build all the reqd packages in order to build vim 7.2 itself.

If the reqd packages are not configure-based, you might want to look at the installer (makefile?) of the reqd package to see if it has an option similar to configure --prefix=<dir>

枉心 2024-08-21 16:57:30

我有 Ubuntu 通过“apt-get install vim”提供的默认软件包 vim_1%3a7.1-138+1ubuntu3.1_i386.deb。

在 vim 内部,当我输入时,

:echo has('cscope')

它会

1

按预期打印。

当然,你确实说你正在寻找 Vim 7.2,我不知道 7.2 相对于 7.1 有哪些改进,但是 看起来 7.2 仍然存在一些构建问题,正在解决。我建议暂时只使用 7.1。

I have the default package Ubuntu gives me from doing an 'apt-get install vim', vim_1%3a7.1-138+1ubuntu3.1_i386.deb.

Inside of vim, when I type

:echo has('cscope')

it prints

1

as expected.

Granted, you do say you are looking for Vim 7.2 I don't know what improvements 7.2 has seen over 7.1, but it looks like there are still build problems with 7.2 that are being hammered out. I'd suggest just using 7.1 for the time being.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文