LinuxSir.cn,穿越时空的Linuxsir!

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

emerge安装KDE时候sqlite-3.6.17出现错误

[复制链接]
发表于 2009-8-15 20:08:20 | 显示全部楼层 |阅读模式
>>> Unpacking source...
>>> Unpacking sqlite-3.6.17.tar.gz to /var/tmp/portage/dev-db/sqlite-3.6.17/work
>>> Source unpacked in /var/tmp/portage/dev-db/sqlite-3.6.17/work
>>> Preparing source in /var/tmp/portage/dev-db/sqlite-3.6.17/work/sqlite-3.6.17 ...
* Applying sandbox-fix2.patch ...
  [ ok ]
* Applying sqlite-3.6.16-tkt3922.test.patch ...
  [ ok ]
* Applying sqlite-3.6.17-fix_installation.patch ...
  [ ok ]
* Removing useless C++ checks ...
  [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-db/sqlite-3.6.17/work/sqlite-3.6.17 ...
* econf: updating sqlite-3.6.17/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating sqlite-3.6.17/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-debug --enable-threadsafe --enable-cross-thread-connections --disable-tcl
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for x86_64-pc-linux-gnu-gcc... x86_64-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 x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for intptr_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uintptr_t... yes
checking for sys/types.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for usleep... yes
checking for fdatasync... yes
checking for localtime_r... yes
checking for gmtime_r... yes
checking for localtime_s... no
checking for tclsh8.4... no
checking for tclsh... no
Warning: can't find tclsh - defaulting to non-amalgamation build.
./configure: line 12322: tclsh: command not found
configure: Version set to 3.6
configure: Release set to 3.6.17
configure: Version number set to 3006017
checking whether to support threadsafe operation... yes
checking for library containing pthread_create... -lpthread
checking whether to allow connections to be shared across threads... yes
checking whether threads can override each others locks... no
checking whether to support shared library linked as release mode or not... no
checking whether to use an in-ram database for temporary tables... no
checking if executables have the .exe suffix... unknown
checking host system type... (cached) x86_64-pc-linux-gnu
checking for library containing tgetent... -lreadline
checking for readline in -lreadline... yes
checking readline.h usability... no
checking readline.h presence... no
checking for readline.h... no
checking for /usr/include/readline.h... no
checking for /usr/include/readline/readline.h... yes
checking for library containing fdatasync... none required
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sqlite3.pc
config.status: creating config.h
config.status: executing libtool commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-db/sqlite-3.6.17/work/sqlite-3.6.17 ...
make -j3 TCLLIBDIR=/usr/lib64/sqlite-3.6.17
cat ./src/sqlite.h.in | tclsh ./tool/mksqlite3h.tcl `cat ./VERSION` > sqlite3.h
i686-pc-linux-gnu-gcc  -O2 -pipe -march=i686 -pipe -o lemon ./tool/lemon.c
i686-pc-linux-gnu-gcc  -O2 -pipe -march=native -pipe -o mkkeywordhash -DSQLITE
-OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_COLUMN_METADATA ./tool/mkkeywordhash.c
/bin/sh: tclsh: command not found
make: *** [sqlite3.h] Error 127
make: *** Waiting for unfinished jobs....
cp ./src/lempar.c .
*
* ERROR: dev-db/sqlite-3.6.17 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2875:  Called die
* The specific snippet of code:
*       emake TCLLIBDIR="/usr/$(get_libdir)/${P}" || die "emake failed"
*  The die message:
*   emake failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-db/sqlite-3.6.17/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-db/sqlite-3.6.17/temp/environment'.
*
 楼主| 发表于 2009-8-15 20:10:26 | 显示全部楼层
emerge --info

Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9.1-r0, 2.6.30-gentoo-r5 i686)

=================================================================
System uname: Linux-2.6.30-gentoo-r5-i686-Genuine_Intel-R-_CPU_T2400_@_1.83GHz-with-gentoo-2.0.1 Timestamp of tree: fri, 14 Aug 2009 05:15:01 +0000

app-shells/bash: 3.2_p39
dev-lang/python: 2.5.4-r3
dev-util/ccache: 2.4-r7
dev-util/cmake: 2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/openrc: 0.4.3-r3
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.63-r1
sys-devel/automake: 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6a
virtual/os-headers: 2.6.27-r2
ACCEPT_KEYWORDS="x86 ~X86"
CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirrors.163.com/gentoo/ http://gentoo.tom.com/ http://gentoo.gg3.net" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en_US zh_CN zh_CN.UTF-8" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://mirrors.averse.net/gentoo-portage" USE="X acl alsa arts berkdb branding bzip2 cdr cli consolekit cracklib crypt cups dbus dri evdev fortran gdbm gpm iconv isdnlog kde midi mng mudflap mysql ncurses nls nptl nptlonly ntpl opengl openmp pam pcre perl pppd python qt3 qt3support qt4 readline reflection session spl sqlite ssl svg sysfs tcpd unicode webkit x86 xorg zh_CN zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US zh_CN zh_CN.UTF-8" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
回复 支持 反对

使用道具 举报

发表于 2009-8-15 21:24:27 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2009-8-15 22:02:41 | 显示全部楼层
目前的解決方法是自己手動安裝一下dev-lang/tcl。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-15 22:16:32 | 显示全部楼层
Post by 亞利艾爾;2016705
目前的解決方法是自己手動安裝一下dev-lang/tcl。


。你可以配置一下Portage让它知道某个软件包已经通过手动安装到系统中了。这个过程叫做注入”,Portage是通过/etc/portage/profile/package.provided文件来实现这个功能的。

举个例子,如果你想告诉Portage已经手动安装了gentoo-sources-2.6.11.6,那么把下面一行添加到/etc/portage/profile/package.provided文件里:

代码 3.1: package.provided范例

sys-kernel/gentoo-sources-2.6.11.6

是这样吗 ?还是直接像在REDHAT系列里通过源码包解压 ,编译,安装?

能否说清楚点?
回复 支持 反对

使用道具 举报

发表于 2009-8-15 22:48:41 | 显示全部楼层
一般tcl用不太到,直接USE里去掉就好了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-15 23:03:56 | 显示全部楼层
Post by suddenkiller;2016718
一般tcl用不太到,直接USE里去掉就好了。


是tcl这个use吗?
回复 支持 反对

使用道具 举报

发表于 2009-8-15 23:13:20 | 显示全部楼层
呵呵,我今天刚遇到,我来说说吧,最新的解决方案在这里,建议读一读。
http://bugs.gentoo.org/show_bug.cgi?id=281357
  1. #cd /usr/portage/dev-db/sqlite
复制代码
然后用vi修改sqlite-3.6.17.ebuild文件,定位到
epatch "${FILESDIR}/${P}-fix_installation.patch"
这段话,改成
use tcl && epatch "${FILESDIR}/${P}-fix_installation.patch"
保存后,
运行ebuild sqlite-3.6.17.ebuild manifest
然后重新升级就OK了。
回复 支持 反对

使用道具 举报

发表于 2009-8-15 23:16:55 | 显示全部楼层
这种方案是不需要安装tcl的,在USE中也是可以禁用tcl的。原来的ebuild文件是必须要找tcl的库的路径,修改之后就是如果USE中开启了tcl,就应用这个补丁,否则不用,这样就比较灵活了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-15 23:23:06 | 显示全部楼层
Post by ru****999;2016729
呵呵,我今天刚遇到,我来说说吧,最新的解决方案在这里,建议读一读。
http://bugs.gentoo.org/show_bug.cgi?id=281357
  1. #cd /usr/portage/dev-db/sqlite
复制代码

然后用vi修改sqlite-3.6.17.ebuild文件,定位到
epatch "${FILESDIR}/${P}-fix_installation.patch"
这段话,改成
use tcl && epatch "${FILESDIR}/${P}-fix_installation.patch"
保存后,
运行ebuild sqlite-3.6.17.ebuild manifest
然后重新升级就OK了。


谢谢 可以了 我好好研究下
这个是跟tcl编程有关的吗?
回复 支持 反对

使用道具 举报

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

本版积分规则

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