安装vim make[2]: Leaving directory `rootvim72srcxxd'

安装vim make[2]: Leaving directory `rootvim72srcxxd',第1张

您给的信息里没有错误。根据源代码的结构,make 会在许多子文件夹里执行编译,其间会频繁进出那些文件夹,您给的信息里 Leaving directory 就是说离开了那个子文件夹,这是正常会显示的内容。如果有其它编译错误,请给出相关的错误提示。
后来也 make install 了,编译出来的东西能执行么?
另外,虽然您可能已经知道了,这些指令是顺序执行的。后一步要以前一步正确执行为前提。比如 configure 如果报错了,要先解决它提示的问题,然后重新 configure 一次,直到通过才能继续做下一步。
有时候通过也未必就是没错了,make 出问题,依然有可能是 configure 背后的隐藏错误。
您可以尝试在把源代码考到自己的 home 文件下,然后执行编译。生成可执行文件后,先运行看看,没问题再用 root 权限安装到系统目录下。这是通常的做法,能避免一些潜在的问题。

如果vimtutor不在PATH环境变量里,那应该是没有正确配置好vim
还有可能是vimtutor可执行文件丢了
最坏的可能是vim安装的时候没有正确编译,少了东西
vimtutor 是个bash脚本,我的是fedora系统,在/usr/bin的默认里面
为了防止你没有这个文件,我干脆把它拷贝到这里算了,似乎不犯法……
如果是最坏的那个情况,就没辙了
别忘了chmod u+x 以及检查路径
#! /bin/sh
# Start Vim on a copy of the tutor file
# Usage: vimtutor [xx], where xx is a language code like "es" or "nl"
# When an argument is given, it tries loading that tutor
# When this fails or no argument was given, it tries using 'v:lang'
# When that also fails, it uses the English version
xx=$1
export xx
# We need a temp file for the copy First try using a standard command
tmp="${TMPDIR-/tmp}"
TUTORCOPY=`mktemp $tmp/tutorXXXXXX || tempfile -p tutor || echo none`
# If the standard commands failed then create a directory to put the copy in
# That is a secure way to make a temp file
if test "$TUTORCOPY" = none; then
tmpdir=$tmp/vimtutor$$
OLD_UMASK=`umask`
umask 077
getout=no
mkdir $tmpdir || getout=yes
umask $OLD_UMASK
if test $getout = yes; then
echo "Could not create directory for tutor copy, exiting"
exit 1
fi
TUTORCOPY=$tmpdir/tutorcopy
touch $TUTORCOPY
TODELETE=$tmpdir
else
TODELETE=$TUTORCOPY
fi
export TUTORCOPY
# remove the copy of the tutor on exit
trap "rm -rf $TODELETE" 0 1 2 3 9 11 13 15
# Vim could be called "vim" or "vi" Also check for "vim6", for people who
# have Vim 5x installed as "vim" and Vim 60 as "vim6"
testvim=`which vim6 2>/dev/null`
if test -f "$testvim"; then
VIM=vim6
else
testvim=`which vim`
if test -f "$testvim"; then
VIM=vim
else
VIM=vi
fi
fi
# Use Vim to copy the tutor, it knows the value of $VIMRUNTIME
# The script tutorvim tells Vim which file to copy
$VIM -u NONE -c 'so $VIMRUNTIME/tutor/tutorvim'
# Start vim without any vimrc, set 'nocompatible'
$VIM -u NONE -c "set nocp" $TUTORCOPY
# End of vimtutor


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/13372670.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-07-23
下一篇 2023-07-23

发表评论

登录后才能评论

评论列表(0条)

保存