LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 10-28-2007, 01:53 PM   #1
sagar priyadarshi
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
LFS chroot problem


hello!!
i was working on LFS (user as root throuhout the process).while entering chroot environment(for building and installing final LFS system),an error occured ,which is
/tools/bin/env : error while locating shared libraries
plz help me how to debug it
 
Old 10-28-2007, 09:18 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Normally when doing a chroot, you may have to mount some directories critical to Linux operation into the new root, like /proc and /sys. I'm not sure what you're running or the error you're getting, but I suspect either you may have to have the shared library available or mount it as mentioned.

# mount -o bind /proc /mnt/proc
# mount -o bind /sys /mnt/sys
# chroot /mnt

This makes the machines /proc and /sys directories available to the new root directory.
 
  


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
LFS 6 Chapter 6.3 chroot error gatblast45 Linux From Scratch 8 01-01-2008 03:12 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
can't chroot back into LFS after install shotokan Linux From Scratch 8 06-01-2005 03:09 PM
chroot problem in LFS shahzadiub Linux From Scratch 4 07-21-2004 11:48 AM
chroot in lfs shahzadiub Linux - Newbie 5 06-23-2004 12:08 PM

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

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