LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   gcc make install problem (https://www.linuxquestions.org/questions/linux-from-scratch-13/gcc-make-install-problem-714151/)

jpeters 03-24-2009 04:17 PM

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


jpeters 03-25-2009 04:39 AM

I'll have to build this on a more robust system.

Japie 03-25-2009 05:03 AM

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

jpeters 03-25-2009 10:26 AM

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.


All times are GMT -5. The time now is 10:36 AM.