LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 09-05-2009, 02:19 AM   #1
e1ectthedead
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
Linux From Scratch- Binutils Configure Folder not found?


I've been using LFS for a few hours and I've had no problems that I wasn't able to fix. But now I'm installing temporary files and I'm having trouble. The books reccomended me to install Binutils first.

The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build directory:

mkdir -v ../binutils-build
cd ../binutils-build

And I did, and I'm in the binutils-build directory.

Then it tells me to do this:

../binutils-2.19.1/configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-werror

When I enter that in, I get this message in the terminal:

lfs:/mnt/lfs/binutils-build$ ../binutils-2.19.1/configure \
> --target=$LFS_TGT --prefix=/tools \
> --disable-nls --disable-werror
bash: ../binutils-2.19.1/configure: No such file or directory


What am I doing wrong?

I've tried it with the extracted tar file and the tarred one. Both a no go, and tried it through the sources directory (where all my packages are in tarballs)
 
Old 09-05-2009, 02:36 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello and Welcome to LQ,

What is your starting point when executing the commands, e.g. in what directory are you in when you execute them?

I started last weekend too with LFS and had the same problem until I realized that I needed to execute the commands from the $LFS/sources directory.

So when you extract the binutils package you 'cd' into that directory. That's the first step 'assumed' by the book. Next when in that directory ($LFS/sources/binutils-2.19.1) you issue the command to create the temporary dir:
Code:
mkdir -v ../binutils-build
cd ../binutils-build
and you encounter yourself in that directory.

So the binutils-build directory is in the same level as the binutils-2.19.1 directory.

Do a 'pwd' to find out your present working directory.

Kind regards,

Eric
 
Old 09-05-2009, 02:41 AM   #3
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Forgot to mention:

LinuxQuestions also has a forum dedicated to LFS where you can find heaps of info. Click on the Forums link, scroll down to Linux - Distributions and the first sub-forum is the Linux From Scratch one.

Kind regards,

Eric
 
Old 09-12-2009, 11:24 AM   #4
e1ectthedead
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks guys, I fixed it.

Turns out the config was in a directory in the binutils folder. And my binutils-build folder wasn't in the sources.
 
Old 09-12-2009, 11:48 AM   #5
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello,

Glad it worked out. Remember, the LFS book assumes that you extract all the packages in the source directory, cd into the created directory and then execute the commands as indicated in the book.

Kind regards,

Eric
 
  


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
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 - Chapter 5 - Binutils tompickles Linux From Scratch 25 10-21-2006 02:08 PM


All times are GMT -5. The time now is 03:35 AM.

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