LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Permission error in Binutils while "make install" (https://www.linuxquestions.org/questions/linux-from-scratch-13/permission-error-in-binutils-while-make-install-4175440607/)

Prabhu.Are 12-08-2012 02:45 PM

Permission error in Binutils while "make install"
 
Hi I'm getting permission error while "make install" the binutil package, but I could successfully able to create folder in all the 3 dir (source,tools,usr) with the user lfs. I rollback and reperformed the chapter 4.1 to 4.4, but I'm still facing the issue.


lfs@logun-HP-Pavilion-dv6-Notebook-PC:/mnt/lfs/sources/binutils-build$ make install
make[1]: Entering directory `/mnt/lfs/sources/binutils-build'
/bin/sh ../binutils-2.22/mkinstalldirs /tools--with-sysroot=/mnt/lfs--with-lib-path=/tools/lib--target=i686-lfs-linux-gnu /tools--with-sysroot=/mnt/lfs--with-lib-path=/tools/lib--target=i686-lfs-linux-gnu
mkdir -p -- /tools--with-sysroot=/mnt/lfs--with-lib-path=/tools/lib--target=i686-lfs-linux-gnu /tools--with-sysroot=/mnt/lfs--with-lib-path=/tools/lib--target=i686-lfs-linux-gnu
mkdir: cannot create directory `/tools--with-sysroot=': Permission denied
mkdir: cannot create directory `/tools--with-sysroot=': Permission denied
make[1]: *** [installdirs] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
make: *** [install] Error 2
lfs@logun-HP-Pavilion-dv6-Notebook-PC:/mnt/lfs/sources/binutils-build$


Keith Hedger 12-09-2012 07:15 AM

Quote:

Originally Posted by Prabhu.Are (Post 4845355)
...
lfs@logun-HP-Pavilion-dv6-Notebook-PC:/mnt/lfs/sources/binutils-build$ make install
make[1]: Entering directory `/mnt/lfs/sources/binutils-build'
/bin/sh ../binutils-2.22/mkinstalldirs /tools--with-sysroot=/mnt/lfs--with-lib-path=/tools/lib--target=i686-lfs-linux-gnu /tools--with-sysroot=/mnt/lfs--with-lib-path=/tools/lib--target=i686-lfs-linux-gnu
mkdir -p -- /tools--with-sysroot=/mnt/lfs--with-lib-path=/tools/lib--target=i686-lfs-linux-gnu /tools--with-sysroot=/mnt/lfs--with-lib-path=/tools/lib--target=i686-lfs-linux-gnu
mkdir: cannot create directory `/tools--with-sysroot=': Permission denied
mkdir: cannot create directory `/tools--with-sysroot=': Permission denied
make[1]: *** [installdirs] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
make: *** [install] Error 2
lfs@logun-HP-Pavilion-dv6-Notebook-PC:/mnt/lfs/sources/binutils-build$...

This looks wrong as there are no spaces anywhere!
Try running configure again and make sure you preserve spaces between options, if that doesn't work post the configure command.


All times are GMT -5. The time now is 03:00 AM.