我按照http://www.vim.org/git.php上的说明操作,但遇到以下错误(克隆回购并在vim/src
中运行make后):
makefile:304: auto/config.mk: No such file or directory
makefile:2007: target `tags' given more than once in the same rule.
rm -f auto/config.cache
process_begin: CreateProcess(C:\Users\Justin\DOCUME~1\MOBAXT~1\slash\bin\rm, rm -f auto/config.cache, ...) failed.
make (e=193): Error 193
make: [auto/config.mk] Error 193 (ignored)
if test "X" != "Xclean" \
-a "X" != "Xdistclean" \
-a "X" != "Xautoconf" \
-a "X" != "Xreconfig"; then \
GUI_INC_LOC="" GUI_LIB_LOC="" \
CC="" CPPFLAGS="" CFLAGS="" \
LDFLAGS="" srcdir="." \
./configure \
\
\
\
\
\
\
\
\
\
\
; \
fi
"X" was unexpected at this time.
make: *** [auto/config.mk] Error 255
当我在vim/
! was unexpected at this time.
make: *** [first] Error 255
另外,我使用的是随Vim 7.3附带的MobaXTerm
使用内置安装程序也不起作用。
mobapt
Updating packages list, please wait...
Installing vim
/bin/apt-cyg install vim
Found package vim
Downloading vim-8.0.0494-1.tar.xz...
Downloading /home/mobaxterm/.aptcyg/http%3a%2f%2fmirrors.kernel.org%2fsourceware%2fcygwin/release/vim/vim-8.0.0494-1.tar.xz using Windows internet settings
sha512sum: can't open 'vim-8.0.0494-1.tar.xz': No such file or directory
/bin/apt-cyg: line 476: test: 66691247e5715e05e96098f47174b13d7e0ab3027f1c3f0c325ee24804f9d72c64c617fbecf4f3fe8d8ca41ebc09ba67b82a62a0c7bd25f0c763f0236bc13751: unary operator expected
md5sum: can't open 'vim-8.0.0494-1.tar.xz': No such file or directory
/bin/apt-cyg: line 479: test: 66691247e5715e05e96098f47174b13d7e0ab3027f1c3f0c325ee24804f9d72c64c617fbecf4f3fe8d8ca41ebc09ba67b82a62a0c7bd25f0c763f0236bc13751: unary operator expected
Checksum did not match, exiting
答案 0 :(得分:1)
src下有configure
个脚本。您需要在运行make
之前运行它。
configure
脚本会创建由config.mk
使用的make
文件。
如果有帮助,请告诉我。