LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   binutils first pass error (https://www.linuxquestions.org/questions/linux-from-scratch-13/binutils-first-pass-error-343835/)

gravesb 07-16-2005 05:16 PM

binutils first pass error
 
When I try and compile my first pass of binutils, I get the following answer

../binutils-2.15.94.0.2.2/configure: line 436 ./config.log: permission denied

I tried to su to fix the permissions, but now it wants a password. I am using the LFS LiveCD, so I can't get back to root to fix what I think the problem is.

Can anyone supply the password, or tell me if I am mistaken about it being a permission issue? Thanks.

microsoft/linux 07-17-2005 11:23 PM

it is a permission issue. Who owns the directory /mnt/lfs/sources? how about everything inside of it? I think that is what the problem is. I don't know the root password on the live cd, you could google for it.

sundialsvcs 07-21-2005 11:19 AM

The "permission denied" message is used, ahh, rather-a-lot in Unix/Linux. :rolleyes: ... It could simply mean that the media involved, e.g. a CD-ROM, is (by its very nature) not writeable.

Determine, first, exactly where the "current directory" is. If it's the CD, then there's your problem. Otherwise, check the permissions on this directory against your own. It must be writeable.

ArbuZz 09-04-2005 07:23 AM

I have the same problem. As was mentioned in a LFS 6.0 book I made: chown lfs $LFS/sources command. But I still can not compile from under the lfs user account. However root works perfect, but I guess it has different environment (paths, variables, etc). I have latest Kubuntu distributive 5.04 (Hoary) installed on hard drive. So no CD-ROM issues. I am totally lost.

hoes 09-04-2005 10:45 AM

I don't know about the CD-ROM issues, but I know a point of interest for Hard disk users.
Make sure that every file under $LFS is owned by lfs.

To you ArbuZz:
You omitted the -R switch in chown chown lfs $LFS/sources. In this way only the directory itself gets owned by lfs. To made everything IN the directory also property of lfs run:
[CODE]chown -R lfs $LFS/source[/CODE}
And apart from that you have to make sure that $LFS and everything in it is owned by lfs as well, so the program can put its executables in /lfs/tools/bin and other directories.

Good Luck

ArbuZz 09-05-2005 01:42 AM

I've figured it out :) Thank you, hoes. You were right.

The case is omitted in the LFS book and I tried to follow the exact instructions. However one has to think anyway.

I made chown -R and chgrp -R. And it works. Thank you.


All times are GMT -5. The time now is 01:19 PM.