Discussion:
[lfs-support] may I adjust my host for install LFS?
Gdsi
2017-10-04 10:28:32 UTC
Permalink
Hi.
I begin LFS-8.1 but a issue is appeared.
In ch. 2.2 after running 'bash version-check.sh' the output was:

***@debian:~$ bash version-check.sh
bash, version 4.3.30(1)-release
/bin/sh -> /bin/dash
ERROR: /bin/sh does not point to bash
Binutils: (GNU Binutils for Debian) 2.25
bison (GNU Bison) 3.0.2
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.23
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.1.1, API: 1.1 (GNU MPFR 3.1.2-p3, GNU MP 6.0.0)
/usr/bin/awk -> /usr/bin/gawk
version-check.sh: line 35: gcc: command not found
g++ (Debian 4.9.2-10) 4.9.2
(Debian GLIBC 2.19-18+deb8u10) 2.19
grep (GNU grep) 2.20
gzip 1.6
Linux version 3.16.0-4-686-pae (debian-***@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19)
m4 (GNU M4) 1.4.17
GNU Make 4.0
GNU patch 2.7.5
Perl version='5.20.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
version-check.sh: line 47: makeinfo: command not found
xz (XZ Utils) 5.1.0alpha
g++ compilation OK
***@debian:~$

I decided that distinction versus the recommended do not enough for stopping work and I went along to ch.5.4 but there was: config.log
.....
## Core tests. ##
## ----------- ##

configure:2301: checking build system type
configure:2315: result: i686-pc-linux-gnu
configure:2362: checking host system type
configure:2375: result: i686-pc-linux-gnu
configure:2395: checking target system type
configure:2408: result: i686-lfs-linux-gnu
configure:2462: checking for a BSD-compatible install
configure:2530: result: /usr/bin/install -c
configure:2541: checking whether ln works
configure:2563: result: yes
configure:2567: checking whether ln -s works
configure:2571: result: yes
configure:2578: checking for a sed that does not truncate output
configure:2642: result: /bin/sed
configure:2651: checking for gawk
configure:2667: found /usr/bin/gawk
configure:2678: result: gawk
configure:4014: checking for gcc
configure:4044: result: no
configure:4107: checking for cc
configure:4154: result: no
configure:4210: checking for cl.exe
configure:4240: result: no
configure:4264: error: in `/mnt/lfs/sources/binutils-2.29/build':
configure:4267: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
.......
Seeing distinguish against the recommend (ch2.2), may I adjust my host for install LFS?
Thank you.
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
Kuba
2017-10-04 15:30:08 UTC
Permalink
Post by Gdsi
Hi.
I begin LFS-8.1 but a issue is appeared.
[log trimmed]
Post by Gdsi
I decided that distinction versus the recommended do not enough for stopping work
The script mentions missing packages and severely outdated toolchain.
This issue could have been resolved with basic Linux knowledge, but
since you asked for help here, I wouldn't recommend deviating from the
book. The version requirements are there for a reason - if they are not
met, something will break along the way.
Post by Gdsi
Seeing distinguish against the recommend (ch2.2), may I adjust my host for install LFS?
You absolutely need to modify the host system, for example, by creating
a link in the root directory and installing necessary packages. It's
also a good idea to update the host system before starting if it is not
a fresh installation.

Best of luck, (because something makes me think you will need it)
Kuba

P. S. See also: http://linuxfromscratch.org/lfs/view/stable/prologue/prerequisites.html
Kuba
2017-10-06 13:48:07 UTC
Permalink
Post by Gdsi
Hi.
I begin LFS-8.1 but a issue is appeared.
bash, version 4.3.30(1)-release
/bin/sh -> /bin/dash
ERROR: /bin/sh does not point to bash
version-check.sh: line 35: gcc: command not found
[...]
And to change your Shell from Dash to Bash, you could use
$ chsh -s /bin/bash
The chsh command can be used to change the default shell for a user,
a value kept in /etc/passwd. However, chapter 2.2 doesn't care about the
interactive shell, it cares about /bin/sh. On Debian, by default, /bin/sh
points to dash. To change this, run

sudo dpkg-reconfigure dash

From: https://wiki.debian.org/DashAsBinSh

Kind regards,
Kuba
Bruce Dubbs
2017-10-06 16:44:52 UTC
Permalink
Post by Kuba
Post by Gdsi
Hi.
I begin LFS-8.1 but a issue is appeared.
bash, version 4.3.30(1)-release
/bin/sh -> /bin/dash
ERROR: /bin/sh does not point to bash
version-check.sh: line 35: gcc: command not found
[...]
And to change your Shell from Dash to Bash, you could use
$ chsh -s /bin/bash
The chsh command can be used to change the default shell for a user,
a value kept in /etc/passwd. However, chapter 2.2 doesn't care about the
interactive shell, it cares about /bin/sh. On Debian, by default, /bin/sh
points to dash. To change this, run
sudo dpkg-reconfigure dash
From: https://wiki.debian.org/DashAsBinSh
Or even easier: ln -svf bash /bin/sh

I'll also note that Debian thinks that dash is faster than bash as a
non-interactive shell. It is if you measure the time in milliseconds.
For instance, glibc-2.26 takes me 1.7 seconds to run configure with bash
and takes 1.5 seconds with dash. The negligible time gains when using
dash are not worth the inconsistencies.

Note that some package builds (e.g. gcc) assume /bin/sh -> bash and will
fail if it is not set.

-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

htt
Pierre Labastie
2017-10-06 17:34:10 UTC
Permalink
Post by Kuba
Post by Gdsi
Hi.
I begin LFS-8.1 but a issue is appeared.
bash, version 4.3.30(1)-release
/bin/sh -> /bin/dash
ERROR: /bin/sh does not point to bash
version-check.sh: line 35: gcc: command not found
[...]
And to change your Shell from Dash to Bash, you could use
$ chsh -s /bin/bash
The chsh command can be used to change the default shell for a user,
a value kept in /etc/passwd. However, chapter 2.2 doesn't care about the
interactive shell, it cares about /bin/sh. On Debian, by default, /bin/sh
points to dash. To change this, run
sudo dpkg-reconfigure dash
From: https://wiki.debian.org/DashAsBinSh
Or even easier:  ln -svf bash /bin/sh
Well, that depends on whether you want to use the "Debian Alternatives
System" [1]. If you do what you propose, then the Alternatives system is
broken, and the dpkg-reconfigure command described in the wiki will
fail. For linux wizards, this is not a problem, as they'll always be
able to set up their system in a satisfactory manner, but for learning
people, having a doc they can rely on for their distro is not bad...

Pierre
[1] : https://wiki.debian.org/DebianAlternatives
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
Loading...