LinuxQuestions.org
Review your favorite Linux distribution.
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-27-2011, 02:02 PM   #1
Xerodark
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
[SOLVED]CLFS Linux API headers problem


Hello,

I've been browsing for awhile now and haven't had any luck on finding a solution to my problem. A few days ago, I decided I wanted to give LFS a go so I could learn more about Linux. I have some experience with Gentoo as I have used it before. The problem I am having is in CLFS at step 5.5.1 Installation of Linux Headers. When I try to install the /tools/include directory I get the following error:

Code:
clfs@Undercity:/mnt/clfs/sources/linux-2.6.39$ install -dv /tools/include
install: cannot create directory `/tools': File exists
I went back to step 4.2 thinking I didn't create the tools directory right and repeated the steps and still get the same problem. I have been googling for the last hour trying to find a workaround or fix, but to no avail. Any help would be greatly appreciated. Thank you.

Last edited by Xerodark; 11-28-2011 at 09:32 PM. Reason: Solved the problem.
 
Old 11-28-2011, 07:30 AM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
My advice would be to just mkdir /tools/include, set any permissions manually (if you care), and soldier on.

But that is very curious. What version of install are you using?

In the Coreutils 8.14 source, there are only a few references to error EEXIST ("File exists"). 3 in copy.c, 2 in rmdir.c, 2 in ln.c. install.c calls into copy.c a few times, but none of them are in an EEXIST path. So, I'm not sure how it could be getting triggered.
 
Old 11-28-2011, 08:05 AM   #3
magiknight
Member
 
Registered: Oct 2003
Posts: 37

Rep: Reputation: 4
Quote:
Originally Posted by Xerodark View Post
Hello,

I've been browsing for awhile now and haven't had any luck on finding a solution to my problem. A few days ago, I decided I wanted to give LFS a go so I could learn more about Linux. I have some experience with Gentoo as I have used it before. The problem I am having is in CLFS at step 5.5.1 Installation of Linux Headers. When I try to install the /tools/include directory I get the following error:

Code:
clfs@Undercity:/mnt/clfs/sources/linux-2.6.39$ install -dv /tools/include
install: cannot create directory `/tools': File exists
I went back to step 4.2 thinking I didn't create the tools directory right and repeated the steps and still get the same problem. I have been googling for the last hour trying to find a workaround or fix, but to no avail. Any help would be greatly appreciated. Thank you.
Check /mnt/clfs/tools is it a file or directory?
The symlink /tools just points to /mnt/clfs/tools.
 
Old 11-28-2011, 09:21 PM   #4
Xerodark
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
I'm not really sure what the issue was, but to fix the problem I rebuilt Gentoo and started over with the CLFS Development book. So far it's building just fine at step 5.10. This is a very interesting experience building LFS. Thank you for the help everyone.
 
  


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
[SOLVED] 6.7. Linux-2.6.35.4 API Headers patrick.h Linux From Scratch 3 02-09-2011 01:12 PM
Problem with 6.7.1. Installation of Linux API Headers basheer Linux From Scratch 5 10-15-2010 02:29 PM
Linux-2.6.22.5 API Headers jaen Linux - Newbie 1 09-10-2009 02:16 AM
Installation of Linux API Headers... crik91 Linux From Scratch 7 01-05-2008 03:11 PM
Installation of Linux API Headers martinwprior Linux From Scratch 3 09-28-2007 01:19 AM

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

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