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).

 [ 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.
-- 
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

Reply via email to