LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   [SOLVED]CLFS Linux API headers problem (https://www.linuxquestions.org/questions/linux-from-scratch-13/%5Bsolved%5Dclfs-linux-api-headers-problem-915838/)

Xerodark 11-27-2011 02:02 PM

[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.

jhwilliams 11-28-2011 07:30 AM

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.

magiknight 11-28-2011 08:05 AM

Quote:

Originally Posted by Xerodark (Post 4535460)
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.

Xerodark 11-28-2011 09:21 PM

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.


All times are GMT -5. The time now is 12:38 AM.