LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-22-2004, 10:08 AM   #1
jazernorth
Member
 
Registered: Jan 2004
Location: Green Bay
Distribution: RedHat 8.0, LFS-5.0
Posts: 100

Rep: Reputation: 15
LFS-5.0:Chapter 6:autoconf-2.57 Dumper.pm missing


I am using the LFS book 5.0 on an AMD (i686-pc-linux-gnu) system. The
dynamic loader is linux.so.2. I have compiled all of the source to
this point without any errors, except the known errors the book says
is OK. I am in chapter 6, page 151. When compiling autoconf-2.57 I
get the following:
---------------
make[3]: Entering directory `/sources/autoconf-2.57/lib'
rm -f autom4te.cfg autom4te.tmp
sed -e 's,@SHELL\@,/bin/sh,g' -e 's,@PERL\@,/tools/bin/perl,g' -e
's,@bindir\@,/usr/bin,g' -e 's,@datadir\@,/usr/share/autoconf,g' -e
's,@prefix\@,/usr,g' -e
's,@autoconf-name\@,'`echo autoconf | sed 's,x,x,'`',g' -e
's,@autoheader-name\@,'`echo autoheader | sed 's,x,x,'`',g' -e
's,@autom4te-name\@,'`echo autom4te
| sed 's,x,x,'`',g' -e 's,@M4\@,/usr/bin/m4,g' -e 's,@AWK\@,gawk,g' -e
's,@VERSION\@,2.57,g' -e 's,@PACKAGE_NAME\@,GNU Autoconf,g'
./autom4te.in >autom4te.tmpmv autom4te.tmp autom4te.cfg
make[3]: Leaving directory `/sources/autoconf-2.57/lib'
../../tests/autom4te \
--language=m4sugar \
--freeze \
--output=m4sugar.m4f
Can't locate Data/Dumper.pm in @INC (@INC contains:
/sources/autoconf-2.57/lib
/tools/lib/perl5/5.8.1/i686-linux /tools/lib/perl5/5.8.1
/tools/lib/perl5/site_perl/5.8.1/i686-linux
/tools/lib/perl5/site_perl/5.8.1 /tools/lib/perl5/site_perl .) at
/sources/autoconf-2.57/bin/autom4te line 39.
BEGIN failed--compilation aborted at
/sources/autoconf-2.57/bin/autom4te line 39.
make[2]: *** [m4sugar.m4f] Error 2
make[2]: Leaving directory `/sources/autoconf-2.57/lib/m4sugar'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/autoconf-2.57/lib'
make: *** [all-recursive] Error 1
--------------

Does anyone know how to fix this? What steps do I need to take to
troubleshoot an error as this? Any help would be greatly appreciated.

Last edited by jazernorth; 03-22-2004 at 11:05 AM.
 
Old 03-22-2004, 11:59 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Did you check out these 2 links?

http://archives.linuxfromscratch.org...ne/007525.html
http://archives.linuxfromscratch.org...er/000013.html

Both from the LFS site.
 
Old 03-22-2004, 12:33 PM   #3
jazernorth
Member
 
Registered: Jan 2004
Location: Green Bay
Distribution: RedHat 8.0, LFS-5.0
Posts: 100

Original Poster
Rep: Reputation: 15
The Fix

I had a link the link /usr/bin/perl to /tools/usr/bin/perl that was created in Chapter 5. I removed the link and pointed it to /usr/bin/perl5.8.0 and now it works, so far anyway.


JN
 
Old 08-18-2004, 12:36 AM   #4
JStroud
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
jazernorth:

You aren't alone. I had the same problem. The LFS text forgets to remind you to remove that /usr/bin/perl symlink to /tools/bin/perl. The perl installation sees this, detects another installation of perl, and installs itself in /usr/local/bin/perl5.8.5.
So anyway, you're correct. I think (and hope) this fixes it... it seems to for me.

rm /usr/bin/perl
ln -s /usr/local/bin/perl5.8.5 /usr/bin/perl

--Jason
 
Old 08-18-2004, 01:21 PM   #5
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Re: The Fix

Quote:
Originally posted by jazernorth
I had a link the link /usr/bin/perl to /tools/usr/bin/perl that was created in Chapter 5. I removed the link and pointed it to /usr/bin/perl5.8.0 and now it works, so far anyway.
but your error message says it was looking for perl in /tools/lib/perl5/site_perl/5.8.1
If you use a different version of a package you need to be extra careful. If the computer is looking for 5.8.1 it won't notice 5.8.0.
Quote:
Originally posted by JStroud
The LFS text forgets to remind you to remove that /usr/bin/perl symlink to /tools/bin/perl. The perl installation sees this, detects another installation of perl, and installs itself in /usr/local/bin/perl5.8.5.
That's nonsense. Perl installs in /usr/bin if you follow the book
 
Old 08-20-2004, 08:35 PM   #6
silverback011
LQ Newbie
 
Registered: Apr 2004
Location: Florida USA
Posts: 23

Rep: Reputation: 15
I have the same issue. Everything has been fine up to this point. I am following LFS version 5.1.1. I have not found anywhere that there may be a symbolic link mucking things up. I do have perl installed in my /usr/bin.

I have been very careful to keep the correct versions as per the manual since this is my first shot at it.

I tried to cp all the files to a directory /tools/lib/perl5/site_perl/ just to see what happens and I received the same error. It is possible I did not get all the files though I was not careful about it. Lacking on time tonight.

I have read the two posts posted by 'druuna'. They did not seem to apply. Although I have not tried rebuilding perl, I am not sure if that is what I want to do since it seems to have installed correctly.

Any suggestions, recommended reading, etc. are all welcome.

Thanks for your time.

echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin

make[2]: Entering directory `/sources/autoconf-2.59/lib/m4sugar'
../../tests/autom4te \
--language=m4sugar \
--freeze \
--output=m4sugar.m4f
Can't locate Data/Dumper.pm in @INC (@INC contains: /sources/autoconf-2.59/tests/../lib /tools/lib/
perl5/5.8.4/i686-linux /tools/lib/perl5/5.8.4 /tools/lib/perl5/site_perl/5.8.4/i686-linux /tools/li
b/perl5/site_perl/5.8.4 /tools/lib/perl5/site_perl .) at /sources/autoconf-2.59/tests/../lib/Autom4
te/C4che.pm line 35.
BEGIN failed--compilation aborted at /sources/autoconf-2.59/tests/../lib/Autom4te/C4che.pm line 35.
Compilation failed in require at /sources/autoconf-2.59/tests/.././bin/autom4te line 39.
BEGIN failed--compilation aborted at /sources/autoconf-2.59/tests/.././bin/autom4te line 39.
make[2]: *** [m4sugar.m4f] Error 2
make[2]: Leaving directory `/sources/autoconf-2.59/lib/m4sugar'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/autoconf-2.59/lib'
make: *** [all-recursive] Error 1
 
Old 08-21-2004, 04:25 AM   #7
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
The important bit of your error message is "Can't locate Data/Dumper.pm" so the first thing to do is find out why. Where is Dumper.pm? Does it exist?

find $LFS -name Dumper.pm
 
Old 08-21-2004, 10:06 AM   #8
silverback011
LQ Newbie
 
Registered: Apr 2004
Location: Florida USA
Posts: 23

Rep: Reputation: 15
>find $LFS -name Dumper.pm

/usr/lib/perl5/5.8.4/i686-linux/Data/Dumper.pm

So it is there. How do I let the program know it is there? I added that directly to my PATH variable to see if that worked. It did not.
 
Old 08-21-2004, 10:47 AM   #9
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
It looks to me like the autoconf make file is trying to use the perl in /tools. Did you use the +h after the login command when you chrooted? If you chroot with
Code:
chroot $LFS /tools/bin/env -i \
    HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
    /tools/bin/bash --login
Bash will remember where it found a command the last time it used it. Perl (in /tools) is used in testing glibc. If Bash remembers where it was it won't look for a (and find) it in /usr/bin. delete the autoconf source, untar a fresh copy and try again, but first,
exec bash --login +h
then it should find perl in /usr/bin. Good luck.
 
Old 08-24-2004, 05:52 PM   #10
silverback011
LQ Newbie
 
Registered: Apr 2004
Location: Florida USA
Posts: 23

Rep: Reputation: 15
Just in the interest of closure. I started my LFS installation over again fresh. I was not careful when I installed. I must have missed some steps becuase it has installed fine now. All that is left is installing the boot loader and configuring it to my tastes.

Thanks to everyone who tried to help me.
 
Old 04-18-2005, 06:56 AM   #11
Zed42
LQ Newbie
 
Registered: Apr 2005
Posts: 1

Rep: Reputation: 0
I met the same problem and here is what soved it (with a great help of hints in this thread)

Apparently I had the PATH env all wrong. The
> echo $PATH
gave: /tools/bin:/bin:/usr/bin instead of the correct value of /bin:/usr/bin:/sbin:/usr/sbin:/tools/bin

this despite of the fact that I correctly chrooted with the desired PATH value.

Could it have been because I intentionally rebooted (swithced off for the night actually) the computer in the process and the PATH value from the .bashrc (chapter 4.4 of LFS 6.0 book) was used then upon start even the chroot command stippulated other value?
('not sure, this is my first try with LFS and one of the first Linux/Unix exposures whatsoever)

Definitely, exporting the correct PATH value
> export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
worked well for me (I also gave autoconf fresh start before going on, i.e. removing the autoconf-2.59 directory and un-tarring a fresh one)
 
Old 05-03-2005, 03:54 AM   #12
cornjchob
LQ Newbie
 
Registered: Aug 2003
Location: Anchorage, Alaska
Distribution: Mandrake 10.1, Debian and LFS #neverforget
Posts: 2

Rep: Reputation: 0
JStroud, thanks for:
Quote:
rm /usr/bin/perl ln -s /usr/local/bin/perl5.8.5 /usr/bin/perl
That's what solved it for me--though don't forget aspiring gurus: replace perl5.8.5 with the correct version installed! If you don't, you'll scratch your head and search for 30 minutes in vain and then figure it out, and then post to make sure other people don't make the same mistake ;-)
 
Old 11-12-2005, 10:11 AM   #13
jimmn1
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
Simple solution (for me)

I was never able to locate a perl5.*.* file anywhere so I basically just deleted the
perl file as in other emails with:

rm /usr/bin/perl file

Then I returned to the perl directory, reran section 6.3.3 (deleting the previously created perl directory first).

I believe the comment above was correct that the make install is seeing the old link and not copying in some file it needs.

When I went back to the autoconf and started over, it conf'ed and made fine. Running the make check now.
 
  


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
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
chapter 6.3 of LFS 6.1 Stamp Linux From Scratch 2 07-22-2005 07:10 AM
URGENT glibc 2.3.3 - lfs -5.1 --> bug in autoconf geiser Linux From Scratch 1 08-18-2004 03:48 PM
LFS 5.0 Chapter 5 cuco76 Linux From Scratch 1 11-23-2003 10:28 PM
LFS 3.3 - chapter 6 - glibc error fend88 Linux From Scratch 5 04-28-2002 11:06 PM

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

All times are GMT -5. The time now is 11:58 PM.

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