|
|
发表于 2006-2-8 14:36:01
|
显示全部楼层
我刚刚遇到同样的问题了
host :下/tools/bin中有
- lrwxrwxrwx 1 root root 3 2006-02-08 22:01 cc -> gcc
- -rwxr-xr-x 3 root root 168K 2006-02-08 21:34 gcc
- -rwxr-xr-x 1 root root 16K 2006-02-08 21:34 gccbug
- -rwxr-xr-x 3 root root 168K 2006-02-08 21:34 i686-pc-linux-gnu-gcc
- -rwxr-xr-x 3 root root 168K 2006-02-08 21:34 i686-pc-linux-gnu-gcc-3.4.3
- -rwxr-xr-x 1 root root 41 2006-02-08 20:18 yacc
复制代码
./gcc -v
- Reading specs from /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/specs
- Configured with: ../gcc-3.4.3/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c : (reconfigured) ../gcc-3.4.3/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
- Thread model: posix
- gcc version 3.4.3
复制代码
$su - lfs
中也正常
但是到了chroot后就怎么着也提示bash:
- /tools/bin/gcc: No such file or directory
复制代码
但是在chroot环境里跟以上两种环境下gcc都是一样的啊
也在PATH里啊
- root:/tools/bin# ls -ahl |grep cc
- lrwxrwxrwx 1 root root 3 Feb 8 14:01 cc -> gcc
- -rwxr-xr-x 3 root root 168K Feb 8 13:34 gcc
- -rwxr-xr-x 1 root root 16K Feb 8 13:34 gccbug
- -rwxr-xr-x 3 root root 168K Feb 8 13:34 i686-pc-linux-gnu-gcc
- -rwxr-xr-x 3 root root 168K Feb 8 13:34 i686-pc-linux-gnu-gcc-3.4.3
- -rwxr-xr-x 1 root root 41 Feb 8 12:18 yacc
复制代码
- root:/sources/glibc-build# export
- declare -x HOME="/root"
- declare -x OLDPWD="/root"
- declare -x PATH="/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin"
- declare -x PS1="\\u:\\w\\\$ "
- declare -x PWD="/sources/glibc-build"
- declare -x SHLVL="1"
- declare -x TERM="xterm"
复制代码
请教了! |
|