LinuxSir.cn,穿越时空的Linuxsir!

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

安装 Glibc-2.2.5遇到的问题

[复制链接]
发表于 2003-1-1 16:38:01 | 显示全部楼层 |阅读模式
patch -Np1 -i ../glibc-2.2.5-2.patch &&
touch /etc/ld.so.conf &&
mkdir ../glibc-build &&
cd ../glibc-build &&
../glibc-2.2.5/configure --prefix=/usr --disable-profile \
    --enable-add-ons --libexecdir=/usr/bin &&
echo "cross-compiling = no" > configparms &&
make &&
make install &&
make localedata/install-locales &&
exec /static/bin/bash --login
的时候说:
patching file login/Makefile
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file login/Makefile.rej
patching file malloc/Makefile
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file malloc/Makefile.rej
patching file iconv/skeleton.c
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file iconv/skeleton.c.rej
can't find file to patch at input line 83
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uNr glibc-2.2.5.orig/linuxthreads/signals.c glibc-2.2.5/linuxthreads/signals.c
|--- glibc-2.2.5.orig/linuxthreads/signals.c        2002-01-21 14:21:16.000000000 +1100
|+++ glibc-2.2.5/linuxthreads/signals.c        2002-08-10 09:24:57.000000000 +1000
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
patching file malloc/malloc.c
patching file posix/regex.h
patching file resolv/nss_dns/dns-network.c
patching file sunrpc/xdr_array.c
patching file sysdeps/i386/Makefile
patching file sysdeps/i386/fpu/libm-test-ulps
patching file sysdeps/m68k/Makefile
patching file sysdeps/s390/s390-32/Makefile
patching file sysdeps/unix/sysv/linux/errlist.c
patching file sysdeps/wordsize-32/divdi3.c


那么补丁打上了没有?我察看了一下,好像原来已经补丁过了。

还有问题:
说:
*** on GNU/linux systems, it is normal ot complie GNU libc with the
***'linuxthreads' add-on. Without that, the library will be
***incompatible with normal GNU/Linux systems.
***If you really mean to not use this add-on, run configure again
*** using the extra parameter '--disable-sanity -echecks'.

我不是已经允许了add-ons了吗?

还有那个glibc-linuxthreads-2.2.5.tar.bz2什么时候用?也是这个时候吗?本目录解压缩?
发表于 2003-1-1 16:44:32 | 显示全部楼层
在安装glibc前,你必须在glibc-2.2.5 目录而不是/usr/src下将glibc-linuxthreads解包
 楼主| 发表于 2003-1-1 16:52:08 | 显示全部楼层
谢谢!
谢谢各位热心的朋友。  
这个论坛太好了。
发表于 2003-1-1 16:54:14 | 显示全部楼层
呵呵,以后有空的时候多上来交流交流,有心得与大家共享一下
 楼主| 发表于 2003-1-1 17:00:09 | 显示全部楼层
还是遇到错误:
    make[2]: *** [/static/src/glibc-build/bits/stdio_lim.st] Error 1
make[1]:***[csu/subir_lib] Error 2


在安装glibc前,你必须在glibc-2.2.5 目录而不是/usr/src下将glibc-linuxthreads解包
   ~~~~
怎么会和这个联系上呢?是不是要把glibc-2.2.5解压缩到/usr/src下面,同时把thread解压缩到glibc-2.2.5下面?
发表于 2003-1-1 17:03:59 | 显示全部楼层
安装glibc的过程是这样的:
先把glibc-2.2.5的那个包解压。
然后把glibc-linuxthreads的那个包拷贝到glibc-2.2.5解压后生成的目录里。进入这个目录,再把glibc-linuxthreads解压。
最后就是打patch那些的,就是拷贝命令就行了。
你可能是上次打patch的时候,没有解压linuxthreads,有的没打上。把整个目录删了,再来一次就行了。
发表于 2003-1-1 20:52:23 | 显示全部楼层
tram要考研了,还这样关心碰到困难的兄弟,真是难得!:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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