Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 03-24-2008, 08:32 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
Chapter 5.7 Adjusting Toolchains... Find error

Hi all,

I am at chapter 5.7

I am typing the following command:

GCC_INCLUDEDIR=`dirname $(gcc -print-libgcc-file-name)`/include &&
find ${GCC_INCLUDEDIR}/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \; &&
rm -vf `grep -l "DO NOT EDIT THIS FILE" ${GCC_INCLUDEDIR}/*` &&
I get the following error:

find: paths must precede expression
I am not able to solve this problem.

Any help will be appreciated.


Old 03-24-2008, 07:40 PM   #2
LQ Newbie
Registered: Mar 2008
Posts: 3

Original Poster
Rep: Reputation: 0
I have found and corrected the error.

Thank you.
Old 03-24-2008, 07:46 PM   #3
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It's probably worth you posting the fix just in case someone else looks up your post
Old 03-26-2008, 08:44 PM   #4
LQ Newbie
Registered: Mar 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry about that.

My problem was a typo. I did not include the && in the command.




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
error in adjusting tool chain in LFS 6.3 chandra123 Linux From Scratch 6 03-19-2008 07:02 AM
glibc chapter 6.9 error jol123 Linux From Scratch 1 03-28-2007 04:03 PM
Possible Error in Book -- Adjusting Toolchain suma17 Linux From Scratch 9 10-13-2005 04:06 AM
5.9. Adjusting the Toolchain - Error Spudds Linux From Scratch 6 02-23-2005 09:22 AM
LFS chapter 5 adjusting the tool chain JusCrzn Linux From Scratch 1 12-20-2004 06:32 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration