LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-14-2016, 09:02 AM   #1
sudo_maas
LQ Newbie
 
Registered: Jun 2016
Posts: 16

Rep: Reputation: Disabled
LFS Build 7.9: Chapter 6.7: "bash: make: command not found"


Hello,

I am currently a bit into my first LFS build. I am currently at Chapter 6.7: Linux 4-4-2 API Headers.

At first, I accidentally ran the commands as the LFS user, but I am unsure if that is what is causing the issue. Once I realized my mistake, I went back to chroot, changed to the sources directory, unzipped the package, changed into the newly created directory, went to run the "make mrporper" command and got back "bash: make: command not found"

I tried to search what may cause this error but have not be able to gather up much. The command "make" worked fine for the LFS user but seems to be gone for my chroot user.

Any advice on what to do? I saw some others had gcc errors caused by missing links. Below is the output of links for make. Not sure if it'll help, but I figure if it might it's worth a shot.

root:/# ls -l tools/bin/ | grep "make"
-rwxr-xr-x 1 root root 13908 Jun 14 12:46 makedb
lrwxrwxrwx 1 root root 8 Jun 13 16:53 makeinfo -> texi2any

****UPDATE****
I tried to reinstall "make" through the LFS user. Everything passed on the checks, but when i ran "make install," I got the following errors:
lfs:/mnt/lfs/sources/make-4.1$ make install
Making install in glob
make[1]: Entering directory '/mnt/lfs/sources/make-4.1/glob'
make[2]: Entering directory '/mnt/lfs/sources/make-4.1/glob'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/mnt/lfs/sources/make-4.1/glob'
make[1]: Leaving directory '/mnt/lfs/sources/make-4.1/glob'
Making install in config
make[1]: Entering directory '/mnt/lfs/sources/make-4.1/config'
make[2]: Entering directory '/mnt/lfs/sources/make-4.1/config'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/mnt/lfs/sources/make-4.1/config'
make[1]: Leaving directory '/mnt/lfs/sources/make-4.1/config'
Making install in po
make[1]: Entering directory '/mnt/lfs/sources/make-4.1/po'
/tools/bin/install: cannot create regular file '/tools/share/locale/be/LC_MESSAGES/make.mo': Permission denied
installing be.gmo as /tools/share/locale/be/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/cs/LC_MESSAGES/make.mo': Permission denied
installing cs.gmo as /tools/share/locale/cs/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/da/LC_MESSAGES/make.mo': Permission denied
installing da.gmo as /tools/share/locale/da/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/de/LC_MESSAGES/make.mo': Permission denied
installing de.gmo as /tools/share/locale/de/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/es/LC_MESSAGES/make.mo': Permission denied
installing es.gmo as /tools/share/locale/es/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/fi/LC_MESSAGES/make.mo': Permission denied
installing fi.gmo as /tools/share/locale/fi/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/fr/LC_MESSAGES/make.mo': Permission denied
installing fr.gmo as /tools/share/locale/fr/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/ga/LC_MESSAGES/make.mo': Permission denied
installing ga.gmo as /tools/share/locale/ga/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/gl/LC_MESSAGES/make.mo': Permission denied
installing gl.gmo as /tools/share/locale/gl/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/he/LC_MESSAGES/make.mo': Permission denied
installing he.gmo as /tools/share/locale/he/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/hr/LC_MESSAGES/make.mo': Permission denied
installing hr.gmo as /tools/share/locale/hr/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/id/LC_MESSAGES/make.mo': Permission denied
installing id.gmo as /tools/share/locale/id/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/it/LC_MESSAGES/make.mo': Permission denied
installing it.gmo as /tools/share/locale/it/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/ja/LC_MESSAGES/make.mo': Permission denied
installing ja.gmo as /tools/share/locale/ja/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/ko/LC_MESSAGES/make.mo': Permission denied
installing ko.gmo as /tools/share/locale/ko/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/lt/LC_MESSAGES/make.mo': Permission denied
installing lt.gmo as /tools/share/locale/lt/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/nl/LC_MESSAGES/make.mo': Permission denied
installing nl.gmo as /tools/share/locale/nl/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/pl/LC_MESSAGES/make.mo': Permission denied
installing pl.gmo as /tools/share/locale/pl/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/pt_BR/LC_MESSAGES/make.mo': Permission denied
installing pt_BR.gmo as /tools/share/locale/pt_BR/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/ru/LC_MESSAGES/make.mo': Permission denied
installing ru.gmo as /tools/share/locale/ru/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/sv/LC_MESSAGES/make.mo': Permission denied
installing sv.gmo as /tools/share/locale/sv/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/tr/LC_MESSAGES/make.mo': Permission denied
installing tr.gmo as /tools/share/locale/tr/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/uk/LC_MESSAGES/make.mo': Permission denied
installing uk.gmo as /tools/share/locale/uk/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/vi/LC_MESSAGES/make.mo': Permission denied
installing vi.gmo as /tools/share/locale/vi/LC_MESSAGES/make.mo
/tools/bin/install: cannot create regular file '/tools/share/locale/zh_CN/LC_MESSAGES/make.mo': Permission denied
installing zh_CN.gmo as /tools/share/locale/zh_CN/LC_MESSAGES/make.mo
if test "make" = "gettext-tools"; then \
/tools/bin/mkdir -p /tools/share/gettext/po; \
for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \
/tools/bin/install -c -m 644 ./$file \
/tools/share/gettext/po/$file; \
done; \
for file in Makevars; do \
rm -f /tools/share/gettext/po/$file; \
done; \
else \
: ; \
fi
make[1]: Leaving directory '/mnt/lfs/sources/make-4.1/po'
Making install in doc
make[1]: Entering directory '/mnt/lfs/sources/make-4.1/doc'
make[2]: Entering directory '/mnt/lfs/sources/make-4.1/doc'
make[2]: Nothing to be done for 'install-exec-am'.
/tools/bin/mkdir -p '/tools/share/info'
/tools/bin/install -c -m 644 ./make.info ./make.info-1 ./make.info-2 '/tools/share/info'
/tools/bin/install: cannot create regular file '/tools/share/info/make.info': Permission denied
/tools/bin/install: cannot create regular file '/tools/share/info/make.info-1': Permission denied
/tools/bin/install: cannot create regular file '/tools/share/info/make.info-2': Permission denied
Makefile:685: recipe for target 'install-info-am' failed
make[2]: *** [install-info-am] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/make-4.1/doc'
Makefile:589: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/make-4.1/doc'
Makefile:762: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

Last edited by sudo_maas; 06-14-2016 at 09:29 AM. Reason: new info
 
Old 06-14-2016, 12:03 PM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,591
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Quote:
Originally Posted by sudo_maas View Post

root:/# ls -l tools/bin/ | grep "make"
-rwxr-xr-x 1 root root 13908 Jun 14 12:46 makedb
lrwxrwxrwx 1 root root 8 Jun 13 16:53 makeinfo -> texi2any
Make should be in /tools/bin so it looks like you missed it out when you did chapter 5. The order of creation of packages is not as crucial in this chapter as it is in chapter 6 (once you have installed the triad of binutils/gcc/libc) so you can probably get away with creating make now. You will need to follow carefully the chapter 5 instructions. This means working as the LFS user, not in chroot, and using "--prefix=/tools". In addition, you will need to temporarily change the ownership of the tools directory and all its contents back to the LFS user before doing the install (they were reassigned to root at the end of chapter 5). The installation errors you report are probably caused by failure to do this.
 
1 members found this post helpful.
Old 06-15-2016, 08:03 AM   #3
tnut
NuTyX Founder
 
Registered: May 2016
Location: Switzerland
Distribution: NuTyX
Posts: 136

Rep: Reputation: Disabled
Your make compilation went wrong in chapter 5. And now you get all thoses errors because you already did the command:

Code:
chown -R root:root $LFS/tools
from chapter 5.36

I guess the best is to restart from zero. If it can help you, you can always consult my logs of my last weekly try in 64 bits:

Pass1 :
http://downloads.nutyx.org/logs/deve...x86_64/chroot/

Pass2 :
http://downloads.nutyx.org/logs/deve...t/x86_64/base/

Last edited by tnut; 06-15-2016 at 08:10 AM.
 
1 members found this post helpful.
Old 06-15-2016, 08:11 AM   #4
sudo_maas
LQ Newbie
 
Registered: Jun 2016
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thank you! It seems it does not want to change any ownerships within the /tools directory. I keep getting the same error. I think what I am going to do is remove everything and do it over again. If anything, I am going to get really good at setting up the host system! Thank you again for your help!!!

Last edited by sudo_maas; 06-23-2016 at 07:26 AM. Reason: added info
 
  


Reply



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
[SOLVED] LFS 7.3 / Chapter 6.27.1 / Page 132 / Error From "su nobody ...make check..." hexiang Linux From Scratch 3 08-29-2013 10:32 PM
[SOLVED] LFS 7.3 / Chapter 6.17.1 / Page 108 / Error from " make -k check " Drumachine Linux From Scratch 5 08-19-2013 04:19 AM
[SOLVED] "bash: make: command not found" on CentOS 6 TehGoat Linux - Software 3 11-20-2011 03:06 PM
build Cinelerra 2.1 for x86_64, bash "arch" command not found? newtovanilla Linux - Newbie 4 07-08-2008 05:28 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM

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

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