wiflish
Loving Life! Loving Coding!
posts - 98,comments - 98,trackbacks - 0

编译安装glibc
下载glibc
wget  http://ftp.gnu.org/gnu/glibc/glibc-2.3.2.tar.gz

下载glibc-linuxthreads
wget http://ftp.gnu.org/gnu/glibc/glibc-linuxthreads-2.3.2.tar.gz

解压
tar -zxvf glibc-2.3.2.tar.gz
cd glibc-2.3.2
tar -zxvf ../glibc-linuxthreads-2.3.2.tar.gz
cd ..
./glibc-2.3.2/configure --prefix=/usr --disable-profile --enable-add-ons --libexecdir=/usr/lib --with-headers=/usr/include

make
make install

注意点:
1、要将glibc-linuxthreads解压到glibc目录下。
2、不能在glibc当前目录下运行configure。

posted on 2006-11-28 14:37 想飞的鱼 阅读(7162) 评论(4)  编辑  收藏 所属分类: linux

FeedBack:
# re: 编译安装glibc
2009-01-20 14:19 | 基本
./glibc-2.3.2/configure --prefix=/usr --disable-profile --enable-add-ons --libexecdir=/usr/lib --with-headers=/usr/include
找不到目录怎么回事  回复  更多评论
  
# re: 编译安装glibc[未登录]
2009-05-26 16:02 | andy
dl-runtime.c:57: error: conflicting types for 'fixup'
../sysdeps/i386/dl-machine.h:158: error: previous declaration of 'fixup' was here
dl-runtime.c:57: error: conflicting types for 'fixup'
../sysdeps/i386/dl-machine.h:158: error: previous declaration of 'fixup' was here
dl-runtime.c:142: error: conflicting types for 'profile_fixup'
../sysdeps/i386/dl-machine.h:162: error: previous declaration of 'profile_fixup' was here
dl-runtime.c:142: error: conflicting types for 'profile_fixup'
../sysdeps/i386/dl-machine.h:162: error: previous declaration of 'profile_fixup' was here
../sysdeps/i386/dl-machine.h:158: warning: 'fixup' declared `static' but never defined
../sysdeps/i386/dl-machine.h:162: warning: 'profile_fixup' declared `static' but never defined
make[2]: *** [/data/share/tony/glibc/new/glibc-build/elf/dl-runtime.o] Error 1
make[2]: Leaving directory `/data/share/tony/glibc/new/glibc-2.3.2/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/data/share/tony/glibc/new/glibc-2.3.2'
make: *** [all] Error 2
  回复  更多评论
  
# re: 编译安装glibc
2011-07-08 10:06 | jacer
害人的贴  回复  更多评论
  
# re: 编译安装glibc
2015-01-25 14:18 | 谢谢你!我的问题
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: