William Zhou wrote:
<snip>
One of my friend started LFS several days ago and got an error when
adjusting the toolchain( 5.7 ). The problem was that the gcc specs path
was pointed to the host's one. It took me me a while to figure out that
he ignored the creation of user lfs and thus the ~/.bashrc is not created.
The PATH enviourment does not even includes /tools/bin.
The creation of ~/.bashrc is independend of whether or not you create
the lfs user. It's even on a different page. What you're saying is
that your friend simply disregarded a section of the book.
Most of us follows the book's recommendation and never had this problem.
But I believe the creation of LFS should be stated to be mandatory, or at
least make this clear.
It is stated as recommended, which essentially translates to 'follow
this recommendation or any problems are your own.' This just adds
support to FBBG.
2. set +h search for commands every time
Wait, so instead of setting it once, I can set it dozens of times? I
think not, though you're welcome to deviate as you wish. ('Your distro
your rules' and all..)
3. Get rid of useless environment variables using the method in
~/.bash_profile.
( exec env -i HOME=$HOME TERM=$TERM PS1='...' /bin/bash )
These are useless? Huh. Strange how the LFS devs would add useless book
content. They should be ashamed of themselves. ;)
4. LFS environment variable. (Not so important).
Sure it is; it lets you set the location once and not have to type it in
again and again. More importantly, it allows the book to be written
with generic instructions that can be used regardless of where you
choose to build your shiny new lfs. Not everybody (myself included)
builds it in /mnt/lfs. (I build the new lfs in the home partition so I
can test it first, then overwrite my old lfs with it when it's useable.
I really must get another hard drive.. sigh.) As soon as somebody
deviates from /mnt/lfs (if that's what the book used instead of $LFS),
(s)he could no longer just cut and paste all of the instructions.
Regards,
Jeremy.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page