LinuxQuestions.org
Review your favorite Linux distribution.
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 10-18-2014, 01:28 PM   #1
aashil16
LQ Newbie
 
Registered: Oct 2014
Posts: 22

Rep: Reputation: Disabled
mkdir: cannot create directory '../binutils-build': Permission denied


Hi,

I am trying to compile LFS version 7.6 . I get a strange error when I create a directory binutils-build by the following command

Quote:
mkdir -v ../binutils-build
Error:
Quote:
mkdir: cannot create directory '../binutils-build': Permission denied
I tried using sudo but it says lfs is not in sudoers file.

Here is the output of the version check. I use ubuntu 14.04 64bit @spiky0011

bash version-check.sh
Quote:
bash, version 4.3.11(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.24
version-check.sh: line 8: bison: command not found
yacc not found
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.21
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
version-check.sh: line 17: gawk: command not found
/usr/bin/awk -> /usr/bin/mawk
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
version-check.sh: line 23: g++: command not found
(Ubuntu EGLIBC 2.19-0ubuntu6) 2.19
grep (GNU grep) 2.16
gzip 1.6
Linux version 3.13.0-37-generic (buildd@kapok) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014
version-check.sh: line 28: m4: command not found
GNU Make 3.81
GNU patch 2.7.1
Perl version='5.18.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
xz (XZ Utils) 5.1.0alpha
version-check.sh: line 36: g++: command not found
g++ compilation failed
bash library-check.sh
Quote:
libgmp.la: not found
libmpfr.la: not found
libmpc.la: not found
PS: I logged in using su - lfs
PPS: I get this error at section 5.4.1 in the book(version 7.6)

Last edited by aashil16; 10-18-2014 at 01:29 PM.
 
Old 10-18-2014, 01:43 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 1st correct your host errors

Quote:
bash, version 4.3.11(1)-release
/bin/sh -> /bin/dash /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.24
version-check.sh: line 8: bison: command not found <<<<<<
yacc not found <<<<<
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.21
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
version-check.sh: line 17: gawk: command not found <<<<<<
/usr/bin/awk -> /usr/bin/mawk /usr/bin/gawk
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
version-check.sh: line 23: g++: command not found <<<<<
(Ubuntu EGLIBC 2.19-0ubuntu6) 2.19
grep (GNU grep) 2.16
gzip 1.6
Linux version 3.13.0-37-generic (buildd@kapok) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014
version-check.sh: line 28: m4: command not found <<<<<<<
GNU Make 3.81
GNU patch 2.7.1
Perl version='5.18.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
xz (XZ Utils) 5.1.0alpha
version-check.sh: line 36: g++: command not found
g++ compilation failed
Then try again

Last edited by spiky0011; 10-18-2014 at 01:45 PM.
 
1 members found this post helpful.
Old 10-18-2014, 05:58 PM   #3
aashil16
LQ Newbie
 
Registered: Oct 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Hi 1st correct your host errors



Then try again
Hi @spiky0011 I found the solution to my problem. Actually I was using mkdir ../(whatever) on lfs' home directory hence it was trying to create a folder in root's user's directory which is not allowed.

Btw, I am new to linux and a bit curious. Can you help me understand what error occurs in the output of the version check(and how to solve) which you just pointed out in the last post ?
 
Old 10-19-2014, 12:35 AM   #4
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

1st you will not be able to build LFS unless all the above problems are fixed, do not bother continuing. Where it sayes not found thats the clue you need to install missing software, use google to help.
When you think you have got it right repost the output again to be checked.

This part is ok you dont need to install these "it is mentioned in the book"
Quote:
libgmp.la: not found
libmpfr.la: not found
libmpc.la: not found
Also what version of LFS are you building?

Last edited by spiky0011; 10-19-2014 at 12:55 AM.
 
Old 10-19-2014, 04:42 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Deleted
 
Old 10-19-2014, 10:07 AM   #6
aashil16
LQ Newbie
 
Registered: Oct 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
I solved all the errors. Here is the output of the version check. And I am building LFS v7.6

Quote:
bash, version 4.3.11(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.24
bison (GNU Bison) 3.0.2
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.21
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.0.1
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
(Ubuntu EGLIBC 2.19-0ubuntu6) 2.19
grep (GNU grep) 2.16
gzip 1.6
Linux version 3.13.0-37-generic (buildd@kapok) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014
m4 (GNU M4) 1.4.17
GNU Make 3.81
GNU patch 2.7.1
Perl version='5.18.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
xz (XZ Utils) 5.1.0alpha
g++ compilation OK
 
Old 10-19-2014, 10:11 AM   #7
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
Thats all good now, Follow the book it will build
 
  


Reply

Tags
lfs error



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
mkdir: cannot create directory `work': Permission denied NikeshVarghese Linux - Newbie 1 06-13-2012 02:43 AM
[SOLVED] mkdir: cannot create directory `/mnt/lfs': Permission denied dwmolyneux Linux From Scratch 2 06-03-2012 03:20 AM
mkdir -v ../binutils-build' : Permission denied mich04 Mandriva 3 12-18-2011 02:27 PM
mkdir ../binutils-build gives me "Permission Denied"!!! matthewa Linux From Scratch 16 06-29-2005 07:00 AM
mkdir ../binutils-build permission denied TheBman Linux From Scratch 11 02-16-2004 08:39 AM

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

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