LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1193|回复: 7

如何才能支持UTF-8?

[复制链接]
发表于 2005-10-1 02:46:51 | 显示全部楼层 |阅读模式
升级出错如下
gentoo:/# emerge world
Calculating world dependencies ...done!
>>> emerge (1 of 95) app-editors/nano-1.3.8 to /
>>> md5 files   ;-) nano-1.2.5.ebuild
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) metadata.xml
>>> md5 files   ;-) nano-1.3.4.ebuild
>>> md5 files   ;-) nano-1.3.6.ebuild
>>> md5 files   ;-) nano-1.3.7.ebuild
>>> md5 files   ;-) nano-1.3.8.ebuild
>>> md5 files   ;-) files/nano-1.3.6-debug-typo.patch
>>> md5 files   ;-) files/1.3.4-nanobrack.patch
>>> md5 files   ;-) files/1.3.4-nomac.patch
>>> md5 files   ;-) files/digest-nano-1.2.5
>>> md5 files   ;-) files/digest-nano-1.3.4
>>> md5 files   ;-) files/digest-nano-1.3.6
>>> md5 files   ;-) files/digest-nano-1.3.7
>>> md5 files   ;-) files/digest-nano-1.3.8
>>> md5 files   ;-) files/nano-1.3.6-nomac.patch
>>> md5 files   ;-) files/nano-1.3.8-rep.patch
>>> md5 files   ;-) files/nanorc-gentoo
>>> md5 files   ;-) files/nanorc-sh
>>> md5 files   ;-) files/nano-1.3.8-display.patch
>>> md5 src_uri ;-) nano-1.3.8.tar.gz
>>> Unpacking source...
>>> Unpacking nano-1.3.8.tar.gz to /var/tmp/portage/nano-1.3.8/work
* Applying nano-1.3.8-rep.patch ...                                      [ ok ] * Applying nano-1.3.8-display.patch ...                                  [ ok ]>>> Source unpacked.
* econf: updating nano-1.3.8/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating nano-1.3.8/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --bindir=/bin --enable-color --enable-multibuffer --enable-nanorc --enable-spell --disable-justify --disable-debug --enable-nls --enable-utf8 --without-slang
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking whether ln -s works... yes
checking for library containing strerror... none required
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for regex.h... (cached) yes
checking for broken regexec from glibc 2.2.3... no
configure: WARNING:
***********************************************************************
*** WARNING: Color support is far from perfect, but functional.     ***
*** Be careful with syntax in your .nanorc or nano may malfunction. ***
***********************************************************************

checking whether to enable UTF-8 support... yes
checking whether to use slang... no
checking for getdelim... yes
checking for getline... yes
checking for isblank... yes
checking for snprintf... yes
checking for strcasecmp... yes
checking for strcasestr... yes
checking for strncasecmp... yes
checking for strnlen... yes
checking for vsnprintf... yes
checking for iswalnum... yes
checking for iswblank... yes
checking for iswpunct... yes
checking for iswspace... yes
checking for mblen... yes
checking for mbstowcs... yes
checking for mbtowc... yes
checking for wctomb... yes
checking for wcwidth... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for getopt_long... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for get_wch in -lncursesw... no
checking for initscr in -lncurses... yes
Using ncurses as the curses library
checking for use_default_colors in -lncurses... yes
configure: error:
*** UTF-8 support was requested, but insufficient UTF-8 support was
*** detected in your curses and/or C libraries.  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.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/nano-1.3.8/work/nano-1.3.8/config.log

!!! ERROR: app-editors/nano-1.3.8 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

gentoo:/#
 楼主| 发表于 2005-10-1 02:48:48 | 显示全部楼层
附上我的配置文件
gentoo:/# cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O3 -pipe -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
ACCEPT_KEYWORDS="~x86"
AUTOCLEAN="yes"
#DISTDIR="/data/distfiles/"
#PORTDIR_OVERLAY="/usr/local/portage"
GENTOO_MIRRORS="ftp://ftp.sjtu.edu.cn/gentoo ftp://ftp.tsinghua.edu.cn/mirror/gentoo"
#GENTOO_MIRRORS="ftp://ftp.tsinghua.edu.cn/mirror/gentoo"
SYNC="rsync://ftp.tsinghua.edu.cn/gentoo/gentoo-portage"
USE="-3dfx -3dnow
a52 aac aalib -accessibility  acpi  -aim alsa  apache  apache2 -apm arts  audiofile  avi
bash-completion   -bluetooth bmp  bzip2 bzlib
-cdr cjk   -cups
dga -diet  directfb  -doc -dv dvb -dvd -dvdr -dvdread
emacs
fam  fbcon  ffmpeg  freetype  ftp
gif  gnome  -gphoto2 gpm -gps gstreamer gtk gtk2  gtkhtml
icq -ieee1394  ipv6 -i8x0
-joystick jpeg
kde
-lirc linguas_zh_CN livecd live lcd
mozilla mod_php mp3 mpeg  msn mysql
-netboot nls nocd  network nvidia
opengl  oss
pcmcia -pda   png pnp php
quicktime qt qtmt
real rtc
-samba  -slp -smartcard  ssl  stroke svg -symlink
truetype -trusted
unicode  usb
vcd
-wifi wmv win32codecs
X  xine xinerama xml xmms xpm -xprint
-yahoo
zlib "




gentoo:/#
回复 支持 反对

使用道具 举报

发表于 2005-10-1 10:30:35 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-1 15:13:31 | 显示全部楼层
谢谢 nait 问题已经解决了
新建了/etc/env.d/02locale
内容是
LC_ALL="en_GB.UTF-8"
回复 支持 反对

使用道具 举报

发表于 2005-10-2 12:37:51 | 显示全部楼层
Post by roryliu
谢谢 nait 问题已经解决了
新建了/etc/env.d/02locale
内容是
LC_ALL="en_GB.UTF-8"


en_GB,不懂,还请指点下
回复 支持 反对

使用道具 举报

发表于 2005-10-2 15:35:40 | 显示全部楼层
呵呵!有点乱吃药把病治好的味道
回复 支持 反对

使用道具 举报

发表于 2005-10-3 04:45:41 | 显示全部楼层
这样的标题破坏版面整洁
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-6 17:44:47 | 显示全部楼层
就是参考


http://www.gentoo.org/doc/en/utf-8.xml

解决的哦

那个en_GB确实存在阿 不过大家都用en_US而已
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表