LinuxQuestions.org
Review your favorite Linux distribution.
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 08-14-2007, 05:28 PM   #1
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Perl Build Issue


I'm at chapter 5.26 in the LFS book and hitting on some troubles. Up until now, I've been building just fine, using Ununtu Edgy as the host system. I have deviated from the book in a few places, namely that I used the latest stable versions from upstream. That means that the following packages were installed at newer versions than the book:

-Binutils (2.17)
-GCC (4.2.1)
-Glibc (2.6.1)
-TCL (8.4.5)
-NCurses (5.6)
-Bash (3.2)
-Bzip2 (1.0.4)
-Coreutils (6.9)
-Findutils (4.2.31)
-Gettext (0.16)
-Grep (2.5.3)
-Gzip (1.3.12)
-M4 (1.4.10)
-Make (3.81)

When I attempt to compile perl, I cd into the source tree, apply the patch recommended, and execute the configure script exactly as recommended. However, when I attempt to make with any target it refuses to even begin with this message:

make: *** No rule to make target '<command-line>', needed by 'perlmain.o'. Stop.

I cracked open the Makefile and have no idea where this comes from. Any suggestions?

----
I should add that I get the exact same behavior if I used the tarball from perl.com or the one from LFS. Also, running make as another user to invoke the host make rather than the LFS make has no effect.

Last edited by PatrickNew; 08-14-2007 at 05:45 PM. Reason: Additional info
 
Old 08-14-2007, 07:07 PM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Sorry, there was a problem in my PATH. I'm not sure what it was, but if I set the path of the lfs user to be the path of a local user, with /tools prepended, it worked.
 
Old 08-16-2007, 02:22 AM   #3
mehrwarz
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
Question Explain the resolution please

I have the exact same problem.
Please save me the time you spent to resolve the problem by explaining your resolution
Regards
 
Old 08-16-2007, 03:14 AM   #4
mehrwarz
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
Lightbulb Resolution

I found a resolution here:
http://www.diy-linux.org/pipermail/d...er/000933.html

just run the following and the code will compile successfully:
sed -i.bak '/<command-line>$/d' makefile
 
  


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
Glibc-2.3.6 build issue ---- wordexp.o not build Dhana_pal Linux - Software 0 12-27-2006 01:56 AM
Perl datescript Issue, missing perl module? stefaandk Programming 5 02-19-2006 10:55 PM
Build libperl.so from perl source? TotalDefiance Linux - Software 0 02-08-2006 11:57 AM
Install a perl build J_Szucs Linux - Newbie 1 07-10-2002 06:47 AM

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

All times are GMT -5. The time now is 09:26 AM.

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