Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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
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 ?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.