我用
编译了vim 7.3./configure --enable-gnome-check --enable-cscope --with-features=huge --enable-perlinterp \
--enable- ythoninterp --enable-rubyinterp --enable-multibyte --enable-python3interp \
--with-compiledby=tahoang@something.com
在Ubuntu 11.04上,以便有适当的缩进和语法高亮显示。但是,python,perl和ruby似乎没有正确链接,如下所示:
Compilation:
gcc -c -I. -Iproto -DHAVE_CONFIG_H -Wall -g -O2 -D_FORTIFY_SOURCE=1
Linking:
gcc -Wl,--as-needed -o vim -lm -lncurses -lselinux -lacl -lgpm
我在这里错过了一些关键点吗?以下是从其他机器上的vim --version输出的,其中vim已正确安装python和perl支持。
Compilation: x86_64-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H
-march=x86-64 -msse3 -O2 -pipe -D_FORTIFY_SOURCE=1
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE -I/usr/include/python2.6
-pthread
Linking: x86_64-pc-linux-gnu-gcc -rdynamic -Wl,-O1 -L/usr/local/lib
-o vim -lcurses -lacl -rdynamic
-L/usr/local/lib64 /usr/lib64/perl5/5.8.8/x86_64-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib64/perl5/5.8.8/x86_64-linux/CORE -lperl -lutil -lc -L/usr/lib/python2.6/config -lpython2.6 -lutil -lm -Xlinker -export-dynamic
谢谢!如果我能提供任何其他信息来详细说明问题,请告诉我。
以下是来自make的属于link.sh
的输出link.sh: Using auto/link.sed file to omit a few libraries
gcc -L/usr/lib/i386-linux-gnu -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -L/usr/local/lib -o vim objects/buffer.o objects/blowfish.o objects/charset.o objects/diff.o objects/digraph.o objects/edit.o objects/eval.o objects/ex_cmds.o objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/fileio.o objects/fold.o objects/getchar.o objects/hardcopy.o objects/hashtab.o objects/if_cscope.o objects/if_xcmdsrv.o objects/main.o objects/mark.o objects/memfile.o objects/memline.o objects/menu.o objects/message.o objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o objects/popupmnu.o objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o objects/sha256.o objects/spell.o objects/syntax.o objects/tag.o objects/term.o objects/ui.o objects/undo.o objects/window.o objects/gui.o objects/gui_gtk.o objects/gui_gtk_x11.o objects/pty.o objects/gui_gtk_f.o objects/gui_beval.o objects/if_python.o objects/py_config.o objects/if_ruby.o objects/netbeans.o objects/version.o -pthread -L/usr/lib/i386-linux-gnu -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lXt -lncurses -liconv -L/usr/local/lib/python2.7/config -lpython2.7 -lutil -Xlinker -export-dynamic -lruby1.8 -lrt -lm
link.sh: Linked fine with a few libraries omitted
答案 0 :(得分:1)
on Ubuntu 11.04 in order to have proper indentation and syntax highlighting
您无需链接Python,Ruby或Perl即可在Vim中获取语法突出显示或缩进。 它们只用于在Vim中运行Python / Ruby / Perl代码。