LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-24-2009, 04:17 PM   #1
jpeters
Member
 
Registered: Mar 2009
Posts: 30

Rep: Reputation: 16
gcc make install problem


I've built gcc with 'make', and used the '--prefix=/tool' when
configuring, as suggested. It looks like it's trying to install into my
host directories instead of my lfs directory.

Code:
make[1]: Entering directory `/mnt/hda4/lfs/gcc-build'
/bin/bash ../gcc-4.3.2/mkinstalldirs /usr/local /usr/local
make[2]: Entering directory `/mnt/hda4/lfs/gcc-build/fixincludes'
rm -rf /usr/local/libexec/gcc/i686-pc-linux-gnu/4.3.2/install-tools
/bin/bash ../../gcc-4.3.2/fixincludes/../mkinstalldirs /usr/local/libexec/gcc/i686-pc-linux-gnu/4.3.2/install-tools 
mkdir -p -- /usr/local/libexec/gcc/i686-pc-linux-gnu/4.3.2/install-tools
mkdir: cannot create directory `/usr/local/libexec': Permission denied
make[2]: *** [install] Error 1
make[2]: Leaving directory `/mnt/hda4/lfs/gcc-build/fixincludes'
make[1]: *** [install-fixincludes] Error 2
make[1]: Leaving directory `/mnt/hda4/lfs/gcc-build'
make: *** [install] Error 2
 
Old 03-25-2009, 04:39 AM   #2
jpeters
Member
 
Registered: Mar 2009
Posts: 30

Original Poster
Rep: Reputation: 16
I'll have to build this on a more robust system.
 
Old 03-25-2009, 05:03 AM   #3
Japie
LQ Newbie
 
Registered: Mar 2009
Posts: 27

Rep: Reputation: 16
make fails

Which OS are you using ?
Are you root ?

check to see if the dir `/usr/local/libexec' already exists, and if you've got enough diskspace
 
Old 03-25-2009, 10:26 AM   #4
jpeters
Member
 
Registered: Mar 2009
Posts: 30

Original Poster
Rep: Reputation: 16
I was trying to do this in tiny-Core linux, as lfs user. If I ran as root, it could overwrite the host system files...making it pointless for setting up lfs user. I'm going to try this using puppy linux.

Edit: Works fine in puppy.

Last edited by jpeters; 03-26-2009 at 12:03 AM.
 
  


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
gcc compiling errors when i do make install TheBrick Linux - Software 2 03-09-2006 10:29 AM
gcc/make problem zach0616 SUSE / openSUSE 1 07-10-2005 06:50 PM
gcc-3.3.3 make install error Louis_Carole Linux From Scratch 4 07-31-2004 03:14 PM
How do i install gcc bc and make rpm's Mint Sauce Linux - General 1 03-28-2004 12:39 PM
slackware 9 what packages do i have to install to make my gcc work zeroversion Linux - Software 1 11-26-2003 11:19 AM

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

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