目的:安装gcc
-
#安装gomp mpfr m4等软件,同样安装在/tools目录下
安装好之后,发现/tools/lib下会有相关库。
-
mkdir -v ../gcc-build
-
cd ../gcc-build
-
../gcc-4.4.3/configure --target=$LFS_TGT --prefix=/tools --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --enable-languages=c --with-gmp=/tools --with-mpfr=/tools
出现错误:
-
checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc':
-
configure: error: cannot compute suffix of object files: cannot compile
-
See `config.log' for more details.
找到相应的config.log:
-
/mnt/lfs/sources/gcc-build/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
libmpfr.so.1很明显是mpfr的库,刚已经安装过了,可是这里为什么找不到啦?为configure加上--with-lib-mpfr和--with-lib-gmp.
-
rm -rf *
-
../gcc-4.4.3/configure --target=$LFS_TGT --prefix=/tools --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --enable-languages=c --with-gmp=/tools --with-mpfr=/tools --with-lib-gmp=/tools/lib --with-lib-mpfr=/tools/lib
还是同样的错误:
-
/mnt/lfs/sources/gcc-build/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
那么是什么问题拉?
阅读(4413) | 评论(0) | 转发(1) |