当前位置: 技术问答>linux和unix
请教:源码安装glibc
来源: 互联网 发布时间:2015-11-21
本文导语: 系统AIX4.3 Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Gettext, Grep, Make, Perl, Texinfo都是通过在http://aixpdslib.seas.ucla.edu下载的bin文件直接安装的。 现在下载了gblic-2.2.1,glibc-2.3.4,glibc-2.3.5的源码,准备安装glibc-2.3.4(好像...
系统AIX4.3
Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Gettext, Grep, Make, Perl, Texinfo都是通过在http://aixpdslib.seas.ucla.edu下载的bin文件直接安装的。
现在下载了gblic-2.2.1,glibc-2.3.4,glibc-2.3.5的源码,准备安装glibc-2.3.4(好像这个是和gcc -3.3.4对应的吧?)
本人是菜鸟,参考的安装glibc的文章为:
http://lfs.linuxsir.org/doc/lfs5.0/chapter06/glibc.html
本人的安装步骤:
1,设置PATH
PATH=/usr/local/bin:$PATH
2,新建了一个/glibc-build的目录,然后在里面执行:
/glibc-2.3.4/configure --prefix=/usr
--disable-profile --enable-add-ons
--libexecdir=/usr/bin --with-headers=/usr/include
执行成功
3,make
此时出错了
make[1]: *** No rule to make target `/usr/include/sys/param.h', needed by
`/glibc-build/param.h.c'. Stop.
make[1]: Leaving directory `/glibc-2.3.4'
make: *** [all] Error 2
所以后面的也就没办法执行了:(
全部的make信息如下:
bash-2.05b# make
make -r PARALLELMFLAGS="" CVSOPTS="" -C /glibc-2.3.4 objdir=`pwd` all
make[1]: Entering directory `/glibc-2.3.4'
(echo 'sysd-rules-sysdirs := nptl/sysdeps/unix/sysv nptl/sysdeps/unix nptl/sysdeps/powerpc sysdeps/unix/sysv sysdeps
/unix/powerpc sysdeps/unix sysdeps/posix sysdeps/powerpc/powerpc32/fpu sysdeps/powerpc/powerpc32 sysdeps/wordsize-32
sysdeps/powerpc/soft-fp sysdeps/powerpc/fpu sysdeps/powerpc sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/i
eee754 sysdeps/generic';
for dir in '$(..)nptl/sysdeps/unix/sysv' '$(..)nptl/sysdeps/unix' '$(..)nptl/sysdeps/powerpc' '$(..)sysdeps/unix/sy
sv' '$(..)sysdeps/unix/powerpc' '$(..)sysdeps/unix' '$(..)sysdeps/posix' '$(..)sysdeps/powerpc/powerpc32/fpu' '$(..)
sysdeps/powerpc/powerpc32' '$(..)sysdeps/wordsize-32' '$(..)sysdeps/powerpc/soft-fp' '$(..)sysdeps/powerpc/fpu' '$(.
.)sysdeps/powerpc' '$(..)sysdeps/ieee754/flt-32' '$(..)sysdeps/ieee754/dbl-64' '$(..)sysdeps/ieee754' '$(..)sysdeps/
generic'; do
for o in .o .os .op .og .ob .oS; do
echo "$(objpfx)%$o: $dir/%.S $(before-compile);
$(compile-command.S)";
echo "$(objpfx)%$o: $dir/%.s $(before-compile);
$(compile-command.s)";
echo "$(objpfx)rtld-%$o: $dir/%.S $(before-compile);
$(compile-command.S)";
echo "$(objpfx)rtld-%$o: $dir/%.s $(before-compile);
$(compile-command.s)";
echo "$(objpfx)ptw-%$o: $dir/%.S $(before-compile);
$(compile-command.S)";
echo "$(objpfx)ptw-%$o: $dir/%.s $(before-compile);
$(compile-command.s)";
echo "$(objpfx)%$o: $dir/%.c $(before-compile);
$(compile-command.c)";
echo "$(objpfx)rtld-%$o: $dir/%.c $(before-compile);
$(compile-command.c)";
echo "$(objpfx)ptw-%$o: $dir/%.c $(before-compile);
$(compile-command.c)";
done;
echo "$(objpfx)m_%.S: $dir/s_%.S; $(+make-include-of-dep)";
echo "$(objpfx)m_%.c: $dir/s_%.c; $(+make-include-of-dep)";
done;
echo 'sysd-rules-done = t') > /glibc-build/sysd-rulesT
mv -f /glibc-build/sysd-rulesT /glibc-build/sysd-rules
for dir in /glibc-build nptl/sysdeps/unix/sysv nptl/sysdeps/unix nptl/sysdeps/powerpc sysdeps/unix/sysv sysdeps/unix
/powerpc sysdeps/unix sysdeps/posix sysdeps/powerpc/powerpc32/fpu sysdeps/powerpc/powerpc32 sysdeps/wordsize-32 sysd
eps/powerpc/soft-fp sysdeps/powerpc/fpu sysdeps/powerpc sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee75
4 sysdeps/generic; do
test -f $dir/syscalls.list &&
{ /bin/sh sysdeps/unix/make-syscalls.sh $dir || exit 1; };
test $dir = sysdeps/unix && break;
done > /glibc-build/sysd-syscallsT
mv -f /glibc-build/sysd-syscallsT /glibc-build/sysd-syscalls
make[1]: *** No rule to make target `/usr/include/sys/param.h', needed by `/glibc-build/param.h.c'. Stop.
make[1]: Leaving directory `/glibc-2.3.4'
make: *** [all] Error 2
bash-2.05b#
Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Gettext, Grep, Make, Perl, Texinfo都是通过在http://aixpdslib.seas.ucla.edu下载的bin文件直接安装的。
现在下载了gblic-2.2.1,glibc-2.3.4,glibc-2.3.5的源码,准备安装glibc-2.3.4(好像这个是和gcc -3.3.4对应的吧?)
本人是菜鸟,参考的安装glibc的文章为:
http://lfs.linuxsir.org/doc/lfs5.0/chapter06/glibc.html
本人的安装步骤:
1,设置PATH
PATH=/usr/local/bin:$PATH
2,新建了一个/glibc-build的目录,然后在里面执行:
/glibc-2.3.4/configure --prefix=/usr
--disable-profile --enable-add-ons
--libexecdir=/usr/bin --with-headers=/usr/include
执行成功
3,make
此时出错了
make[1]: *** No rule to make target `/usr/include/sys/param.h', needed by
`/glibc-build/param.h.c'. Stop.
make[1]: Leaving directory `/glibc-2.3.4'
make: *** [all] Error 2
所以后面的也就没办法执行了:(
全部的make信息如下:
bash-2.05b# make
make -r PARALLELMFLAGS="" CVSOPTS="" -C /glibc-2.3.4 objdir=`pwd` all
make[1]: Entering directory `/glibc-2.3.4'
(echo 'sysd-rules-sysdirs := nptl/sysdeps/unix/sysv nptl/sysdeps/unix nptl/sysdeps/powerpc sysdeps/unix/sysv sysdeps
/unix/powerpc sysdeps/unix sysdeps/posix sysdeps/powerpc/powerpc32/fpu sysdeps/powerpc/powerpc32 sysdeps/wordsize-32
sysdeps/powerpc/soft-fp sysdeps/powerpc/fpu sysdeps/powerpc sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/i
eee754 sysdeps/generic';
for dir in '$(..)nptl/sysdeps/unix/sysv' '$(..)nptl/sysdeps/unix' '$(..)nptl/sysdeps/powerpc' '$(..)sysdeps/unix/sy
sv' '$(..)sysdeps/unix/powerpc' '$(..)sysdeps/unix' '$(..)sysdeps/posix' '$(..)sysdeps/powerpc/powerpc32/fpu' '$(..)
sysdeps/powerpc/powerpc32' '$(..)sysdeps/wordsize-32' '$(..)sysdeps/powerpc/soft-fp' '$(..)sysdeps/powerpc/fpu' '$(.
.)sysdeps/powerpc' '$(..)sysdeps/ieee754/flt-32' '$(..)sysdeps/ieee754/dbl-64' '$(..)sysdeps/ieee754' '$(..)sysdeps/
generic'; do
for o in .o .os .op .og .ob .oS; do
echo "$(objpfx)%$o: $dir/%.S $(before-compile);
$(compile-command.S)";
echo "$(objpfx)%$o: $dir/%.s $(before-compile);
$(compile-command.s)";
echo "$(objpfx)rtld-%$o: $dir/%.S $(before-compile);
$(compile-command.S)";
echo "$(objpfx)rtld-%$o: $dir/%.s $(before-compile);
$(compile-command.s)";
echo "$(objpfx)ptw-%$o: $dir/%.S $(before-compile);
$(compile-command.S)";
echo "$(objpfx)ptw-%$o: $dir/%.s $(before-compile);
$(compile-command.s)";
echo "$(objpfx)%$o: $dir/%.c $(before-compile);
$(compile-command.c)";
echo "$(objpfx)rtld-%$o: $dir/%.c $(before-compile);
$(compile-command.c)";
echo "$(objpfx)ptw-%$o: $dir/%.c $(before-compile);
$(compile-command.c)";
done;
echo "$(objpfx)m_%.S: $dir/s_%.S; $(+make-include-of-dep)";
echo "$(objpfx)m_%.c: $dir/s_%.c; $(+make-include-of-dep)";
done;
echo 'sysd-rules-done = t') > /glibc-build/sysd-rulesT
mv -f /glibc-build/sysd-rulesT /glibc-build/sysd-rules
for dir in /glibc-build nptl/sysdeps/unix/sysv nptl/sysdeps/unix nptl/sysdeps/powerpc sysdeps/unix/sysv sysdeps/unix
/powerpc sysdeps/unix sysdeps/posix sysdeps/powerpc/powerpc32/fpu sysdeps/powerpc/powerpc32 sysdeps/wordsize-32 sysd
eps/powerpc/soft-fp sysdeps/powerpc/fpu sysdeps/powerpc sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee75
4 sysdeps/generic; do
test -f $dir/syscalls.list &&
{ /bin/sh sysdeps/unix/make-syscalls.sh $dir || exit 1; };
test $dir = sysdeps/unix && break;
done > /glibc-build/sysd-syscallsT
mv -f /glibc-build/sysd-syscallsT /glibc-build/sysd-syscalls
make[1]: *** No rule to make target `/usr/include/sys/param.h', needed by `/glibc-build/param.h.c'. Stop.
make[1]: Leaving directory `/glibc-2.3.4'
make: *** [all] Error 2
bash-2.05b#
|
还是装ibm的libc先试一下吧。我看这就是先有鸡还是先有蛋的问题。