LinuxSir.cn,穿越时空的Linuxsir!

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

[已解决]最近更新了系统,出现错误,请大家帮肋!

[复制链接]
发表于 2009-8-8 16:11:56 | 显示全部楼层 |阅读模式
大家好,最近更新了系统,KDE所有的程序都不能用了。出现如下错误,向大家求肋!


  1. >>> Emerging (3 of 11) www-client/opera-10.00_pre449
  2. 'ascii' codec can't encode characters in position 13-15: ordinal not in range(128):
  3.    /bin/bash -c touch "/usr/portage/distfiles/.__portage_test_write__" 2>/dev/null ; rval=$? ; rm -f  "/usr/portage/distfiles/.__portage_test_write__" ; exit $rval
  4. * opera-10.00-b2.gcc4-bundled-qt4.i386.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                      [ ok ]
  5. * checking ebuild checksums ;-) ...                                                                                 [ ok ]
  6. * checking auxfile checksums ;-) ...                                                                                [ ok ]
  7. * checking miscfile checksums ;-) ...                                                                               [ ok ]
  8. 'ascii' codec can't encode characters in position 13-15: ordinal not in range(128):
  9.    /bin/bash -c "/usr/lib/portage/bin/ebuild.sh" clean
复制代码


  1. >>> Emerging (6 of 11) media-video/mplayer-1.0_rc2_p20090731
  2. 'ascii' codec can't encode characters in position 53-55: ordinal not in range(128):
  3.    /bin/bash -c touch "/usr/portage/distfiles/.__portage_test_write__" 2>/dev/null ; rval=$? ; rm -f  "/usr/portage/distfiles/.__portage_test_write__" ; exit $rval
  4. 'ascii' codec can't encode characters in position 53-55: ordinal not in range(128):
  5.    /bin/bash -c touch "/usr/portage/distfiles/.locks/.__portage_test_write__" 2>/dev/null ; rval=$? ; rm -f  "/usr/portage/distfiles/.locks/.__portage_test_write__" ; exit $rval
  6. * mplayer-1.0_rc2_p20090731.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                 [ ok ]
  7. * checking ebuild checksums ;-) ...                                                                                 [ ok ]
  8. * checking auxfile checksums ;-) ...                                                                                [ ok ]
  9. * checking miscfile checksums ;-) ...                                                                               [ ok ]
  10. 'ascii' codec can't encode characters in position 53-55: ordinal not in range(128):
  11.    /bin/bash -c "/usr/lib/portage/bin/ebuild.sh" clean
复制代码


  1. >>> Emerging (2 of 5) dev-util/subversion-1.6.4-r10
  2. * subversion-1.6.4.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                          [ ok ]
  3. * checking ebuild checksums ;-) ...                                                                                 [ ok ]
  4. * checking auxfile checksums ;-) ...                                                                                [ ok ]
  5. * checking miscfile checksums ;-) ...                                                                               [ ok ]
  6. *
  7. * SVN_BDB_VERSION variable isn't set. You can set it to enforce using of specific version of Berkeley DB.
  8. * Using: Berkeley DB 4.7
  9. *
  10. >>> Unpacking source...
  11. >>> Unpacking subversion-1.6.4.tar.bz2 to /var/tmp/portage/dev-util/subversion-1.6.4-r10/work
  12. >>> Source unpacked in /var/tmp/portage/dev-util/subversion-1.6.4-r10/work
  13. >>> Preparing source in /var/tmp/portage/dev-util/subversion-1.6.4-r10/work/subversion-1.6.4 ...
  14. * Applying subversion-1.6.0-disable_linking_against_unneeded_libraries.patch ...                                     [ ok ]
  15. * Applying subversion-1.6.2-local_library_preloading.patch ...                                                       [ ok ]
  16. * Applying subversion-1.6.3-apache-2.4.patch ...                                                                     [ ok ]
  17. * Applying subversion-1.6.3-kwallet_window.patch ...                                                                 [ ok ]
  18. * Running autoconf ...                                                                                               [ ok ]
  19. * Running elibtoolize in: subversion-1.6.4/build
  20. *   Applying portage-1.5.10.patch ...
  21. *   Applying sed-1.5.6.patch ...
  22. *   Applying as-needed-1.5.26.patch ...
  23. >>> Source prepared.
  24. >>> Configuring source in /var/tmp/portage/dev-util/subversion-1.6.4-r10/work/subversion-1.6.4 ...
  25. * econf: updating subversion-1.6.4/build/config.guess with /usr/share/gnuconfig/config.guess
  26. * econf: updating subversion-1.6.4/build/config.sub with /usr/share/gnuconfig/config.sub
  27. ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib --without-apxs --with-berkeley-db=db.h:/usr/include/db4.7::db-4.7 --without-ctypesgen --enable-runtime-module-search --without-gnome-keyring --disable-javahl --without-jdk --with-kwallet --enable-nls --without-sasl --with-neon --without-serf --with-swig --with-apr=/usr/bin/apr-1-config --with-apr-util=/usr/bin/apu-1-config --disable-experimental-libtool --without-jikes --enable-local-library-preloading --disable-mod-activation --disable-neon-version-check --with-sqlite=/usr
  28. configure: Configuring Subversion 1.6.4
  29. configure: creating config.nice
  30. checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
  31. checking for C compiler default output file name... a.out
  32. checking whether the C compiler works... yes
  33. checking whether we are cross compiling... no
  34. checking for suffix of executables...
  35. checking for suffix of object files... o
  36. checking whether we are using the GNU C compiler... yes
  37. checking whether i686-pc-linux-gnu-gcc accepts -g... yes
  38. checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
  39. checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
  40. checking whether we are using the GNU C++ compiler... yes
  41. checking whether i686-pc-linux-gnu-g++ accepts -g... yes
  42. checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
  43. checking build system type... i686-pc-linux-gnu
  44. checking host system type... i686-pc-linux-gnu
  45. checking target system type... i686-pc-linux-gnu
  46. checking for grep that handles long lines and -e... /bin/grep
  47. checking for egrep... /bin/grep -E
  48. checking whether ln -s works... yes
  49. checking for a BSD-compatible install... /usr/bin/install -c
  50. configure: Apache Portable Runtime (APR) library configuration
  51. checking for APR... yes
  52. checking APR version... 1.3.8
  53. configure: Apache Portable Runtime Utility (APRUTIL) library configuration
  54. checking for APR-util... yes
  55. checking APR-UTIL version... 1.3.9
  56. checking for pkg-config... /usr/bin/pkg-config
  57. configure: checking neon library
  58. checking neon library version... 0.28.5
  59. checking for ANSI C header files... yes
  60. checking for sys/types.h... yes
  61. checking for sys/stat.h... yes
  62. checking for stdlib.h... yes
  63. checking for string.h... yes
  64. checking for memory.h... yes
  65. checking for strings.h... yes
  66. checking for inttypes.h... yes
  67. checking for stdint.h... yes
  68. checking for unistd.h... yes
  69. configure: serf library configuration
  70. checking serf.h usability... no
  71. checking serf.h presence... no
  72. checking for serf.h... no
  73. configure: looking for apr_memcache as part of apr-util
  74. checking apr_memcache.h usability... yes
  75. checking apr_memcache.h presence... yes
  76. checking for apr_memcache.h... yes
  77. checking for apr_memcache_create in -laprutil-1... yes
  78. checking for Apache module support via DSO through APXS... no
  79. ==================================================================
  80. WARNING: skipping the build of mod_dav_svn
  81.          try using --with-apxs
  82. ==================================================================
  83. configure: checking sqlite library
  84. checking sqlite3.h usability... yes
  85. checking sqlite3.h presence... yes
  86. checking for sqlite3.h... yes
  87. checking sqlite library version (via header)... okay
  88. checking for sqlite3_close in -lsqlite3... yes
  89. configuring libtool now
  90. checking for a sed that does not truncate output... /bin/sed
  91. checking for ld used by i686-pc-linux-gnu-gcc... /usr/i686-pc-linux-gnu/bin/ld
  92. checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
  93. checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
  94. checking for BSD-compatible nm... /usr/bin/nm -B
  95. checking how to recognize dependent libraries... pass_all
  96. checking dlfcn.h usability... yes
  97. checking dlfcn.h presence... yes
  98. checking for dlfcn.h... yes
  99. checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E
  100. checking for i686-pc-linux-gnu-g77... no
  101. checking for i686-pc-linux-gnu-xlf... no
  102. checking for i686-pc-linux-gnu-f77... no
  103. checking for i686-pc-linux-gnu-frt... no
  104. checking for i686-pc-linux-gnu-pgf77... no
  105. checking for i686-pc-linux-gnu-cf77... no
  106. checking for i686-pc-linux-gnu-fort77... no
  107. checking for i686-pc-linux-gnu-fl32... no
  108. checking for i686-pc-linux-gnu-af77... no
  109. checking for i686-pc-linux-gnu-xlf90... no
  110. checking for i686-pc-linux-gnu-f90... no
  111. checking for i686-pc-linux-gnu-pgf90... no
  112. checking for i686-pc-linux-gnu-pghpf... no
  113. checking for i686-pc-linux-gnu-epcf90... no
  114. checking for i686-pc-linux-gnu-gfortran... i686-pc-linux-gnu-gfortran
  115. checking whether we are using the GNU Fortran 77 compiler... yes
  116. checking whether i686-pc-linux-gnu-gfortran accepts -g... yes
  117. checking the maximum length of command line arguments... 1572864
  118. checking command to parse /usr/bin/nm -B output from i686-pc-linux-gnu-gcc object... ok
  119. checking for objdir... .libs
  120. checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar
  121. checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
  122. checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip
  123. checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
  124. checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC
  125. checking if i686-pc-linux-gnu-gcc PIC flag -fPIC works... yes
  126. checking if i686-pc-linux-gnu-gcc static flag -static works... yes
  127. checking if i686-pc-linux-gnu-gcc supports -c -o file.o... yes
  128. checking whether the i686-pc-linux-gnu-gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
  129. checking whether -lc should be explicitly linked in... no
  130. checking dynamic linker characteristics... GNU/Linux ld.so
  131. checking how to hardcode library paths into programs... immediate
  132. checking whether stripping libraries is possible... yes
  133. checking if libtool supports shared libraries... yes
  134. checking whether to build shared libraries... yes
  135. checking whether to build static libraries... yes
  136. configure: creating libtool
  137. appending configuration tag "CXX" to libtool
  138. checking for ld used by i686-pc-linux-gnu-g++... /usr/i686-pc-linux-gnu/bin/ld
  139. checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
  140. checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
  141. checking for i686-pc-linux-gnu-g++ option to produce PIC... -fPIC
  142. checking if i686-pc-linux-gnu-g++ PIC flag -fPIC works... yes
  143. checking if i686-pc-linux-gnu-g++ static flag -static works... yes
  144. checking if i686-pc-linux-gnu-g++ supports -c -o file.o... yes
  145. checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
  146. checking dynamic linker characteristics... GNU/Linux ld.so
  147. (cached) (cached) checking how to hardcode library paths into programs... immediate
  148. appending configuration tag "F77" to libtool
  149. checking if libtool supports shared libraries... yes
  150. checking whether to build shared libraries... yes
  151. checking whether to build static libraries... yes
  152. checking for i686-pc-linux-gnu-gfortran option to produce PIC... -fPIC
  153. checking if i686-pc-linux-gnu-gfortran PIC flag -fPIC works... yes
  154. checking if i686-pc-linux-gnu-gfortran static flag -static works... yes
  155. checking if i686-pc-linux-gnu-gfortran supports -c -o file.o... yes
  156. checking whether the i686-pc-linux-gnu-gfortran linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
  157. checking dynamic linker characteristics... GNU/Linux ld.so
  158. (cached) (cached) checking how to hardcode library paths into programs... immediate
  159. checking whether libtool needs -no-undefined... no
  160. checking whether to avoid circular linkage at all costs... no
  161. checking for trang... none
  162. checking for socket in -lsocket... no
  163. checking for availability of Berkeley DB... yes
  164. checking whether to look for SASL... no
  165. checking for Mac OS KeyChain Services... no
  166. checking whether APR has support for DSOs... yes
  167. checking for D-Bus .pc file... yes
  168. checking D-Bus version... 1.3.0
  169. checking for D-Bus... yes
  170. checking whether to look for GNOME Keyring... no
  171. checking for msgfmt... /usr/bin/msgfmt
  172. checking for msgmerge... /usr/bin/msgmerge
  173. checking for xgettext... /usr/bin/xgettext
  174. checking for library containing bindtextdomain... none required
  175. checking for bind_textdomain_codeset... yes
  176. checking if we are using GNU gettext... yes
  177. checking whether to look for KWallet... yes
  178. checking for QtCore, QtDBus, QtGui... yes
  179. checking for kde4-config... yes
  180. checking for KWallet... kde4-config: /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libkdecore.so.5)
  181. kde4-config: /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libkdecore.so.5)
  182. no
  183. configure: error: cannot find KWallet

  184. !!! Please attach the following file when seeking support:
  185. !!! /var/tmp/portage/dev-util/subversion-1.6.4-r10/work/subversion-1.6.4/config.log
  186. *
  187. * ERROR: dev-util/subversion-1.6.4-r10 failed.
  188. * Call stack:
  189. *               ebuild.sh, line   49:  Called src_configure
  190. *             environment, line 6362:  Called econf '--libdir=/usr/lib' '--without-apxs' '--with-berkeley-db=db.h:/usr/include/db4.7::db-4.7' '--without-ctypesgen' '--enable-runtime-module-search' '--without-gnome-keyring' '--disable-javahl' '--without-jdk' '--with-kwallet' '--enable-nls' '--without-sasl' '--with-neon' '--without-serf' '--with-swig' '--with-apr=/usr/bin/apr-1-config' '--with-apr-util=/usr/bin/apu-1-config' '--disable-experimental-libtool' '--without-jikes' '--enable-local-library-preloading' '--disable-mod-activation' '--disable-neon-version-check' '--with-sqlite=/usr'
  191. *               ebuild.sh, line  536:  Called die
  192. * The specific snippet of code:
  193. *                      die "econf failed"
  194. *  The die message:
  195. *   econf failed
  196. *
  197. * If you need support, post the topmost build error, and the call stack if relevant.
  198. * A complete build log is located at '/var/tmp/portage/dev-util/subversion-1.6.4-r10/temp/build.log'.
  199. * The ebuild environment file is located at '/var/tmp/portage/dev-util/subversion-1.6.4-r10/temp/environment'.
  200. *
  201. !!! When you file a bug report, please include the following information:
  202. GENTOO_VM=  CLASSPATH=".:/usr/lib/jvm/sun-jdk-1.6/lib" JAVA_HOME="/usr/lib/jvm/sun-jdk-1.6/"
  203. JAVACFLAGS="" COMPILER=""
  204. and of course, the output of emerge --info

  205. >>> Failed to emerge dev-util/subversion-1.6.4-r10, Log file:

  206. >>>  '/var/tmp/portage/dev-util/subversion-1.6.4-r10/temp/build.log'

  207. * Messages for package net-print/hplip-3.9.4b-r1:

  208. * You should run hp-setup as root if you are installing hplip for the first time, and may also
  209. * need to run it if you are upgrading from an earlier version.
  210. *
  211. * If your device is connected using USB, users will need to be in the lp group to access it.
  212. *
  213. * This release doesn't use an init script anymore, so you should probably do a
  214. * 'rc-update del hplip' if you are updating from an old version.

  215. * Messages for package dev-util/subversion-1.6.4-r10:

  216. *
  217. * ERROR: dev-util/subversion-1.6.4-r10 failed.
  218. * Call stack:
  219. *               ebuild.sh, line   49:  Called src_configure
  220. *             environment, line 6362:  Called econf '--libdir=/usr/lib' '--without-apxs' '--with-berkeley-db=db.h:/usr/include/db4.7::db-4.7' '--without-ctypesgen' '--enable-runtime-module-search' '--without-gnome-keyring' '--disable-javahl' '--without-jdk' '--with-kwallet' '--enable-nls' '--without-sasl' '--with-neon' '--without-serf' '--with-swig' '--with-apr=/usr/bin/apr-1-config' '--with-apr-util=/usr/bin/apu-1-config' '--disable-experimental-libtool' '--without-jikes' '--enable-local-library-preloading' '--disable-mod-activation' '--disable-neon-version-check' '--with-sqlite=/usr'
  221. *               ebuild.sh, line  536:  Called die
  222. * The specific snippet of code:
  223. *                      die "econf failed"
  224. *  The die message:
  225. *   econf failed
  226. *
  227. * If you need support, post the topmost build error, and the call stack if relevant.
  228. * A complete build log is located at '/var/tmp/portage/dev-util/subversion-1.6.4-r10/temp/build.log'.
  229. * The ebuild environment file is located at '/var/tmp/portage/dev-util/subversion-1.6.4-r10/temp/environment'.
  230. *

  231. * GNU info directory index is up-to-date.
复制代码
发表于 2009-8-8 17:11:53 | 显示全部楼层
第三个提示checking for KWallet是找不到KWallet包。解决的话试试emerge -av KWallet
这个包偶没安装过。你试试,要找不到的话eix kwallet 看看

前两个问题貌似是ascii codec的问题,等待大牛来解
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-9 18:36:52 | 显示全部楼层
Post by 独钓寒江雪;2014145
第三个提示checking for KWallet是找不到KWallet包。解决的话试试emerge -av KWallet
这个包偶没安装过。你试试,要找不到的话eix kwallet 看看

前两个问题貌似是ascii codec的问题,等待大牛来解


应该不是KWallet的问题,主要是这个:

  1. /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libkdecore.so.5)
复制代码

Google好像是说:Gcc多版本时,Gcc-config出现的问题,但我不知道要怎么解决?

  1. # ls -l /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libstdc++.so.*
  2. lrwxrwxrwx 1 root root     19 2009-08-09 02:50 /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libstdc++.so.6 -> libstdc++.so.6.0.10
  3. -rwxr-xr-x 1 root root 950312 2009-08-09 02:49 /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libstdc++.so.6.0.10

  4. # ls -l /usr/lib/libkdecore.so*
  5. lrwxrwxrwx 1 root root      15 2009-08-03 06:42 /usr/lib/libkdecore.so -> libkdecore.so.5
  6. lrwxrwxrwx 1 root root      19 2009-08-03 06:42 /usr/lib/libkdecore.so.5 -> libkdecore.so.5.2.0
  7. -rwxr-xr-x 1 root root 2332176 2009-08-03 06:42 /usr/lib/libkdecore.so.5.2.0
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-8-9 19:34:49 | 显示全部楼层
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libkdecore.so.5)

这个问题你要换gcc,换到gcc 4.4

gcc-config
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-9 19:51:57 | 显示全部楼层
哦,多谢版主回复,我以前用gcc-4.4.1,有的软件编译通不过,就降级回4.3.3,删了4.4.1,
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-12 00:08:09 | 显示全部楼层
几天没来,第三个问题安装了Gcc-4.4.1后解决了,第一、第二个问题还没有解决,继续寻求大家帮助!
回复 支持 反对

使用道具 举报

发表于 2009-8-12 01:47:49 | 显示全部楼层
emerge --info
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-13 11:20:43 | 显示全部楼层
今天更新了系统,没有出现这个问题了!
回复 支持 反对

使用道具 举报

发表于 2009-8-13 16:21:41 | 显示全部楼层
請教一下。這個問題是官方網站上Planet里 這篇文章 的安裝過gcc-4.4再降回到之前版本的問題嗎?
回复 支持 反对

使用道具 举报

发表于 2010-6-9 11:57:29 | 显示全部楼层
参考:http://www.qtchina.net/bug/view.php?id=177

打开openoffice时遇到类似问题无法打开程序:
  1. #oobase
  2. /usr/lib64/openoffice/program/soffice.bin: /usr/lib64/openoffice/program/libstdc++.so.6:
  3. version `GLIBCXX_3.4.11' not found (required by /usr/lib64/openoffice/program/../basis-link/program/libbasegfxlx.so)
复制代码

查看/usr/lib64/openoffice/program/libstdc++.so.6指向:
  1. #ls -l /usr/lib64/openoffice/program/libstdc++.so.6
  2. lrwxrwxrwx 1 root root     58  6月  9 11:42 libstdc++.so.6 -> /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/libstdc++.so.6.0.10
复制代码
多个gcc,指向了4.3.3的

重新ln,使其指向4.4.3
  1. #cd /usr/lib64/openoffice/program
  2. #ln -snf /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libstdc++.so.6.0.13 libstdc++.so.6
  3. Gentoo program # ls -l
  4. lrwxrwxrwx 1 root root     58  6月  9 11:42 libstdc++.so.6 -> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libstdc++.so.6.0.13
复制代码

openoffice正常启动了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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