LinuxQuestions.org
Review your favorite Linux distribution.
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 03-22-2010, 07:20 PM   #1
smkh
LQ Newbie
 
Registered: Mar 2010
Posts: 15

Rep: Reputation: 2
Unhappy stuck at step 5.6 & 5.7


Hello
I am newbie to LFS and have some problems with that. I follow the instructions in LFS Book 6.6 and install it on my kubuntu 9.10 (running on vmware workstation) I downloaded the packages and patches from this link:
ftp://ftp.lfs-matrix.net/pub/lfs/lfs...es-6.6-rc1.tar
until installing gcc on chapter 5 every thing is OK but i didn't understand steps 5.6 & 5.7 very well.
here what i did for step 5.6 (install kernel headers):
1- lfs@kubuntu:/mnt/lfs/sources$ tar -jxvf linux-2.6.32.7.tar.bz2 <= produced error on extracting some files so I copied this file to /usr/src on my host system and switched to root user then:
2- root@kubuntu:/usr/src# tar -jxvf linux-2.6.32.7.tar.bz2 <= successfull
3- root@kubuntu:/usr/src# cd linux-2.6.32.7/
4- follow the book instruction and all successfull
is this right?

for step 5.7 (Installation of Glibc):
1- lfs@kubuntu:/mnt/lfs/sources$ tar -jxvf glibc-2.11.1.tar.bz2 <= extract some files then produced lot of error like this : tar [filename] : cannot open: No such file or directory for other files
switchiing to root user doesn't solve this problem:
1- root@kubuntu:/mnt/lfs/sources# tar -jxvf glibc-2.11.1.tar.bz2 <= same errors again
what can i do now?
please help!thanks!
 
Old 03-23-2010, 01:45 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

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

did you alternativly try
Code:
bzip2 -d linux-2.6.32.7.tar.bz2
From the man-page for tar:
Quote:
-j, --bzip2
filter archive through bzip2, use to decompress .bz2 files.
WARNING: some previous versions of tar used option -I to filter
through bzip2. When writing scripts, use --bzip2 instead of -j
so that both older and newer tar versions will work.
Cannot really say without the exact error message. Could be also a permission problem. Could be also a problem that has to do with VMware. Could be a problem with Ubuntu. Could be ....

As you can see, there are many possible error sources. It might be best to install LFS on a dedicated Linux-partition. If possible use the LFS liveCD as building host. Then you won't need to install a 'regular' Linux OS first.
 
Old 03-23-2010, 03:48 PM   #3
smkh
LQ Newbie
 
Registered: Mar 2010
Posts: 15

Original Poster
Rep: Reputation: 2
Thanks from your reply.
I find the source of this problem: the LFS partition didn't have free space for new files!
I created 2GB ext3 partition for lfs and untarred binutils & gcc packages on it and didn't remove them after "make install"
after extending this partition to 3GB, the problem solved!
 
  


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
Need step by step on connecting ubuntu 8.04 & Atheros AR8121/8113/8114 PCI-E wowihatevista Linux - Networking 3 07-17-2010 09:13 AM
Step-by-step directions to installing dial-up modem driver in Xubuntu & Ubuntu gaia Linux - Newbie 1 03-25-2008 04:00 PM
I need a step by step help to instal Suse 9.3 Pro on the same hdd as XP Home & 2003 suse91pro Linux - General 4 09-07-2005 02:15 PM
So dumb I need a step by step for Nvidia 5200 & RH9 ignorant Linux - Hardware 3 09-11-2003 01:34 PM
Step-By-Step Dual Booting Guide For RH 7.2 & WinXp wibbsy Linux - Software 1 01-06-2002 01:15 AM

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

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