LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 01-20-2004, 04:36 PM   #1
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Removing clean source directories?


Hi all. It's me again. Sorry about the silly, whimsical post earlier. I actually have a legitimate question now... I'm on Chapter 6 installing Glibc again.... Even this seems like a silly question but I feel the need to ask it anyway.... Why do I have to remove the folder "glibc-2.3.2" and unpack it again when I never built in that directory initially? This doesn't make any sense to me. The same with binutils.... I removed "binutils-2.1.4" and "binutils-build" because the book specifically told me to do so, but again, why? I didn't build in binutils-2.1.4 so why remove it and unpack again when it is already clean? I can see why you would want to remove the build directory but not the source... Everything should be linked against /tools and nowhere else, right? So... I have an already clean glibc folder that has the extracted linuxthreads and is already patched..... I honestly feel like ignoring the directions and continuing... Any problem with this that I'm just not seeing? Thank you all for your anticipated input....

Jon
 
Old 01-21-2004, 04:23 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Well, I'm not on Chapter 6 yet, but maybe my error with Installing GCC-3.3.1 - Pass 2 will help, quote from book
Quote:
Unpack all three GCC tarballs (-core, -g++, and -testsuite) in one and the
same working directory. They will all unfold into a single gcc-3.3.1/
subdirectory.
I had stuck these in the GCC 3.3.1 directory from pass 1............when I got down to this
Quote:
Now prepare GCC for compilation:

../gcc-3.3.1/configure --prefix=/tools \
--with-local-prefix=/tools \
--enable-clocale=gnu --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-languages=c,c++
I got an error that configure could not find C++
the msg said config could only find-- C treelang
So I deleted both directories and started it again, everything came out OK, and I was able to continue on with--make
So the moral is that pass 1 left some stuff in the directory that was un-usable or un-needed by pass 2, so a new and clean environment was needed to start over with.
 
Old 01-22-2004, 05:00 PM   #3
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Original Poster
Rep: Reputation: 52
Right... I've noticed where it tells you to remove the source and build directories on certain occassions. Other times it will tell you to keep the build around for later use. Thats cool and straight forward but most of the time it doesn't tell you to remove the source directory but then later it's telling you to unpack it again.. I've had to do an awful lot of deciphering/judgement calls with this book on when and when not to mess with stuff. Thats alright I guess. I guess I'll just have to work it a few times thru trial and error and see what I can figure out... No biggie. Guess I was just expecting the book to hold your hand the whole time which it does but doesn't do at the same time... Just seems a little obscure here and there on "simple" stuff, which tends to make me second guess things.... Whether the obscurity that I see was intentional or not, I don't know. Oh well....

Jon
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Uploading/creating/removing directories on website stevsom Linux - General 4 05-12-2005 03:19 AM
removing directories still asks y or n flowertuff Linux - Newbie 2 03-06-2005 05:49 PM
removing full directories in Mandrake dodo1983 Mandriva 4 08-17-2004 10:10 AM
Removing non-empty directories brunnopessoa Linux - Newbie 8 11-13-2003 07:56 PM
Removing software: How to clean up tarballed Linux - Software 4 07-20-2003 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration