LinuxQuestions.org
Help answer threads with 0 replies.
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 02-17-2018, 07:27 PM   #1
100shrimp
LQ Newbie
 
Registered: Feb 2018
Posts: 5

Rep: Reputation: Disabled
Question Cannot find m4-1.4.18 in chapter 6


We are working through LFS for our first time and have made it to chapter six. We are having trouble finding m4-1.4.18 to complete section 6.14. We downloaded earlier on in the book. We're not positive if we configured it properly in chapter five. What should we do now?
 
Old 02-17-2018, 07:41 PM   #2
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
I'd make sure the environment variables are still as they were when you were building chapter 5, than build 5.27, before continuing with chapter 6.
 
Old 02-17-2018, 08:08 PM   #3
100shrimp
LQ Newbie
 
Registered: Feb 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by Mill J View Post
I'd make sure the environment variables are still as they were when you were building chapter 5, than build 5.27, before continuing with chapter 6.
We found that the environment variable was not set up so we ran export LFS=/mnt/lfs. echo $LFS shows /mnt/lfs now but we still cant find m4-1.4.18. Is there another step we need to take?
 
Old 02-17-2018, 08:32 PM   #4
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
exit your chroot environment, return to chapter 4.3 and run the last command in that section(su - lfs).

Then make sure you're environment variables are right.

Next continue to chapter 5.27 and build m4.

Run exit to exit lfs account.

Finally return to your chroot.

Hope this helps.

Last edited by Mill J; 02-17-2018 at 08:33 PM.
 
Old 02-17-2018, 08:48 PM   #5
100shrimp
LQ Newbie
 
Registered: Feb 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mill J View Post
exit your chroot environment, return to chapter 4.3 and run the last command in that section(su - lfs).

Then make sure you're environment variables are right.

Next continue to chapter 5.27 and build m4.

Run exit to exit lfs account.

Finally return to your chroot.

Hope this helps.
We exited the chroot environment and logged in to lfs. Now, after downloading m4-1.4.18, we're not able to configure the file. Configure: error: C compiler cannot create executables.
 
Old 02-17-2018, 09:05 PM   #6
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
While logged in as lfs what does echo $PATH return?
 
Old 02-17-2018, 09:08 PM   #7
100shrimp
LQ Newbie
 
Registered: Feb 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
It returns /tools/bin:/bin:/usr/bin
 
Old 02-17-2018, 09:15 PM   #8
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Did you change the owner of the m4 folder to lfs via chown?
 
Old 02-17-2018, 09:38 PM   #9
100shrimp
LQ Newbie
 
Registered: Feb 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
we tried changing the ownership but it said lfs was an invalid user, but we're pretty inexperienced with chown. We put in chown lfs:lfs m4-1.4.18
 
Old 02-17-2018, 10:50 PM   #10
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
So you tried to run sudo while logged in as lfs? lfs is not a member of the sudo group therefore log out and as your regular user run sudo chown. Then log back in as lfs.

Also what is your host system?
 
  


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.1, Chapter 5.4.1 fatal error: cannot find 'ld' engineer Linux From Scratch 15 12-13-2012 10:06 PM
LFS chapter-by-chapter complete commands with notes DrinkinHomeBrew Linux From Scratch 6 03-16-2012 01:57 AM
[CLFS] E2fsprogs in chapter 7.5 - Can't find libblkid SkepticalMystic Linux From Scratch 1 10-01-2010 01:36 AM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM
Chapter 5.7 Adjusting Toolchains... Find error speedbird889 Linux From Scratch 3 03-26-2008 08:44 PM

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

All times are GMT -5. The time now is 04:56 AM.

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