LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-28-2010, 05:41 PM   #1
kcnewslackuser
Member
 
Registered: Jan 2010
Posts: 68

Rep: Reputation: 0
problems building lfs


i have the lfs book 6.7 and host system is slackware 13.1 and i used gparted to create a ext3 partition for my lfs system and i copied all of the commands from chapter 1-4 and now when i get on chapter 5 the terminal wont find the sources or tools directory that was created. Here is a copy of everything i tried . Can someone please tell me how to fix it because i am completely lost i have deleted the partition and tried over several times and it always gets stuck in this same spot.

http://pastebin.com/VnpwvwpG
 
Old 10-28-2010, 05:58 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

do not use pastebin! You can enclose your commands within [code] tags and post here directly. If you are submitting logs you can attach them as *.txt files.

As for your problem:
Code:
root:/home/lfs# cp /root/Desktop/lfs /home/lfs
cp: omitting directory `/root/Desktop/lfs'
As the message clearly states, you did not copy anything. That is why you do not find anything when you switch back to user lfs.
Try this instead:
Code:
cp -a /root/Desktop/lfs/sources $LFS/sources
chown -R lfs:lfs $LFS/sources
Also: you said you cannot find your tools directory. From what I have seen you have been looking for your tools directory in the $HOME folder of lfs. Of course you won't find it there because it is located at $LFS.

Hope this helps.

Last edited by crts; 10-28-2010 at 06:11 PM. Reason: corrected 'cp' target location
 
Old 10-28-2010, 06:01 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I don't know what you are trying to do after line 53, none of that is in the book (luckily I am doing the same thing at this time, I am currently in chapter 5). After becomming the user lfs, what do you try to copy? You don't have to copy anything at this time.
Just make sure that your LFS partition is mounted to /mount/lfs ,you can use a simple
Code:
mount
for this and then cd into your LFS folder.
Code:
cd $LFS
There you will find your directories.

If you don't understand something in the book, it is not a good idea to guess what to do.Feel free to ask in this forum.

Besides, the command to become the lfs user is
Code:
su - lfs
 
Old 10-28-2010, 06:54 PM   #4
kcnewslackuser
Member
 
Registered: Jan 2010
Posts: 68

Original Poster
Rep: Reputation: 0
lfs probs

I got that part figured out it was problems with ownership not working properly. My problem now is lfs:/mnt/lfs/binutils-build$ ../binutils-2.20.1/configure \
> --target=$LFS_TGT --prefix=/tools \
> --disable-nls --disable-werror
bash: ../binutils-2.20.1/configure: No such file or directory
lfs:/mnt/lfs/binutils-build$
I dont see why it doesnt work it was pasted right out of the book .
 
Old 10-28-2010, 07:11 PM   #5
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
LFS is not just about copy+paste

Read this chapter again:
http://www.linuxfromscratch.org/lfs/...tructions.html

The big red boxes that are marked IMPORTANT are not just decoration. They are indeed ... important. So before you go on, read that section again unpack the source-package for binutils in $LFS/sources and 'cd' into the freshly unpacked source directory. Now you can issue the commands from chapter 5.4 again.
 
Old 10-28-2010, 07:28 PM   #6
kcnewslackuser
Member
 
Registered: Jan 2010
Posts: 68

Original Poster
Rep: Reputation: 0
thanks for trying to help crts but from what i was just told the book is missing commands in that section of the book and thats why it doesnt work.
 
Old 10-28-2010, 07:31 PM   #7
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by kcnewslackuser View Post
thanks for trying to help crts but from what i was just told the book is missing commands in that section of the book and thats why it doesnt work.
Who told you that and what commands are supposed to be missing?
 
Old 10-28-2010, 08:11 PM   #8
kcnewslackuser
Member
 
Registered: Jan 2010
Posts: 68

Original Poster
Rep: Reputation: 0
bloodstix was is irc id and he said it doesnt have the commands to move to the right directory and said the commands in the book arent correct. He said that I need to learn more about compiling and installing software before trying to do the stuff in the book. That it wouldnt of been hard to figure out if i knew what i was doing. And suggested that i switch to gentoo instead of trying to learn lfs

I think he was just frustrated tho cause i was just taking up alot of his time. Oh and i got it compiling finally .

Last edited by kcnewslackuser; 10-28-2010 at 08:30 PM.
 
Old 10-28-2010, 08:27 PM   #9
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
I doubt that the commands in the book are incorrect. As I already said, you did not read/understand chapter 5.3. It clearly instructs you that you have to unpack and cd into the source directory.
Your problem is that you do not know how to use CLI.
READ the prerequisites in this chapter:
http://www.linuxfromscratch.org/lfs/...equisites.html
 
1 members found this post helpful.
Old 10-28-2010, 09:30 PM   #10
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 14.2, Fedora 27
Posts: 111
Blog Entries: 1

Rep: Reputation: 16
The problem you are having is that you not working in the correct directory. You should be in
lfs:/mnt/lfs/sources/binutils-build$

Do as crts says, there are probably only about 200 words on the page he linked, read them all!

For binutils specifically,
/mnt/lfs/sources$tar -xvf binutils-2.20.1.tar.bz2
/mnt/lfs/sources$cd binutils-2.20.1
/mnt/lfs/sources/binutils-2.20.1$mkdir -v ../binutils-build
/mnt/lfs/sources/binutils-2.20.1$cd ../binutils-build

This should put you in
/mnt/lfs/sources/binutils-build$

Last edited by farmerdave; 10-28-2010 at 09:36 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Building GCC for LFS dbbolton Linux - Software 9 11-27-2009 04:35 AM
What does Building LFS entail? Lord Hakk Linux From Scratch 4 05-31-2008 03:25 AM
Building 64bit LFS currir55 Linux From Scratch 1 11-15-2005 04:47 PM
Building Binary LFS Tuvok Linux From Scratch 10 03-20-2005 08:09 PM
Building Screen-4.0.2 (and others...) on LFS cjcuk Linux From Scratch 5 12-17-2003 10:11 AM

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

All times are GMT -5. The time now is 10:52 AM.

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