LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-14-2012, 01:05 PM   #1
jackplughd
LQ Newbie
 
Registered: Jan 2010
Posts: 22

Rep: Reputation: 0
Angry make install fails for patch-2.6.1


Hi all,

I have tried LFS before and failed for a variety of reasons, but I am persistant.
My problem may well be connected to the fact that my laptop had a problem returning from hibernation and did a full restart. When I fired up a terminal, although $LFS was still set to /mnt/lfs, and lfs user and group still existed, when I did ls against $LFS as user lfs it was empty (I had previously built up to 5.27 Make-3.82).
In Nautilus I found sources and tools directories and so copied them as root in the terminal to $LFS (/mnt/lfs). I then switched to user lfs and tried to build patch-2.6.1. Configure was fine, make was fine, make check had no errors, all passes, but when I did make install I got the following:

lfs@phoenix /mnt/lfs/sources/patch-2.6.1 $ make install
/bin/sh ./mkinstalldirs /tools/bin /tools/share/man/man1
/tools/bin/install -c src/patch /tools/bin/`echo patch | sed 's,x,x,'`
/tools/bin/install: cannot create regular file `/tools/bin/patch': Permission denied
make: *** [install] Error 1

It looks like a permissions error, but the 3 previous steps, configure and make and make check, all worked fine.

I am building LFS 7.1 and using linux mint lisa.

Hope someone can help, otherwise I will have to start from scratch (sorry for the pun).

jack
 
Old 03-14-2012, 01:18 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

!st is it possible to stop your machine from going into hibernate? either in the bios or settings in mint.

2nd as it rebooted maybe you should of remounted everything. As per book
 
Old 03-14-2012, 01:43 PM   #3
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 jackplughd,

Both points mentioned by spiky0011 are also valid. Have a look at the mount commands first, it might be that all is still there but not yet mounted (re-visit chapter 2 and only execute the mount command(s)).

If that doesn't solve the problem:

You mention copying files as root user, which might be a (big?) problem. All of chapter 5 is done as user lfs, which explains the permission denied messages when trying to install them.

You might try setting the permissions for all in $LFS to lfs/lfs. I'm not 100% sure that this will solve the permission denied errors, I would personally start from scratch. If you do want ti give it a try (as root user):
Code:
$ cd $LFS
chown -R lfs:lfs *
Hope this helps.
 
Old 03-15-2012, 05:06 AM   #4
jackplughd
LQ Newbie
 
Registered: Jan 2010
Posts: 22

Original Poster
Rep: Reputation: 0
make install fails for patch-2.6.1 SOLVED

All,

Thanks for the replies.

Spikey0011: I could disable hibernation but would prefer not to. Up until this point my machine had hibernated a number of times and not had a problem when I came to resume the LFS build. However if this problem reoccurs then I will certainly go with your suggestion.
I followed your suggestion or remounting but don't really know whether this contributed to the solution, but it can't have hurt.

druuna: I went with your suggestion of globally changing the file permissions, and re ran make install. It worked fine this time.

Thanks again for all the help people. I am sure to need more help along the way, so see you later.

jack
 
  


Reply

Tags
lfs, patch



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
trouble with xvidcap-1.1.7, make install fails throughthegreens Linux - Software 1 02-05-2010 11:58 PM
pango install fails on make install Seph64 Linux From Scratch 1 10-15-2005 11:17 PM
make install fails for BBTV... no TV for me :( jimdaworm Linux - Newbie 11 05-10-2005 10:32 PM
mplayerplug-in 2.8 fails to make install awing_pilot Linux - Software 2 03-12-2005 05:30 PM
Slack 9.1 kernel 2.6.1 make install fails LoungeLizard Slackware 2 01-31-2004 05:39 PM

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

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