Installing Binutils (5.3.1)
melvinpoindexter at yahoo.com
Fri Oct 14 07:26:32 PDT 2005
Thank You for your prompt response. I will follow your
suggestion because it makes the most sense. This is
what I originally thought was supposed to be the way
to do it. But, the reason I untarred the Binutils
package outside the $LFS/source directory is because
of the statement in Ch5, "The Binutils documentation
recommends building Binutils outside the source
directory in a dedicated directory:".
Perhaps I read it wrong. Thank You.
--- Seth Turner <sethturner at triad.rr.com> wrote:
> On Thu, 13 Oct 2005, Melvin Poindexter wrote:
> >1) What is the current working directory when
> >executing 'mkdir ../binutils-build'?
> For each package you install, you must unpack the
> archive. This will
> create a source directory. You must then cd into the
> newly created
> source directory. In your case. You would have the
> archive in
> $LFS/sources. When you unpack it, you will get a
> directory called
> You need to be in this directory when you execute
> the mkdir
> ../binutils-build command. This will place the build
> directory right
> along side binutils-18.104.22.168.2.2 under
> >2) Which user should I be logged in as when
> >these commands? lfs or root?
> At this point in the game, you need to be logged in
> as lfs. If you
> recall, lfs has ownership of only two directories:
> $LFS/tools and
> $LFS/sources. If you are $LFS/sources when you try
> the mkdir
> ../binutils-build from question 1, it would be
> trying to make the
> binutils-build directory in / (where lfs does not
> have ownership) this
> is why you were getting a permission denied.
> >Chapter 5.3.1 is unclear to me. Ch. 4 left off
> >sourcing the newly created .bash_profile while
> >in as LFS (current dir: '/home/lfs'). If I continue
> >logged in as LFS in Ch.5, then I cannot create the
> >'../binutils-build' directory. Permission Denied.
> See above. I got ahead of myself ;)
> >I am able to follow the commands in 5.3.1 while
> >in a root, however. But doesn't the environment
> >interfere with Binutils installation while logged
> >as root?
> Again, being in the right directory will solve your
> problem. You will be
> able to do everything you need to as user lfs.
> >Also simply using the command 'configure' (as in
> >'../binultils-22.214.171.124.0.2/configure...') does not
> >work. I must cd into the '/binutils- 126.96.36.199.2'
> >root and type it as './configure'. Again, doing
> >as user lfs yields the error './configure: line
> >./config.log: Permission Denied'.
> This part I am not 100% sure on. Try it over again
> with the suggestions
> above and perhaps this error will be solved in the
> process, if not, let
> us know!
> I hope some or all of this has been useful. Enjoy
> your build.
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
Start your day with Yahoo! - Make it your home page!
More information about the lfs-support