LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-02-2004, 04:57 PM   #1
TheBman
Member
 
Registered: Nov 2003
Location: Rural Indiana
Distribution: Debian (etch)
Posts: 78

Rep: Reputation: 15
mkdir ../binutils-build permission denied


building 5.0 on slackware 9.1

have followed book to the letter...3 times now, get same permissions problem

added the user lfs and all goes OK until I go to SU to lfs

su - lfs returns /dev/pts/1: Operation not permitted

and then gives me

lfs@darkstar

Set up the environment per book

mkdir ../binutils-build returns mkdir: cannot create directory '..binutils-build' Permission denied


Advice please

Thanks
 
Old 01-04-2004, 07:03 PM   #2
TheBman
Member
 
Registered: Nov 2003
Location: Rural Indiana
Distribution: Debian (etch)
Posts: 78

Original Poster
Rep: Reputation: 15
different distro different result. I installed LRs LFS and changed nothing in the way I was doing things and I am currently about 1/2 way through the LFS book. Dont understand why it works on LRs and not slack. Any insight would be appreciated as I would like to understand this. Thanks
 
Old 01-06-2004, 11:33 PM   #3
miguetoo
Member
 
Registered: Mar 2003
Location: soCal..
Distribution: lfs server.. slackware workstation..
Posts: 58

Rep: Reputation: 15
did you follow the instructions in the book about creation of user 'lfs'..? have you given proper permission to the downloaded package directories to 'lfs'.. you can give permission by entering "chown -R lfs /directory/of/packages" in the terminal..
 
Old 01-29-2004, 08:40 AM   #4
newbagement
LQ Newbie
 
Registered: Jan 2004
Posts: 1

Rep: Reputation: 0
Have you unpacked the package in $LFS/sources and changed into the package directory? (Chapetr 5 Intorduction)

cd $LFS/sources
bzip2 -cd binutils-2.14.tar.bz2 | tar xvf -
cd binutils-2.14

Now you should be able to create the binutils-build directory.
 
Old 01-31-2004, 08:41 AM   #5
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
UH, do you have "devpts" enabled in the $host kernel??
unless your host system has it working, LFS will give this error.........

it will be the same with /proc
the "virtual processes" have to be working on the $host system for LFS to
enable it.........you will need devpts and /proc working in order to enter the chroot environment in chapter 6!!
 
Old 02-06-2004, 08:17 AM   #6
CryptDragoon
Member
 
Registered: Oct 2003
Location: $RANDOM
Posts: 122

Rep: Reputation: 15
I had the same problem so I unpacked all the sources my way in installed them my way and just used there prefixs and other junk ...lol works for me... I think the documentation is poorly done though... but thats just my opinion.
 
Old 02-06-2004, 08:11 PM   #7
TheBman
Member
 
Registered: Nov 2003
Location: Rural Indiana
Distribution: Debian (etch)
Posts: 78

Original Poster
Rep: Reputation: 15
CryptDragoon,

Would you mind posting what "your" way is?
 
Old 02-12-2004, 01:02 AM   #8
CryptDragoon
Member
 
Registered: Oct 2003
Location: $RANDOM
Posts: 122

Rep: Reputation: 15
I unpaked all the sources read there readme's and did what I was told.
simple as that all I use the guid fore is to compile what packages in what order I didn't really care what it said about anything else...
 
Old 02-12-2004, 02:05 PM   #9
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
Quote:
Originally posted by CryptDragoon
I had the same problem so I unpacked all the sources my way in installed them my way and just used there prefixs and other junk ...lol works for me... I think the documentation is poorly done though... but thats just my opinion.
I thought the documentation was great. It walked you through every step(held your hand), and told you exactly what everything did. I was completely satisfied by the books documentation
 
Old 02-15-2004, 01:36 PM   #10
anomalyst
LQ Newbie
 
Registered: Feb 2004
Posts: 1

Rep: Reputation: 0
I just posted this as bug 779

Revise http://lfs.130th.net/lfs/view/test/c...ils-pass1.html
from:
============================
mkdir ../binutils-build
cd ../binutils-build
============================
to be:
============================

Change to where you downloaded the package

cd $LFS/sources

If you batch retrieved packages you might have to unpack the tarball as follows:

tar -jxvf binutils-2.14.tar.bz2

mkdir binutils-build
cd binutils-build
============================
 
Old 02-15-2004, 02:57 PM   #11
kabniel
LQ Newbie
 
Registered: Aug 2003
Location: Sweden
Distribution: Debian Squeeze
Posts: 27

Rep: Reputation: 15
Quote:
Originally posted by anomalyst
I just posted this as bug 779

Revise http://lfs.130th.net/lfs/view/test/c...ils-pass1.html
from:
============================
mkdir ../binutils-build
cd ../binutils-build
============================
to be:
============================

Change to where you downloaded the package

cd $LFS/sources

If you batch retrieved packages you might have to unpack the tarball as follows:

tar -jxvf binutils-2.14.tar.bz2

mkdir binutils-build
cd binutils-build
============================
why is this a bug?
if you read the introduction in chapter 5 which says:
Quote:
It is also expected that you have already unpacked a source package (while logged in as user lfs -- explained shortly) and performed a cd into the source directory of a package before issuing its build commands
then the instructions make sense (at least to me).
if you still think it is a bug, you also have to report pretty much all build instructions in the book, because they all assume that you start in the source directory of the package you are going to build.

Last edited by kabniel; 02-15-2004 at 03:04 PM.
 
Old 02-16-2004, 08:39 AM   #12
CryptDragoon
Member
 
Registered: Oct 2003
Location: $RANDOM
Posts: 122

Rep: Reputation: 15
Quote:
Originally posted by shanenin
I thought the documentation was great. It walked you through every step(held your hand), and told you exactly what everything did. I was completely satisfied by the books documentation
D00d what they give you n example of what you have to do it should NOT be done like this... people who give examples should be shot!

#mkdir ../binutils

That can be anywhere!

It should have been like this:

/# cd sources
sources#mkdir ../binutils


See THAT is how to make porper documentation! not the LFS way!
 
  


Reply



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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
mkdir permission denied rmorgan1016 Linux - Newbie 2 07-30-2005 08:46 PM
mkdir ../binutils-build gives me "Permission Denied"!!! matthewa Linux From Scratch 16 06-29-2005 07:00 AM
oops-deleted binutils-build Barnette Linux From Scratch 2 01-14-2005 05:23 PM
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 04:07 AM

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

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