LinuxQuestions.org
Visit Jeremy's Blog.
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 08-25-2008, 09:27 PM   #1
iconicmoronic
LQ Newbie
 
Registered: Mar 2007
Posts: 21

Rep: Reputation: 15
don't skip my post


i'm trying to install LFS and its to no avail so far.

the first try out I got to step two, where I encountered a bootstrap 2 error. This is the second try and I'm only on the binutils installation but a peculiar thing has happened...

I've created all of the necessary directories and I have all of the necessary files. I also opened the binutils file to be sure it was containing all necessary materials.

anyway, I go to gunzip and it states each file name as if it were untarring, except it says no such file or directory, i.e.

tar: binutils-2.17/cpu/xc16x.cpu: Cannot open: No such file or directory
binutils-2.17/cpu/xc16x.opc
tar: binutils-2.17/cpu/xc16x.opc: Cannot open: No such file or directory
binutils-2.17/etc/Makefile.in
tar: binutils-2.17/etc/Makefile.in: Cannot open: No such file or directory
binutils-2.17/etc/configure
tar: binutils-2.17/etc/configure: Cannot open: No such file or directory
binutils-2.17/etc/configure.in
tar: binutils-2.17/etc/configure.in: Cannot open: No such file or directory
binutils-2.17/etc/standards.texi
tar: binutils-2.17/etc/standards.texi: Cannot open: No such file or directory
binutils-2.17/etc/make-stds.texi
tar: binutils-2.17/etc/make-stds.texi: Cannot open: No such file or directory
binutils-2.17/etc/standards.info
tar: binutils-2.17/etc/standards.info: Cannot open: No such file or directory
binutils-2.17/etc/configure.texi
tar: binutils-2.17/etc/configure.texi: Cannot open: No such file or directory
binutils-2.17/etc/configure.info
tar: binutils-2.17/etc/configure.info: Cannot open: No such file or directory
binutils-2.17/etc/configbuild.ein
tar: binutils-2.17/etc/configbuild.ein: Cannot open: No such file or directory
binutils-2.17/etc/configbuild.fig
tar: binutils-2.17/etc/configbuild.fig: Cannot open: No such file or directory
binutils-2.17/etc/configbuild.jin
tar: binutils-2.17/etc/configbuild.jin: Cannot open: No such file or directory
binutils-2.17/etc/configbuild.tin
tar: binutils-2.17/etc/configbuild.tin: Cannot open: No such file or directory
binutils-2.17/etc/configdev.ein
tar: binutils-2.17/etc/configdev.ein: Cannot open: No such file or directory
binutils-2.17/etc/configdev.fig
tar: binutils-2.17/etc/configdev.fig: Cannot open: No such file or directory
binutils-2.17/etc/configdev.jin
tar: binutils-2.17/etc/configdev.jin: Cannot open: No such file or directory
binutils-2.17/etc/configdev.tin
tar: binutils-2.17/etc/configdev.tin: Cannot open: No such file or directory
binutils-2.17/etc/fdl.texi
tar: binutils-2.17/etc/fdl.texi: Cannot open: No such file or directory
binutils-2.17/etc/texi2pod.pl
tar: binutils-2.17/etc/texi2pod.pl: Cannot open: No such file or directory
binutils-2.17/texinfo/texinfo.tex
tar: binutils-2.17/texinfo/texinfo.tex: Cannot open: No such file or directory
binutils-2.17/md5.sum
tar: binutils-2.17/md5.sum: Cannot open: No such file or directory
tar: Error exit delayed from previous errors
lfs@andres-desktop:/home/andres/Desktop/LFS/binutils-build$

I double checked and found the directory where it was made as stated in the prompt, like I said I checked the file. I thought it might be some variance of permission denied so I checked the sudoers file, and I'm in there (the new lfs user too) and it appears as though all is well, but all is not well.

? any help?
 
Old 08-25-2008, 09:55 PM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
pls provide your pwd and the exact command you are entering before getting an error.
 
Old 08-25-2008, 09:57 PM   #3
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
I skip any post with subjects that include "don't skip my post", "Help Me!", "Emergency", "Desperate", and "Urgent".
 
Old 08-25-2008, 10:02 PM   #4
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
It's a bad subject title - agreed, but let's try to solve the lfs problem.
 
Old 08-25-2008, 11:50 PM   #5
iconicmoronic
LQ Newbie
 
Registered: Mar 2007
Posts: 21

Original Poster
Rep: Reputation: 15
...

i don't know how this occurred as no directory, but i retried the command with sudo and it works

i can't say for s&g's, but why would it return that error with no files and directory when all is in order in terms of existing, just because i didn't use sudo?

Last edited by iconicmoronic; 08-25-2008 at 11:59 PM.
 
Old 08-26-2008, 12:11 AM   #6
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
No.

Follow instructions in the book exactly.

In lfs partition create sources and tools directories. At least from your pwd it seems that you definitely don't have sources (sure you can get away without having it but why complicate things?)

Second, when you create a binutils-build directory your untarred binutils source must not be in it. It must be at the same level i.e. you will have /sources/binutils-build and /sources/binutils-x.x.x. By that token why did you even move binutils-x.x.x.tr.bz2 to binutils-build? Keep it at the level above (i.e. in /sources) and just do 'tar xf binutils.x.x.tr.bz2'. Then cd to binutils-build and from there do '../binutils.x.x/configure ...' etc.

Basically just do as the book says, don't improvise.
 
Old 08-26-2008, 12:18 AM   #7
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
iconicmoronic, you've got some really bad forum manners - not just the thread subject, but then you go and erase your post to which I've already replied. You do realize that the purpose of this forum is to help not only you but also others who might be making the same mistake in the future? The post you've erased contained a mistake which I pointed out - now others will not see it.
 
Old 08-26-2008, 12:28 AM   #8
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Okay, here's a recovered post #5 as it was when I was replying to it in post #6:

iconicmoronic:
Quote:
pwd was /home/andres/Desktop/LFS/binutils-build

(at the time... I logged off since I had to go to school)

and the exact commands given were

tar -xvjf binutils-7.16.tar.bz2

prior to that it was sudo mkdir -pv /home/andres/Desktop/LFS/binutils-build

and sudo mv /home/desktop/andres/LFS/binutils-7.16.tar.bz2 /home/andres/Desktop/LFS/binutils-build

other than that, everything was pre-installatoin stuff from the LFS books (making tools and sources directories, sourcing the bash file, creating the user and group...etc, and so-on)
 
Old 08-26-2008, 12:29 AM   #9
iconicmoronic
LQ Newbie
 
Registered: Mar 2007
Posts: 21

Original Poster
Rep: Reputation: 15
sorry about the manners, i'm not trying to be a pester...

my experience in the forum has been negative, no replies and such... some turd kept telling me of a post i knew i had no cd use a cd use a cd.... it got hectic.

anyhow your post shows and that mistake isn't the issue at hand because everything installed fine after i sudoed the command.

i tried to follow the book exactly and ran into the same problems.

i have sources and tools, and during compilation i've been getting the error that the tools directory already exists.

the fact is i want to install LFS so bad that i'm in a "hurry", not trying to be rude and i apologize.

in fact, this is the only forum that has LFS on its title that i've found, so i'm not trying to upset anyone.

anyhow things still aren't going well with the install, next step i reached a bootstrap error. i'll understand if you don't reply again, but i won't be winded.
 
Old 08-26-2008, 12:33 AM   #10
iconicmoronic
LQ Newbie
 
Registered: Mar 2007
Posts: 21

Original Poster
Rep: Reputation: 15
in the previous post that i had about a bootstrap error from a previous attempt, someone told me that it was due to patches. is there a tutorial somewhere to learn how to apply these patches because if its a command i'm unfamiliar and if i need to edit a file, LFS doesn't say which one.

fact is i'm a noob, and maybe i shouldn't install LFS but every distro i tried, Fedora, Knoppix, Ubuntu... all this sudo mess has me p'oed. I don't need that kind of security and its become a nuissance.

so, as per forum etiquette, should I restart a thread? hope someone replies to the previous one? stay chattered in here? last time I changed the thread, some turd started hollering about being in the same thread when it was a different topic. this can be called solved as far as binutils and to summarize:

i didn't use the /binutils-build directory as LFS book states

i created a subdirectory where my tarballs were entitled binutils-build where i gunzipped

then i entered the binutils-4.1.2 directory and utilize the CC command to enable c language and install into the tools directory

*there was a problem here, I had to delete the tools directory and allow the configure process to create the directory itself (which sounds sketchy)

with that make make install and binutils pass one was complete.

my BSU time was approx. 5 minutes.

binutils SOLVED

Last edited by iconicmoronic; 08-26-2008 at 12:37 AM.
 
Old 08-26-2008, 12:44 AM   #11
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Don't be in a hurry - building LFS takes time, compiling all those packages will not be a one day job. It took me over a week (albeit on pretty old hardware and I was doing it "in-between things").
Make sure your initial setup is correct (from your post it looks like it does not follow the book to the letter) - you might get away with it at first but as you progress things will break.
 
Old 08-26-2008, 12:48 AM   #12
iconicmoronic
LQ Newbie
 
Registered: Mar 2007
Posts: 21

Original Poster
Rep: Reputation: 15
...

okay, i'm starting over... hope i can figure this out. do you know if there's tutorial for applying patches?
 
Old 08-26-2008, 01:12 AM   #13
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Code:
man patch


Usually instructions do come with patches.

Coming back to the original issue, make sure you have a separate partition, do mount it at /mnt/lfs (yes, you can mount it anywhere but it so much easier later if you don't have to think about these changes), make sure $LFS is set and exported correctly as /mnt/lfs (and it doesn't hurt to re-check it later once in a while with 'echo $LFS'), make sure you have /mnt/lfs/tools and /mnt/lfs/sources.

All the .tr.gz and tr.bz2 files you download to compile you should place in /mnt/lfs/sources and then extract them there. And if it tells you to create a separate build directory that means than you need to have /mnt/sources/packagename.tr.gz, /mnt/sources/packagename/ and /mnt/sources/packagename-build/ .

{important} Also remember that when the book gives you instructions on how to build a particular package it expects you to have untarred it already and to be IN the untarred directory i.e. your pwd will be /mnt/lfs/sources/packagename/ .

Tip for later part of the book - always be careful when chrooting and mounting filesystems. It's easy to forget if you rebooted.
 
Old 08-26-2008, 01:53 AM   #14
iconicmoronic
LQ Newbie
 
Registered: Mar 2007
Posts: 21

Original Poster
Rep: Reputation: 15
...

i'm gonna get out a notebook and follow the instructions as such.

actually i haven't seen any instructions with the patches, i check it a few minutes ago and saw nothing, and LFS book doesn't specify to apply the patch during pass 1, is it for pass 2 after chroot?

anyway i'm turning in for the evening and will give it another try in the morning. i've got some clean up to do with the mess i made already first, but it's easy enough, thanks for the advice and sorry again.
 
Old 08-26-2008, 01:55 AM   #15
iconicmoronic
LQ Newbie
 
Registered: Mar 2007
Posts: 21

Original Poster
Rep: Reputation: 15
...

P.S I'm still at odds ends as to why the error for my first try with binutils was no such file or directory does not exist when everything did in fact exist and was in order.

to me it doesn't sound like a sudo issue, but i could be wrong. thus i found it strange that sudo fixed the issue.

anyway g'nite all
 
  


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
Suggestion: Minimum post count to post in old inactive threads Eternal_Newbie LQ Suggestions & Feedback 5 04-28-2008 09:34 AM
i dont want to post here but i guess i have to to post relevent links in another thre sluckz LinuxQuestions.org Member Intro 8 10-02-2007 12:55 PM
how do i skip e2fsck? murrowman789 Slackware 8 07-20-2005 05:25 PM
How do i skip agp ? Deep-Blue-ro Linux - Hardware 2 10-23-2004 06:09 PM
did i skip ahead? American Psycho Linux From Scratch 0 04-21-2004 12:28 AM

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

All times are GMT -5. The time now is 01:05 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