LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 01-14-2005, 05:50 PM   #1
jobesd
LQ Newbie
 
Registered: Nov 2001
Posts: 29

Rep: Reputation: 15
Question HELP??: lfs 6.0 chapter 5.35. Udev-030


below is the page that I am at. I didn't install this package before this step
and so I am guessing this is why it fails on the first cmd


sed -i 's@/sbin/udev@/tools/sbin/udev@g' udevstart.c

Is this an error in the book or should I skip this package until later?

I checked 5.1 and this step is not there. I looked at the 6.1 testing
version and this step is not there either.

So where do I go now?




Version 6.0 chapter 5.35. Udev-030

Code:
5.35. Udev-030 


The Udev package contains programs for dynamic creation of device nodes. 

Approximate build time: 0.2 SBU 

Required disk space: 5.2 MB 

Udev installation depends on: Coreutils and Make 

5.35.1. Installation of Udev 
The udevstart program hardcodes the path to the udev program in itself, which would cause issues since udev was installed in a non-standard location. Fix this by running the following: 

sed -i 's@/sbin/udev@/tools/sbin/udev@g' udevstart.c
Also, ensure that udev knows the correct location to look for its configuration files: 

sed -i 's@/etc@/tools/etc@g' etc/udev/udev.conf.in
Now compile Udev: 

make prefix=/tools etcdir=/tools/etc
This package does not come with a test suite. 

Install the package: 

make DESTDIR=/tools udevdir=/dev install
Udev's configuration is far from ideal by default, so install LFS-specific configuration files here: 

cp ../udev-config-2.permissions \
    /tools/etc/udev/permissions.d/00-lfs.permissions
cp ../udev-config-1.rules /tools/etc/udev/rules.d/00-lfs.rules


Details on this package are located in Section 6.57.2, “Contents of Udev.”

Last edited by jobesd; 01-14-2005 at 07:17 PM.
 
Old 01-14-2005, 08:11 PM   #2
jobesd
LQ Newbie
 
Registered: Nov 2001
Posts: 29

Original Poster
Rep: Reputation: 15
My mistake,

I downloaded the wrong version 050 insead of 030
 
Old 01-27-2005, 11:13 PM   #3
Tuvok
Member
 
Registered: Mar 2003
Distribution: FreeBSD 6.1, NetBSD 3.0.1
Posts: 170

Rep: Reputation: 30
I am stuck in 5.35. Udev-030. When I issue the command:

make DESTDIR=/tools udevdir=/dev install

I ger this error:

lfs:/mnt/lfs/sources/udev-030$ make DESTDIR=/tools udevdir=/dev install
/usr/bin/install -c -d /tools/etc/udev/rules.d
make: /usr/bin/install: Command not found
make: *** [install-config] Error 127


I wonder where I have gone wrong.
 
Old 01-31-2005, 02:19 AM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
when you made coreutils --prefix=/tools (5.16)
should have put "install" in /tools/bin
your .bashrc for user lfs
should have turned off bash hashing and allow bash to search PATH
and find "install" in /tools/bin
BUT the udev makefile has /usr/bin/install hardcoded !
so just do "which install"
and hack the stupid Makefile (line 59) to read the right thing for your host system
or you can just set it to /tools/bin
or just take away the path to install altogether and let bash find it on its own
 
Old 01-31-2005, 05:05 PM   #5
Tuvok
Member
 
Registered: Mar 2003
Distribution: FreeBSD 6.1, NetBSD 3.0.1
Posts: 170

Rep: Reputation: 30
Thanks.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 6 Chapter 6.8 mount error gatblast45 Linux From Scratch 20 01-04-2006 05:48 PM
udev install error chapter 6 vmlinuz101 Linux From Scratch 3 09-18-2005 10:18 PM
Udev-030 GodMonkey Linux From Scratch 1 06-02-2005 12:02 PM
LFS 3.3 - chapter 6 - glibc error fend88 Linux From Scratch 5 04-28-2002 11:06 PM


All times are GMT -5. The time now is 05:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration