LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-17-2010, 06:27 AM   #1
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Rep: Reputation: 16
How to know if your host Linux OS has got all the development tools needed for LFS.


I'm just starting on my journey to build a LFS OS.

I have been using Fedora linux for a while now and I have not got to grips with it so I feel the best way to learn is to build by own version.

OK, the first page of the LFS manual tells me:
Quote:
The LFS system will be built by using an already installed Linux distribution (such as Debian, Mandriva, Red Hat, or SUSE). This existing Linux system (the host) will be used as a starting point to provide necessary programs, including a compiler, linker, and shell, to build the new system. Select the “development” option during the distribution installation to be able to access these tools.
I am using Fedora 10, I did not install it, so how do I know if these tools are available on my system? Where do I look?
 
Old 11-17-2010, 07:02 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
It's pretty typical (not just for LFS) that you'll need a C compiler, the make utility, autoconf utility, automake utility and a few others.

Simply open a console and use locate or whereis to see if they're on your system; e.g.,
Code:
prompt: whereis gcc
gcc: /usr/bin/gcc /usr/lib64/gcc /usr/X11R6/bin/gcc /usr/bin/X11/gcc /usr/X11/bin/gcc /usr/libexec/gcc /usr/man/man1/gcc.1.gz /usr/share/man/man1/gcc.1.gz /usr/X11/man/man1/gcc.1.gz
prompt: whereis make
make: /usr/bin/make /usr/X11R6/bin/make /usr/bin/X11/make /usr/X11/bin/make /usr/man/man1/make.1.gz /usr/share/man/man1/make.1.gz /usr/X11/man/man1/make.1.gz
You can also open a console at type the executable name and hit the carriage return; e.g.,
Code:
prompt: gcc
gcc: no input files
prompt: make
make: *** No targets specified and no makefile found.  Stop.
If you don't have those, you don't have the "development" packages (don't know what that's called by Fedora) and you'll need to install the "development tools."

Hope this helps some.
 
Old 11-17-2010, 07:09 AM   #3
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by HarryBoy View Post
I'm just starting on my journey to build a LFS OS.

I have been using Fedora linux for a while now and I have not got to grips with it so I feel the best way to learn is to build by own version.

OK, the first page of the LFS manual tells me:


I am using Fedora 10, I did not install it, so how do I know if these tools are available on my system? Where do I look?
Hi,

in a previous thread you were already pointed to the LFS stable book edition. Did you read it? I mean especially this part:
http://www.linuxfromscratch.org/lfs/.../hostreqs.html

Run the script from that page on your host and it will check the versions of your system. Then you can compare the output with the requirements listed a couple of lines earlier.

One more thing is, many distros will require you to install some additional *-dev packages if you want to compile software on your system. I am not sure if this is also necessary on fedora. Check your software installer if it gives you the option to install *-dev packages.
 
Old 11-17-2010, 07:41 AM   #4
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
Thanks to both of you, very helpful indeed
 
  


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:/mnt/lfs/sources/util-linux-2.12r$ cp -v mount/{,u}mount text-utils/more /tools/b arougen02 Linux From Scratch 5 03-19-2008 01:15 PM
lfs:/mnt/lfs/sources/util-linux-2.12r$ cp -v mount/{,u}mount text-utils/more /tools/b arougen02 Linux - Newbie 2 03-16-2008 11:16 AM
c development tools for linux arnon Linux - Software 2 12-31-2006 12:39 PM
Development Tools for Linux ??? SashkaP Linux - Software 2 09-16-2004 08:52 PM
Linux Development Tools for C/C++ ??? SashkaP Programming 2 09-16-2004 07:21 PM

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

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