LinuxQuestions.org
Help answer threads with 0 replies.
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 09-26-2013, 02:13 AM   #31
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405

Quote:
Originally Posted by ReaperX7 View Post
Yes you may want the headers. In fact the headers ARE required by compilers for building stuff as they link against them.

Debug packages, staging, and documentation packages are not needed.

I think it's safe to say that out of the box, Debian and it's clones are not LFS friendly.
To my knowledge only Slackware is compliant out-of-the-box. All others have to be made compliant, Debian isn't an exception.

These packages need to be installed on Debian: gawk, make, bison, gcc, g++, bzip2 (I never had to install *-dev packages on Debian). One also needs to link sh to bash (dpkg-reconfigure dash).

sudo isn't needed at all, I would even go as far as to say that one shouldn't use sudo at all (possible environment issue's). Log in as root or become root by using su - (mind the -).
 
1 members found this post helpful.
Old 09-26-2013, 01:29 PM   #32
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Wink Yahoo!!

The test is passed successfully, that's great!

So I've installed linux-headers package, binutils "-dev" package and reconfigured dash with "dpkg-reconfigure dash" command and the result is:
Code:
lfs@Turaco:/mnt/lfs/sources/glibc-build$ echo 'main(){}' > dummy.c
lfs@Turaco:/mnt/lfs/sources/glibc-build$ $LFS_TGT-gcc dummy.c
lfs@Turaco:/mnt/lfs/sources/glibc-build$ readelf -l a.out | grep ': /tools'
      [Requesting program interpreter: /tools/lib/ld-linux.so.2]
lfs@Turaco:/mnt/lfs/sources/glibc-build$ rm -v dummy.c a.out
removed `dummy.c'
removed `a.out'
So, thanks a lot, guys! U deserve respect

Last edited by Rodano; 09-26-2013 at 01:31 PM.
 
Old 09-26-2013, 03:15 PM   #33
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Let's us know if you need any more help.
 
Old 09-26-2013, 03:42 PM   #34
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
Quote:
Originally Posted by Rodano View Post
and reconfigured dash with "dpkg-reconfigure dash"
Shouldn't it be "dpkg-reconfigure bash" to make bash default? You can't build LFS with dash.
 
Old 09-26-2013, 09:31 PM   #35
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by Lennie View Post
Shouldn't it be "dpkg-reconfigure bash" to make bash default? You can't build LFS with dash.
in reconfigure dash procedure there is a question - would i like to use it as default. i choosed "no" and it made bash for default.

Last edited by Rodano; 09-26-2013 at 10:32 PM.
 
  


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
LFS 6.5 : Step 6.7 Installing Linux API headers : make headers_check/install error tsong99 Linux From Scratch 12 12-25-2012 04:26 PM
step by step guide for installing LFS 6.6 on kubuntu 9.10 smkh Linux From Scratch 6 04-07-2010 03:34 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 08:13 PM
LFS step 5.7 Shadows91 Linux From Scratch 2 01-01-2007 10:12 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM

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

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