|
楼主 |
发表于 2005-7-19 19:17:56
|
显示全部楼层
Hi blackwolf,
Tks for your advice.
lfs:~$ cd /mnt/lfs/sources/
lfs:/mnt/lfs/sources$ tar jxvf binutils-2.15.94.0.2.2.tar.bz2 I did it without problom.
At this moment, change you work directory to binutils-2.15.94.0.2.2:
lfs:/mnt/lfs/sources$cd binutils-2.15.94.0.2.2 Also no problem.
The trick is here[code:1]lfs:/mnt/lfs/sources$ mkdir ../binutils-build
mkdir: cannot create directory `../binutils-build': Permission denied
lfs:/mnt/lfs/sources$ su -[/code:1]"su -" will go to the Root environment of FC3, the Host, not LFS.
The book is incorrect here;
5.3. Binutils-2.15.94.0.2.2 - Pass 1
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html
It suggests to run;
[code:1]mkdir ../binutils-build
cd ../binutils-build[/code:1]
It goes to the Root environment of the Host, FC3.
The correct command should be;
[code:1]mkdir binutils-build
cd binutils-build/[/code:1]Then following commands worked seamlessly;
[code:1]lfs:/mnt/lfs/sources/binutils-build$ ../binutils-2.15.94.0.2.2/configure --prefix=/tools --disable-nls
lfs:/mnt/lfs/sources/binutils-build$ make
lfs:/mnt/lfs/sources/binutils-build$ make install
lfs:/mnt/lfs/sources/binutils-build$ make -C ld clean
lfs:/mnt/lfs/sources/binutils-build$ make -C ld LIB_PATH=/tools/lib[/code:1]
It took me one whole day to figure it out.
B.R.
satimis |
|