On Mon, Jun 16, 2014 at 10:03:52AM +0200, Stefano Stoduto wrote:
> 
> 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
> 
ok
> ---
> 
> 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
> 

 It looks as if @INC is the problem.  I don't have a version of
/tools handy, but I can see that perl is configured for /usr/local
which is its default location.  Fortunately, it is not installed
there because the lfs user cannot write there, and anyway we
installed it by copying to /tools.

 So, something seems to be wrong in the command
sh Configure -des -Dprefix=/tools

 After running that command, a file config.sh is created.  I've just
done that andin my case there are some lines (starting at line 891
in my case) -

prefix='/tools'
prefixexp='/tools'
privlib='/tools/lib/perl5/5.18.2'
privlibexp='/tools/lib/perl5/5.18.2'

 I assume you got different values.  If you no longer have that
file, please try again (just the configure command, then check the
file).

 The only likely explanation I can see is a problem with the shell
on the host system.

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

 I don't think remote access that will be related to this problem.

ĸen
-- 
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