LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   mkdir ../binutils-build permission denied (https://www.linuxquestions.org/questions/linux-from-scratch-13/mkdir-binutils-build-permission-denied-130946/)

TheBman 01-02-2004 04:57 PM

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

TheBman 01-04-2004 07:03 PM

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

miguetoo 01-06-2004 11:33 PM

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..

newbagement 01-29-2004 08:40 AM

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.

320mb 01-31-2004 08:41 AM

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!!

CryptDragoon 02-06-2004 08:17 AM

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.

TheBman 02-06-2004 08:11 PM

CryptDragoon,

Would you mind posting what "your" way is?

CryptDragoon 02-12-2004 01:02 AM

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...

shanenin 02-12-2004 02:05 PM

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

anomalyst 02-15-2004 01:36 PM

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
============================

kabniel 02-15-2004 02:57 PM

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.

CryptDragoon 02-16-2004 08:39 AM

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!


All times are GMT -5. The time now is 10:40 AM.