On 16 June 2014 00:44, Ken Moffat <[email protected]> wrote:
> On Sun, Jun 15, 2014 at 10:41:32PM +0200, Stefano Stoduto wrote:
> > The output for those commands is:
> >
> > type -pa perl
> >
> > /usr/bin/perl
> >
>
> _Now_, in chapter 5, you are using the _host_ system's perl, which
> meets all the requirements. And so, you ought to be able to
> "successfully" configure texinfo.
>
> I used double quotes on "successfully" because you should NOT be
> using the host system's perl at this point in the build. Have you
> gone back in to the LFS build and somewhow not set $PATH, so that
> everything in /tools/bin is ignored ?
>
> If that is the case, please go back in *correctly* and retry those
> commands. By that, I mean you need to go back in as if you were
> going to continue in chapter 5. The obvious problem in what you
> have reported here is your PATH (we know you installed a newer
> version of perl in /tools).
>
You're right, my fault. I forgot to log in as lfs user before run those
commands.
The correct output is:
type -pa perl
/tools/bin/perl
/usr/bin/perl
---
perl -e "use 5.007_003; use Encode;" ; echo $?
Can't locate Encode.pm in @INC (you may need to install the Encode module)
(@INC contains: /usr/local/lib/perl5/site_perl/5.18.2/i686-linux
/usr/local/lib/perl5/site_perl/5.18.2
/usr/local/lib/perl5/5.18.2/i686-linux /usr/local/lib/perl5/5.18.2 .) at -e
line 1.
BEGIN failed--compilation aborted at -e line 1.
2
---
perl --version | grep version
This is perl 5, version 18, subversion 2 (v5.18.2) built for i686-linux
Additionally, this is the output of the env command, when I'm logged in as
lfs user:
TERM=xterm
LC_ALL=POSIX
LFS=/mnt/lfs
PATH=/tools/bin:/bin:/usr/bin
PWD=/home/lfs
LFS_TGT=i686-lfs-linux-gnu
PS1=${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\]
\w \$\[\033[00m\]
SHLVL=1
HOME=/home/lfs
_=/tools/bin/env
and if I list the content of the directory /tools/lib/perl5/5.18.2/ I can
see that there is a directory called Encode and a file called Encode.pm.
I tried once again to build perl (deleting and extracting again the
sources) to be sure, but the configure command for Texinfo still fail.
One thing I forgot to mention, and that might cause the problem, is that
the host system I'm using is a remote computer in my LAN, and I'm logging
in through SSH to perform the steps from a windows machine (I'm using
PuTTY). Don't know if this can be a problem.
I always login in the system as a regular user and then issue the command
su - lfs
to switch to the lfs user, as mentioned in section 4.3
> [ Alternatively, if you have stayed in /mnt/lfs as user lfs, and
> ran those commands as user lfs, then I cannot explain what is
> happening ]
> > ---
> >
> > perl -e "use 5.007_003; use Encode;" ; echo $?
> >
> > 0
> >
>
> The system version of perl in /usr/bin works. But we need to find
> out about the version in /tools/bin.
> > ---
> >
> > perl --version | grep version
> >
> > This is perl 5, version 14, subversion 2 (v5.14.2) built for
> > i486-linux-gnu-thread-multi-64int
> >
>
> That was a test to see if you were using the system version, and on
> this occasion it showed you were.
>
> > About the /bin/sh link, yes it was a link to dash, but I corrected it
> when
> > I read the "Host System Requirements" in the Preface of the book, so I
> > suppose it was correct when I built perl.
> >
> ok
> > When I encountered the problem building Texinfo I tried to rebuild perl,
> > and since I already had deleted the sources I extracted them again.
>
> ok
>
> The critical settings for chapter 5 are in section 4.4. A quick
> look at that suggests (to me) that only your PATH is wrong. BUT,
> when you are building chapter 5, you need to be user lfs with the
> settings from section 4.4.
>
> Note: If you ever have to go back to chapter 5 (for example,
> because you did something wrong and only discovered that during
> chapter 6) then things might be different - directories might be
> owned by root instead of user lfs.
>
I didn't reach chapter 6 yet, but thanks for the advice.
> --
> Nanny Ogg usually went to bed early. After all, she was an old lady.
> Sometimes she went to bed as early as 6 a.m.
> --
> http://lists.linuxfromscratch.org/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
>
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page