互联网上有很多关于此问题的帖子,但我还没有找到适合我的情况的解决方案。
这是我迄今为止尝试过的:
下载 vim
./configure
给出
You need to install a terminal library; for example ncurses.
Or specify the name of the library with --with-tlib.
- 尝试安装 ncurses 但当
make
时我遇到了
collect2: ld returned 1 exit status
gnatlink: error when calling /usr/bin/gcc
gnatmake: *** link failed.
- 我其实发现系统里有
/usr/lib64/libncurses.so
/usr/lib64/libncursesw.so
所以我尝试使用 LD_LIBRARY_PATH 和 LIBRARY_PATH,但没有成功。
有什么建议吗?
最佳答案
正如 Kaz 在上面的评论中猜测的那样,ncurses 的 ./configure
中确实有 --without-ada
选项来禁用 Ada 构建。这使我能够安装 ncurses 以及 vim!
关于vim - 无需root权限安装vim,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60121505/