nano 3.2总是在没有nls的情况下编译


0

我正在运行macOS 10.14和zsh。

我注意到默认安装了nano 2.0并缺少一些功能。所以,我尝试编译并安装最新版本(3.2)。

这工作正常,除了两件事:
- 它总是在没有nls的情况下编译。
- 它总是在没有utf-8支持的情况下编译。

nano --version
GNU nano, version 3.2
(C) 1999-2011, 2013-2018 Free Software Foundation, Inc.
(C) 2014-2018 the contributors to nano
Email: nano@nano-editor.org Web: https://nano-editor.org/
Compiled options: --disable-libmagic --disable-nls --disable-utf8

在配置期间,它确实发出了关于utf-8的警告,所以它确实有意义,即禁用utf-8支持。

configure: WARNING:
*** Insufficient UTF-8 support was detected in your curses and/or C
*** libraries.  If you want UTF-8 support, please verify that your slang
*** was built with UTF-8 support or your curses was built with wide
*** character support, and that your C library was built with wide
*** character support.

解决这个问题的正确方法是什么?我真的希望nls支持工作。

Answers:


1

我遇到了同样的问题 这篇日文文章 帮助过我。

虽然我无法理解任何事情,但我至少能够按照所需的步骤进行操作。基本上,您缺少一个名为ncurses的库。所以,在编译nano之前你应该安装它:

wget http://ftp.gnu.org/gnu/ncurses/ncurses-6.0.tar.gz
tar -xzvf ncurses-6.0.tar.gz
cd ./ncurses-6.0
./configure --with-shared --enable-widec
make
make install

然后你像以前一样配置和安装nano:

cd ../nano-3.2
./configure --enable-all --enable-utf8
make
make install

谢谢回复。我明天会试试,看看它是否有效。
Woulei

刚试过,似乎没有工作。
Woulei
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.