LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2017, 08:08 AM   #1
octagonking
LQ Newbie
 
Registered: Mar 2017
Location: Krypton
Distribution: Centos 7, Ubuntu
Posts: 6

Rep: Reputation: Disabled
Unhappy 5.9. Binutils-2.27 - Pass 2 ... make install gives me error of permission denied


hi folks, i have managed to make the binutils pass 2 but make install give me error in the end which denies the permission .. yes i have done chapter 3 and 4 with root and i don't know why this error again .. here is the code:
Code:
make[4]: Leaving directory '/mnt/lfs/sources/binutils-2.27/build/ld'
make[3]: Leaving directory '/mnt/lfs/sources/binutils-2.27/build/ld'
make[2]: Leaving directory '/mnt/lfs/sources/binutils-2.27/build/ld'
make[1]: Nothing to be done for 'all-target'.
make[1]: Leaving directory '/mnt/lfs/sources/binutils-2.27/build'
make[1]: Entering directory '/mnt/lfs/sources/binutils-2.27/build'
/bin/sh ../mkinstalldirs /tools /tools
make[2]: Entering directory '/mnt/lfs/sources/binutils-2.27/build/bfd'
make  install-recursive
make[3]: Entering directory '/mnt/lfs/sources/binutils-2.27/build/bfd'
Making install in doc
make[4]: Entering directory '/mnt/lfs/sources/binutils-2.27/build/bfd/doc'
 /tools/bin/mkdir -p '/tools/share/info'
/tools/bin/mkdir: cannot create directory '/tools/share/info': Permission denied
make[4]: *** [Makefile:723: install-info-am] Error 1
make[4]: Leaving directory '/mnt/lfs/sources/binutils-2.27/build/bfd/doc'
make[3]: *** [Makefile:1711: install-recursive] Error 1
make[3]: Leaving directory '/mnt/lfs/sources/binutils-2.27/build/bfd'
make[2]: *** [Makefile:1848: install] Error 2
make[2]: Leaving directory '/mnt/lfs/sources/binutils-2.27/build/bfd'
make[1]: *** [Makefile:2793: install-bfd] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/binutils-2.27/build'
make: *** [Makefile:2256: install] Error 2
lfs@rahimullah-VirtualBox:/mnt/lfs/sources/binutils-2.27/build$ ls -ls /tools/share/info
ls: cannot access '/tools/share/info': No such file or directory
lfs@rahimullah-VirtualBox:/mnt/lfs/sources/binutils-2.27/build$ ls -la /tools/share/info
ls: cannot access '/tools/share/info': No such file or directory
lfs@rahimullah-VirtualBox:/mnt/lfs/sources/binutils-2.27/build$ ls -la /tools/share/    
total 56
drwxr-xr-x 14 root root 4096 Mar  9 16:00 .
drwxr-xr-x 12 root root 4096 Mar  9 16:00 ..
drwxr-xr-x  2 root root 4096 Mar  9 14:58 aclocal
drwxr-xr-x  2 root root 4096 Mar  9 15:18 awk
drwxr-xr-x  3 root root 4096 Mar  9 15:53 bash-completion
drwxr-xr-x  4 root root 4096 Mar  9 14:58 bison
drwxr-xr-x  5 root root 4096 Mar  9 13:59 dejagnu
drwxr-xr-x  3 root root 4096 Mar  9 11:21 gcc-6.3.0
drwxr-xr-x  4 root root 4096 Mar  9 11:05 i18n
drwxr-xr-x 62 root root 4096 Mar  9 15:49 locale
drwxr-xr-x  2 root root 4096 Mar  9 15:13 misc
drwxr-xr-x  2 root root 4096 Mar  9 14:27 tabset
drwxr-xr-x 44 root root 4096 Mar  9 14:27 terminfo
drwxr-xr-x  7 root root 4096 Mar  9 15:49 texinfo
lfs@rahimullah-VirtualBox:/mnt/lfs/sources/binutils-2.27/build$ ls -la /tools/
total 64
drwxr-xr-x 12 root root  4096 Mar  9 16:00 .
drwxr-xr-x 26 root root  4096 Mar  9 08:56 ..
drwxr-xr-x  2 root root 12288 Mar  9 16:00 bin
drwxr-xr-x  2 root root  4096 Mar  9 11:05 etc
drwxr-xr-x 41 root root  4096 Mar  9 15:55 include
drwxr-xr-x 12 root root 12288 Mar  9 15:57 lib
lrwxrwxrwx  1 root root     3 Mar  9 10:09 lib64 -> lib
drwxr-xr-x  6 root root  4096 Mar  9 15:47 libexec
drwxr-xr-x  2 root root  4096 Mar  9 16:00 sbin
drwxr-xr-x 14 root root  4096 Mar  9 16:00 share
lrwxrwxrwx  1 root root    14 Mar  9 09:36 tools -> /mnt/lfs/tools
drwxr-xr-x  3 root root  4096 Mar  9 11:05 var
drwxr-xr-x  5 root root  4096 Mar  9 11:21 x86_64-lfs-linux-gnu
drwxr-xr-x  4 root root  4096 Mar  9 11:28 x86_64-pc-linux-gnu
lfs@rahimullah-VirtualBox:/mnt/lfs/sources/binutils-2.27/build$ ls -la /tools/share/
total 56
drwxr-xr-x 14 root root 4096 Mar  9 16:00 .
drwxr-xr-x 12 root root 4096 Mar  9 16:00 ..
drwxr-xr-x  2 root root 4096 Mar  9 14:58 aclocal
drwxr-xr-x  2 root root 4096 Mar  9 15:18 awk
drwxr-xr-x  3 root root 4096 Mar  9 15:53 bash-completion
drwxr-xr-x  4 root root 4096 Mar  9 14:58 bison
drwxr-xr-x  5 root root 4096 Mar  9 13:59 dejagnu
drwxr-xr-x  3 root root 4096 Mar  9 11:21 gcc-6.3.0
drwxr-xr-x  4 root root 4096 Mar  9 11:05 i18n
drwxr-xr-x 62 root root 4096 Mar  9 15:49 locale
drwxr-xr-x  2 root root 4096 Mar  9 15:13 misc
drwxr-xr-x  2 root root 4096 Mar  9 14:27 tabset
drwxr-xr-x 44 root root 4096 Mar  9 14:27 terminfo
drwxr-xr-x  7 root root 4096 Mar  9 15:49 texinfo
 
Old 03-14-2017, 12:18 PM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,053
Blog Entries: 17

Rep: Reputation: 4232Reputation: 4232Reputation: 4232Reputation: 4232Reputation: 4232Reputation: 4232Reputation: 4232Reputation: 4232Reputation: 4232Reputation: 4232Reputation: 4232
Everything in /tools seems to belong to root. It should belong to the LFS user. See chapter 4, section 3.
 
1 members found this post helpful.
Old 03-14-2017, 12:22 PM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693
You've definitely skipped some reading and some steps.

I suggest printing out the section you are working on and marking it with checks as you finish doing it.

I also suggest that you understand what has been explained before copying/pasting/blind typing of commands.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
binutils cannot open: Permission denied error. roshgorg Linux From Scratch 10 03-14-2017 09:18 AM
[SOLVED] LFS 7.7 Section 5.9 (binutils second pass) error during make thegoofeedude Linux From Scratch 8 09-08-2015 04:28 AM
[SOLVED] mkdir: permission denied during binutils make install andrea_g90 Linux From Scratch 36 11-06-2010 03:31 PM
Error in make process of binutils-2.16.1 (pass 1) sanjeet_guddu Linux From Scratch 3 09-26-2007 05:17 AM
make: *** [configure-libiberty] Error 1 in 5.4. Binutils-2.15.91.0.2 - Pass 1 Flash_G Linux From Scratch 3 06-30-2005 08:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:34 PM.

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