LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-24-2011, 07:17 PM   #1
jvilla1983
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Rep: Reputation: 0
Linux From Scratch Perl problems


Hi,

I'm building the latest version of LFS (6.8) on a Virtualbox VM and I'm running into a problem where Perl works before I chroot in Chapter 6, but when I chroot to build my kernel APIs I'm getting /usr/bin/perl No such File or directory.

When I cd to the build directory (/tools), I still have the same problem. When I exit the chroot environment, perl works!

Have any of you experienced this? Is there something that I'm doing wrong?
 
Old 08-25-2011, 01:45 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
Hi,

It sounds like you didn't install perl or didn't install it correctly when doing chapter 5.

The working perl (the one outside the chrooted environment) is the one that is provided by your host. Once you chroot as mentioned in chapter 6.4 you make use of what has been build in chapter 5.

First make sure you used the correct chroot command, it could be that your PATH setting isn't correct. Then check if perl is installed correctly (you might want to redo chapter 5.28).

Hope this helps.
 
Old 08-25-2011, 02:27 PM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Quote:
Originally Posted by jvilla1983 View Post
I'm running into a problem where Perl works before I chroot in Chapter 6, but when I chroot to build my kernel APIs I'm getting /usr/bin/perl No such File or directory.

When I cd to the build directory (/tools), I still have the same problem. When I exit the chroot environment, perl works!
It sounds like you've made a mistake somewhere in chapter 5 and compiled perl or something perl relies on so that they are liked to files on your host system that are not available in chroot. The way to find out is to run
Code:
ldd /tools/bin/perl
If it lists libraries in /lib or /usr/lib then that is where the problem lies. When you first chroot /lib and /usr/lib are empty. All the things in /tools should only link to things in /tools/lib. If you've made this mistake with perl you may well have done the same thing with everything else.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cross Linux From Scratch 5.7: Problems Making binutils-2.18 Yaro Linux From Scratch 3 11-12-2008 03:00 AM
Linux-from-scratch problems rextor Linux From Scratch 17 08-18-2005 01:47 PM
Linux From Scratch Problems acidbreez Linux - Newbie 1 07-02-2004 10:55 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM

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

All times are GMT -5. The time now is 09:00 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