|
发表于 2008-4-21 14:20:00
|
显示全部楼层
Post by luesfeng;1840407
tar xvf $LFS/binutils-2.17.tar.bz2
mkdir binutils-build
cd binutils-build
../binutils-2.17/configure --prefix=/usr --enable-shared
make tooldir=/usr
按照第二版 手把手教你如何建立自己的Linux系统(LFS速成手册) 做到安装 Binutils
在make toolsdir=/usr 的时候报错了
楼主好像还在做pass1吧,开头的”Host System Requirements“确定没有错吗?还有工具链的建立没有错吗?6.3的测试脚本如下,您的要找6.2的脚本。
cat > version-check.sh << "EOF"
#!/bin/bash
# Simple script to list version numbers of critical development tools
bash --version | head -n1 | cut -d" " -f2-4
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-4
bison --version | head -n1
bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
diff --version | head -n1
find --version | head -n1
gawk --version | head -n1
gcc --version | head -n1
/lib/libc.so.6 | head -n1 | cut -d" " -f1-7
grep --version | head -n1
gzip --version | head -n1
cat /proc/version
make --version | head -n1
patch --version | head -n1
sed --version | head -n1
tar --version | head -n1
EOF
bash version-check.sh
如果上面测试都没有问题再找下系统那个文件在哪里:
find / -name libbfd-2.16.1.so
有可能需要调整的文件时/etc/ld.so.conf 和 PKG_CONFIG_PATH变量,一般不需要。blfs阶段才需要的。 |
|