LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-16-2006, 10:11 AM   #1
status1
Member
 
Registered: Sep 2006
Posts: 122

Rep: Reputation: 15
Question Makefile:415:.config: no such file or directory


Hello,
I am trying to install LFS for the first time on a laptop.
The LFS book verxion is 6.0 2-nd edition and I am using the live cd that came with it.
I am new to linux but I know some of the basics.
I am on page 49 at the instalation of kernel headers
when I type the command
make include/linux/versin.h
I get
Makefile:415:.config: no such file or directory
Am I missing something ?
Is there another command that is assumed to be executed before that ?
 
Old 09-16-2006, 02:14 PM   #2
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
Hi,

The command you mention is not correct (could be a typo):

make include/linux/versin.h
should be
make include/linux/version.h
 
Old 09-17-2006, 07:12 AM   #3
status1
Member
 
Registered: Sep 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Hello,
The command is correct in the book and when I typed it in.
I even checked it and the file was created
I think the problem is with the config file in the error line
I was wondering If I should run configure or some other command that most people
just assume but since I am new to linux I can only type in what is in the book.
 
Old 09-17-2006, 07:18 AM   #4
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
Hi,

The command you mentioned in your first post (make include/linux/versin.h) is _NOT_ correct!
It could be a typo in the book you are using, the on-line version of LFS 6.0 (Take a look here: LFS 6.0 on-line book) also mentions the correct command.

If you keep using versin.h instead of version.h, it will not work.
 
Old 09-18-2006, 06:05 PM   #5
status1
Member
 
Registered: Sep 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Hello,
Yes I see what you mean.
It was a typo in my first post only but I did typed in version.h correctly just like in the book when issued the command
Even so I don't think the problem is with version.h because I get the same exact error after I execute make include/asm.
For some reason it's looking for the .config file .
I am not sure if it's looking in the wrong directory or I didn't issue a command that I was supposed to.
Maybe I should issue the command from where the .config file is located ?
 
Old 09-19-2006, 01:42 AM   #6
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
Hi,

I wonder if you are in the correct directory or if chapter 5.6 was done correctly.

The Linux-Libc-Headers (chap 5.6) should be no problem. Just untar the Linux-Libc-Headers package, enter the newly created directory and cp both directories to the given locations.

After that, return to your sources directory (cd $LFS/sources) untar the linux kernel, enter the newly created linux directory and execute the steps in chapter 5.7.

BTW: Linux-Libc-Headers-2.6.8.1 (5.6) and Linux (5.7) are different packages.

Hope this gets you going again.
 
Old 09-19-2006, 06:40 PM   #7
status1
Member
 
Registered: Sep 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Hello,
Thanks for clarifying that.
I am pretty sure that's how I did it but I will run it again over the weekend
hopefully I can fix one of the problems if not both
 
Old 09-23-2006, 10:57 AM   #8
status1
Member
 
Registered: Sep 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Hello,
I ran it again this morning but it's still yhe same
Makefile:415:.config: no such file or directory

One thing I noticed is that in the book the file it's called linux-2.6.8.1 headers but the file that is on the cd is called linux-2.6.8.1
without the headers in the name
I hope that doesn't make any difference because I don't have a file with the exact name.

I still think it has something to do with the config name that is in the error line
 
Old 09-23-2006, 11:16 AM   #9
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
Hi,

chapter 5.6 : Linux-Libc-Headers-2.6.8.1 needs linux-libc-headers-2.6.8.1.tar.bz2
chapter 5.7 : Linux-2.6.8.1 Headers needs linux-2.6.8.1.tar.gz

Hope this clears things up.
 
Old 09-23-2006, 12:07 PM   #10
status1
Member
 
Registered: Sep 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Hello,
That is clear but the problem is still there.

I think I fixed it but I am not sure if it's correct

I was browsing the Makefile and I came across the command make config
I did not quite understand the reason for using or not using it but I typed it in anyway just to see what happens.
It looks like it gives you all the options to select your configuration and there are a lot of them.
I started to go thru them by answeing yes to most of the questions but after a while I realized it probably doesn't make any difference at this point so I just held down the enter key untill the end.
Then I ran the make include/linux/version.h command again and this time I did not get any errors

So I solved it by using the make config but I am not sure if that is the right way to do it and if so why isn't it in the book.
 
Old 09-23-2006, 12:46 PM   #11
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
Hi,

It's too bad you are using 6.0, the install logs for that version aren't on line any more (at least: I cannot find them), maybe they are on the cd. This (none) error should have been mentioned as 'a none relevant error at this point'.

The point of the steps in 5.7 are to create a version.h file in include/linux/ and a platform-specific include/asm symlink.

The .config file is used to store the kernel settings (in a nutshell), which is not done/needed here just yet.

Just ignore the error and continue.
 
Old 09-23-2006, 01:54 PM   #12
status1
Member
 
Registered: Sep 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Hello,
Well that's what I figured at first that's why I continued untill I got to page 56 with the specfile in which you said that it's pointless to go further if I don't resolve earlier problems.
So now that I can ignore this error I will continue on the other post about the specfile
 
  


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
Makefile must have it own file name? backpacker Linux - Software 1 07-05-2005 04:32 AM
SMTP 415 error kinkybullet Linux - Newbie 0 05-13-2004 09:42 PM
Config File in build directory dwessell Mandriva 1 05-08-2004 07:39 PM
Compiling old code: Makefile plus config.in cbcallaw Linux - Software 1 04-29-2004 05:35 PM
Makefile:66: *** Cannot find a kernel config file. Stop NHBlacklabs Linux - Newbie 7 03-25-2004 04:03 AM

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

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