linux - 我编译安装vim7.4时出现问题

标签 linux vim

当我编译并安装 vim 7.4 时,出现一些错误。步骤如下:

./configure --prefix=/home/user/.opt/vim74 --with-features=huge --enable-netbeans --enable-multibyte
make
make install

当我执行命令'make'时,我得到以下错误信息。

make[1]: execvp: echo: Permission denied

make[1]: [auto/pathdef.c] Error 127 (ignored)

......

make[2]: Leaving directory `/home/user/src/vim74/src/po'

make[2]: Entering directory `/home/user/src/vim74/src/po'

make[2]: Nothing to be done for `converted'.

make[2]: Leaving directory `/home/user/src/vim74/src/po'

make[1]: Leaving directory `/home/user/src/vim74/src'

命令“make install”给了我以下错误。

......

installing /home/user/.opt/vim74/share/man/man1/vim.1

installing /home/user/.opt/vim74/share/man/man1/vimtutor.1

installing /home/user/.opt/vim74/share/man/man1/vimdiff.1

installing /home/user/.opt/vim74/share/man/man1/evim.1

make[1]: execvp: echo: Permission denied

make[1]: * [installrtbase] Error 127

make[1]: Leaving directory `/home/user/src/vim74/src'

make: * [install] Error 2

我没有 root 权限,也不是 sudoer 我该如何解决这个问题?

最佳答案

是ubuntu吗?如果是,只需安装

sudo apt-get install xorg-dev
./configure \
    --enable-perlinterp=dynamic \
    --enable-pythoninterp=dynamic \
    --enable-rubyinterp=dynamic \
    --enable-cscope \
    --enable-gui=auto \
    --enable-gtk2-check \
    --enable-gnome-check \
    --with-features=huge \
    --with-x \
    --with-python-config-dir=/usr/lib/python2.6/config

then

make && sudo make install

这应该启用 x11 和剪贴板支持,已在 ubuntu10.04 下验证。

关于linux - 我编译安装vim7.4时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18199224/

相关文章:

vim - 如何在 YouCompleteMe 弹出菜单中使用 <c-y> 扩展 UltiSnips 片段?

linux - Dartium 在 LMDE 上启动失败

vim - 测试 (boolean) 选项值的 vim 脚本语法是什么?

vim - 在替换模式下粘贴

c - 在 c system() 之前执行 printf() 即使 printf 先出现

python - 在 Vim 中更改 Python for 循环的颜色

vim - "Unable to create Ubuntu Menu Proxy"在 Ubuntu 中使用 GVim

c++ - features.h 未找到 solus linux,它是什么以及我如何获得它?

php - 如何避免 php 进入某个目录?

sql-server - 复制 SQL Server 2016 数据库的内容